WohpeDAO is a cross-border organization with no political leanings, driven by holders of $PEACE governance tokens. It was organized to support war-torn communities and civilians, the primary purpose of which is clear and powerful: to motivate a robust solidarity network and endure to promote peace. Specifically, portions of all the transaction taxes will constitute the charity funds whereby the $PEACE holders will help volunteer battalions participating in the military actions and families of refugees through presenting proposals and votes.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
WToken.swapAndLiquify(uint256) (contracts/WToken.sol#416-440) sends eth to arbitrary user
Dangerous calls:
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in WToken._transfer(address,address,uint256) (contracts/WToken.sol#324-414):
External calls:
- swapAndLiquify(swapTokens) (contracts/WToken.sol#380)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/WToken.sol#451-457)
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
External calls sending eth:
- swapAndLiquify(swapTokens) (contracts/WToken.sol#380)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
State variables written after the call(s):
- _burn(address(this),tokenBalance.mul(_burnFee).div(feeTotal)) (contracts/WToken.sol#382)
- _balances[account] = accountBalance - amount (contracts/WToken.sol#309)
- _balances[from] = _balances[from].sub(amount) (contracts/WToken.sol#402)
- _burn(from,amount.mul(84).div(100)) (contracts/WToken.sol#404)
- _balances[account] = accountBalance - amount (contracts/WToken.sol#309)
- _balances[projectAddress] = _balances[projectAddress].add(amount.mul(5).div(100)) (contracts/WToken.sol#405)
- _balances[fundingAddress] = _balances[fundingAddress].add(amount.mul(1).div(100)) (contracts/WToken.sol#406)
- _balances[to] = _balances[to].add(amount.mul(10).div(100)) (contracts/WToken.sol#407)
- _tokenTransfer(from,to,amount,takeFee) (contracts/WToken.sol#412)
- _balances[sender] = _balances[sender].sub(amount) (contracts/WToken.sol#492)
- _balances[recipient] = _balances[recipient].add(tTransferAmount) (contracts/WToken.sol#493)
- _balances[address(this)] = _balances[address(this)].add(amount.sub(tTransferAmount)) (contracts/WToken.sol#494)
- _tokenTransfer(from,to,amount,takeFee) (contracts/WToken.sol#412)
- _burnFee = _previousBurnFee (contracts/WToken.sol#284)
- _burnFee = burnFee (contracts/WToken.sol#277)
- _burnFee = 0 (contracts/WToken.sol#265)
- _tokenTransfer(from,to,amount,takeFee) (contracts/WToken.sol#412)
- _fundingFee = _previousFundingFee (contracts/WToken.sol#283)
- _fundingFee = fundingFee (contracts/WToken.sol#276)
- _fundingFee = 0 (contracts/WToken.sol#264)
- _tokenTransfer(from,to,amount,takeFee) (contracts/WToken.sol#412)
- _liquidityFee = _previousLiquidityFee (contracts/WToken.sol#282)
- _liquidityFee = liquidityFee (contracts/WToken.sol#275)
- _liquidityFee = 0 (contracts/WToken.sol#263)
- _tokenTransfer(from,to,amount,takeFee) (contracts/WToken.sol#412)
- _projectFee = _previousProjectFee (contracts/WToken.sol#281)
- _projectFee = projectFee (contracts/WToken.sol#274)
- _projectFee = 0 (contracts/WToken.sol#262)
- lastSwapTime = block.timestamp (contracts/WToken.sol#384)
Apply the check-effects-interactions pattern.
Additional information: link
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Contract ownership is not renounced (belongs to a wallet)
WToken.deadBlocks (contracts/WToken.sol#62) is never used in WToken (contracts/WToken.sol#14-502)
Remove unused state variables.
Additional information: link
WToken.addLiquidity(uint256,uint256) (contracts/WToken.sol#460-473) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
Ensure that all the return values of the function calls are used.
Additional information: link
WToken.allowance(address,address).owner (contracts/WToken.sol#138) shadows:
- Ownable.owner() (@openzeppelin/contracts/access/Ownable.sol#35-37) (function)
WToken._approve(address,address,uint256).owner (contracts/WToken.sol#316) shadows:
- Ownable.owner() (@openzeppelin/contracts/access/Ownable.sol#35-37) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in WToken._transfer(address,address,uint256) (contracts/WToken.sol#324-414):
External calls:
- swapAndLiquify(swapTokens) (contracts/WToken.sol#380)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/WToken.sol#451-457)
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
External calls sending eth:
- swapAndLiquify(swapTokens) (contracts/WToken.sol#380)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (contracts/WToken.sol#412)
- _previousBurnFee = _burnFee (contracts/WToken.sol#272)
- _previousBurnFee = _burnFee (contracts/WToken.sol#260)
- _tokenTransfer(from,to,amount,takeFee) (contracts/WToken.sol#412)
- _previousFundingFee = _fundingFee (contracts/WToken.sol#271)
- _previousFundingFee = _fundingFee (contracts/WToken.sol#259)
- _tokenTransfer(from,to,amount,takeFee) (contracts/WToken.sol#412)
- _previousLiquidityFee = _liquidityFee (contracts/WToken.sol#270)
- _previousLiquidityFee = _liquidityFee (contracts/WToken.sol#258)
- _tokenTransfer(from,to,amount,takeFee) (contracts/WToken.sol#412)
- _previousProjectFee = _projectFee (contracts/WToken.sol#269)
- _previousProjectFee = _projectFee (contracts/WToken.sol#257)
- _burn(address(this),tokenBalance.mul(_burnFee).div(feeTotal)) (contracts/WToken.sol#382)
- _tTotal -= amount (contracts/WToken.sol#311)
- _burn(from,amount.mul(84).div(100)) (contracts/WToken.sol#404)
- _tTotal -= amount (contracts/WToken.sol#311)
Reentrancy in WToken.constructor() (contracts/WToken.sol#82-107):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (contracts/WToken.sol#91-92)
State variables written after the call(s):
- _balances[_msgSender()] = (_tTotal - fundAmount) (contracts/WToken.sol#102)
- _balances[fundingAddress] = fundAmount (contracts/WToken.sol#103)
- _isExcludedFromFee[_msgSender()] = true (contracts/WToken.sol#98)
- _isExcludedFromFee[address(this)] = true (contracts/WToken.sol#99)
- _isExcludedFromFee[liquidityWalletAddress] = true (contracts/WToken.sol#100)
- _isExcludedFromFee[fundingAddress] = true (contracts/WToken.sol#101)
- uniswapV2Router = _uniswapV2Router (contracts/WToken.sol#95)
Reentrancy in WToken.swapAndLiquify(uint256) (contracts/WToken.sol#416-440):
External calls:
- swapTokensForEth(otherPart) (contracts/WToken.sol#422)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/WToken.sol#451-457)
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
- addLiquidity(liquidityTokens,newBalance.mul(_liquidityFee).div(_fundingFee + _liquidityFee + _projectFee).div(2)) (contracts/WToken.sol#437)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
External calls sending eth:
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
- addLiquidity(liquidityTokens,newBalance.mul(_liquidityFee).div(_fundingFee + _liquidityFee + _projectFee).div(2)) (contracts/WToken.sol#437)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
State variables written after the call(s):
- addLiquidity(liquidityTokens,newBalance.mul(_liquidityFee).div(_fundingFee + _liquidityFee + _projectFee).div(2)) (contracts/WToken.sol#437)
- _allowances[owner][spender] = amount (contracts/WToken.sol#320)
Reentrancy in WToken.transferFrom(address,address,uint256) (contracts/WToken.sol#147-151):
External calls:
- _transfer(sender,recipient,amount) (contracts/WToken.sol#148)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/WToken.sol#451-457)
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
External calls sending eth:
- _transfer(sender,recipient,amount) (contracts/WToken.sol#148)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (contracts/WToken.sol#149)
- _allowances[owner][spender] = amount (contracts/WToken.sol#320)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in WToken._transfer(address,address,uint256) (contracts/WToken.sol#324-414):
External calls:
- swapAndLiquify(swapTokens) (contracts/WToken.sol#380)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/WToken.sol#451-457)
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
External calls sending eth:
- swapAndLiquify(swapTokens) (contracts/WToken.sol#380)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
Event emitted after the call(s):
- Transfer(account,address(0),amount) (contracts/WToken.sol#313)
- _burn(from,amount.mul(84).div(100)) (contracts/WToken.sol#404)
- Transfer(account,address(0),amount) (contracts/WToken.sol#313)
- _burn(address(this),tokenBalance.mul(_burnFee).div(feeTotal)) (contracts/WToken.sol#382)
- Transfer(sender,recipient,tTransferAmount) (contracts/WToken.sol#496)
- _tokenTransfer(from,to,amount,takeFee) (contracts/WToken.sol#412)
- Transfer(from,to,amount.mul(10).div(100)) (contracts/WToken.sol#409)
Reentrancy in WToken.constructor() (contracts/WToken.sol#82-107):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (contracts/WToken.sol#91-92)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),(_tTotal - fundAmount)) (contracts/WToken.sol#105)
- Transfer(address(0),fundingAddress,fundAmount) (contracts/WToken.sol#106)
Reentrancy in WToken.swapAndLiquify(uint256) (contracts/WToken.sol#416-440):
External calls:
- swapTokensForEth(otherPart) (contracts/WToken.sol#422)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/WToken.sol#451-457)
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
External calls sending eth:
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
Event emitted after the call(s):
- SwapAndCharged(swapTokens,newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)) (contracts/WToken.sol#428)
Reentrancy in WToken.swapAndLiquify(uint256) (contracts/WToken.sol#416-440):
External calls:
- swapTokensForEth(otherPart) (contracts/WToken.sol#422)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/WToken.sol#451-457)
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
External calls sending eth:
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
Event emitted after the call(s):
- SwapAndCharged(swapTokens,newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)) (contracts/WToken.sol#433)
Reentrancy in WToken.swapAndLiquify(uint256) (contracts/WToken.sol#416-440):
External calls:
- swapTokensForEth(otherPart) (contracts/WToken.sol#422)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/WToken.sol#451-457)
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
- addLiquidity(liquidityTokens,newBalance.mul(_liquidityFee).div(_fundingFee + _liquidityFee + _projectFee).div(2)) (contracts/WToken.sol#437)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
External calls sending eth:
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
- addLiquidity(liquidityTokens,newBalance.mul(_liquidityFee).div(_fundingFee + _liquidityFee + _projectFee).div(2)) (contracts/WToken.sol#437)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/WToken.sol#321)
- addLiquidity(liquidityTokens,newBalance.mul(_liquidityFee).div(_fundingFee + _liquidityFee + _projectFee).div(2)) (contracts/WToken.sol#437)
- SwapAndLiquified(swapTokens,liquidityTokens,newBalance.mul(_liquidityFee).div(_fundingFee + _liquidityFee + _projectFee).div(2)) (contracts/WToken.sol#439)
Reentrancy in WToken.transferFrom(address,address,uint256) (contracts/WToken.sol#147-151):
External calls:
- _transfer(sender,recipient,amount) (contracts/WToken.sol#148)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/WToken.sol#451-457)
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
External calls sending eth:
- _transfer(sender,recipient,amount) (contracts/WToken.sol#148)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWalletAddress,block.timestamp) (contracts/WToken.sol#465-472)
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/WToken.sol#321)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (contracts/WToken.sol#149)
Apply the check-effects-interactions pattern.
Additional information: link
WToken._transfer(address,address,uint256) (contracts/WToken.sol#324-414) uses timestamp for comparisons
Dangerous comparisons:
- overMinTokenBalance && ! inSwapAndLiquify && from != uniswapV2Pair && swapAndLiquifyEnabled && block.timestamp >= lastSwapTime + swapCoolDownTime (contracts/WToken.sol#373-377)
Avoid relying on block.timestamp.
Additional information: link
WToken._transfer(address,address,uint256) (contracts/WToken.sol#324-414) compares to a boolean constant:
-require(bool,string)(presaleEnded == true,You are not allowed to add liquidity before presale is ended) (contracts/WToken.sol#334)
Remove the equality to the boolean constant.
Additional information: link
Different versions of Solidity is used:
- Version used: ['^0.8.0', '^0.8.4']
- ^0.8.0 (@openzeppelin/contracts/access/Ownable.sol#4)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/IERC20.sol#4)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol#4)
- ^0.8.0 (@openzeppelin/contracts/utils/Context.sol#4)
- ^0.8.0 (@openzeppelin/contracts/utils/math/SafeMath.sol#4)
- ^0.8.0 (contracts/IUniswapV2Factory.sol#3)
- ^0.8.4 (contracts/IUniswapV2Router.sol#3)
- ^0.8.0 (contracts/WToken.sol#3)
Use one Solidity version.
Additional information: link
Context._msgData() (@openzeppelin/contracts/utils/Context.sol#21-23) is never used and should be removed
SafeMath.div(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#191-200) is never used and should be removed
SafeMath.mod(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#151-153) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#217-226) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#22-28) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#64-69) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#76-81) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#47-57) is never used and should be removed
SafeMath.trySub(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#35-40) is never used and should be removed
Remove unused functions.
Additional information: link
WToken.fundAmount (contracts/WToken.sol#27) is set pre-construction with a non-constant function or state variable:
- (_tTotal / 100)
WToken._previousProjectFee (contracts/WToken.sol#33) is set pre-construction with a non-constant function or state variable:
- _projectFee
WToken._previousLiquidityFee (contracts/WToken.sol#36) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
WToken._previousFundingFee (contracts/WToken.sol#39) is set pre-construction with a non-constant function or state variable:
- _fundingFee
WToken._previousBurnFee (contracts/WToken.sol#42) is set pre-construction with a non-constant function or state variable:
- _burnFee
WToken._maxTokensCanHold (contracts/WToken.sol#54) is set pre-construction with a non-constant function or state variable:
- (_tTotal * _maxTokensCanHoldPerMille) / 1000
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
Pragma version^0.8.0 (@openzeppelin/contracts/access/Ownable.sol#4) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/IERC20.sol#4) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol#4) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/Context.sol#4) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/math/SafeMath.sol#4) allows old versions
Pragma version^0.8.0 (contracts/IUniswapV2Factory.sol#3) allows old versions
Pragma version^0.8.0 (contracts/WToken.sol#3) allows old versions
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in WToken.swapAndLiquify(uint256) (contracts/WToken.sol#416-440):
- (successProject) = projectAddress.call{value: newBalance.mul(_projectFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#426)
- (successFunding) = fundingAddress.call{value: newBalance.mul(_fundingFee).div(_fundingFee + _liquidityFee + _projectFee)}() (contracts/WToken.sol#431)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Router01.WETH() (contracts/IUniswapV2Router.sol#7) is not in mixedCase
Parameter WToken.setSwapAndLiquifyEnabled(bool)._enabled (contracts/WToken.sol#241) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (contracts/IUniswapV2Router.sol#12) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (contracts/IUniswapV2Router.sol#13)
Prevent variables from having similar names.
Additional information: link
WToken.slitherConstructorVariables() (contracts/WToken.sol#14-502) uses literals with too many digits:
- _tTotal = 100000000 * (10 ** 18) (contracts/WToken.sol#26)
WToken.slitherConstructorVariables() (contracts/WToken.sol#14-502) uses literals with too many digits:
- _maxTxAmount = 100000000 * (10 ** 18) (contracts/WToken.sol#52)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
WToken._decimals (contracts/WToken.sol#30) should be constant
WToken._name (contracts/WToken.sol#28) should be constant
WToken._symbol (contracts/WToken.sol#29) should be constant
WToken.deadBlocks (contracts/WToken.sol#62) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (@openzeppelin/contracts/access/Ownable.sol#54-56)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (@openzeppelin/contracts/access/Ownable.sol#62-65)
totalSupply() should be declared external:
- WToken.totalSupply() (contracts/WToken.sol#121-123)
getOwner() should be declared external:
- WToken.getOwner() (contracts/WToken.sol#125-127)
transfer(address,uint256) should be declared external:
- WToken.transfer(address,uint256) (contracts/WToken.sol#133-136)
allowance(address,address) should be declared external:
- WToken.allowance(address,address) (contracts/WToken.sol#138-140)
approve(address,uint256) should be declared external:
- WToken.approve(address,uint256) (contracts/WToken.sol#142-145)
transferFrom(address,address,uint256) should be declared external:
- WToken.transferFrom(address,address,uint256) (contracts/WToken.sol#147-151)
increaseAllowance(address,uint256) should be declared external:
- WToken.increaseAllowance(address,uint256) (contracts/WToken.sol#153-156)
decreaseAllowance(address,uint256) should be declared external:
- WToken.decreaseAllowance(address,uint256) (contracts/WToken.sol#158-161)
Use the external attribute for functions never called from the contract.
Additional information: link
Attempt to swap token was unsuccessful. For some reason it is untradeable. If token is not in presale stage and is not traded outside PancakeSwap, then it's a scam
Additional information: link
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
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.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token contract audit
Unable to verify token contract address on the website
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Unable to find audit link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Alexa traffic rank is relatively low
Additional information: link
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account