The $WOJ token is a charity token, based on the BEP20 standard. Using $WOJ tokens the holders can enjoy multiple benefits within our wojak finance ecosystem, as it may be used as the governance token in the future.
As it is a deflationary token, the value will gradually increase based on the number of transactions made. Therefore, the more Wojak tokens users hold and donate, the more reward they can expect. In the future, instead of sending funds manually, we plan to automate it, and WOJ Governance will be used for it Our long term goal is to become a completely Decentralized Autonomous Organization through WOJ Governance.
Wojak.addLiquidity(uint256,uint256) (last one Wojak (4).sol#528-540) sends eth to arbitrary user
Dangerous calls:
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (last one Wojak (4).sol#532-539)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Wojak.transferFrom(address,address,uint256) (last one Wojak (4).sol#178-188):
External calls:
- _transfer(sender,recipient,amount) (last one Wojak (4).sol#179)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (last one Wojak (4).sol#532-539)
- (success) = recipient.call{value: amount}() (Address.sol#9)
- rewardsWallet.sendValue(transferBalance * appliedFees.rewardsFee / appliedFees.swapFee) (last one Wojak (4).sol#501)
- marketingWallet.sendValue(transferBalance * appliedFees.marketingFee / appliedFees.swapFee) (last one Wojak (4).sol#502)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (last one Wojak (4).sol#519-525)
External calls sending eth:
- _transfer(sender,recipient,amount) (last one Wojak (4).sol#179)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (last one Wojak (4).sol#532-539)
- (success) = recipient.call{value: amount}() (Address.sol#9)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (last one Wojak (4).sol#184)
- _allowances[owner][spender] = amount (last one Wojak (4).sol#434)
Reentrancy in Wojak._transfer(address,address,uint256) (last one Wojak (4).sol#438-494):
External calls:
- swapAndSendToFees(contractTokenBalance) (last one Wojak (4).sol#475)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (last one Wojak (4).sol#532-539)
- (success) = recipient.call{value: amount}() (Address.sol#9)
- rewardsWallet.sendValue(transferBalance * appliedFees.rewardsFee / appliedFees.swapFee) (last one Wojak (4).sol#501)
- marketingWallet.sendValue(transferBalance * appliedFees.marketingFee / appliedFees.swapFee) (last one Wojak (4).sol#502)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (last one Wojak (4).sol#519-525)
External calls sending eth:
- swapAndSendToFees(contractTokenBalance) (last one Wojak (4).sol#475)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (last one Wojak (4).sol#532-539)
- (success) = recipient.call{value: amount}() (Address.sol#9)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSale) (last one Wojak (4).sol#493)
- _rOwned[address(this)] += rSwap (last one Wojak (4).sol#354)
- _rOwned[sender] -= s.rAmount (last one Wojak (4).sol#564)
- _rOwned[recipient] += s.rTransferAmount (last one Wojak (4).sol#565)
- _tokenTransfer(from,to,amount,takeFee,isSale) (last one Wojak (4).sol#493)
- _rTotal = _rTotal - rFee (last one Wojak (4).sol#296)
- _tokenTransfer(from,to,amount,takeFee,isSale) (last one Wojak (4).sol#493)
- _tOwned[address(this)] += tSwap (last one Wojak (4).sol#356)
- _tOwned[sender] -= amount (last one Wojak (4).sol#559)
- _tOwned[recipient] += s.tTransferAmount (last one Wojak (4).sol#562)
- _tokenTransfer(from,to,amount,takeFee,isSale) (last one Wojak (4).sol#493)
- appliedFees = sellFees (last one Wojak (4).sol#548)
- appliedFees = buyFees (last one Wojak (4).sol#552)
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.
Reentrancy in Wojak.setRouterAddress(address) (last one Wojak (4).sol#605-618):
External calls:
- pancakePair = IFactory(_newRouter.factory()).createPair(address(this),_newRouter.WETH()) (last one Wojak (4).sol#612)
State variables written after the call(s):
- pancakeRouter = _newRouter (last one Wojak (4).sol#617)
Apply the check-effects-interactions pattern.
Additional information: link
Wojak.addLiquidity(uint256,uint256) (last one Wojak (4).sol#528-540) ignores return value by pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (last one Wojak (4).sol#532-539)
Ensure that all the return values of the function calls are used.
Additional information: link
Wojak._approve(address,address,uint256).owner (last one Wojak (4).sol#430) shadows:
- Ownable.owner() (Ownable.sol#31-33) (function)
Wojak.allowance(address,address).owner (last one Wojak (4).sol#167) shadows:
- Ownable.owner() (Ownable.sol#31-33) (function)
Wojak.rescueBNBFromContract()._owner (last one Wojak (4).sol#582) shadows:
- Ownable._owner (Ownable.sol#20) (state variable)
Rename the local variables that shadow another component.
Additional information: link
Wojak.setDeployerAddress(address)._address (last one Wojak (4).sol#376) lacks a zero-check on :
- deployerAddress = _address (last one Wojak (4).sol#377)
Wojak.rescueBNBFromContract()._owner (last one Wojak (4).sol#582) lacks a zero-check on :
- _owner.transfer(address(this).balance) (last one Wojak (4).sol#583)
Wojak.setMarketingWallet(address)._address (last one Wojak (4).sol#364) lacks a zero-check on :
- marketingWallet = _address (last one Wojak (4).sol#365)
Wojak.setRewardsWallet(address)._address (last one Wojak (4).sol#370) lacks a zero-check on :
- rewardsWallet = _address (last one Wojak (4).sol#371)
Check that the address is not zero.
Additional information: link
Wojak.includeInReward(address) (last one Wojak (4).sol#270-281) has costly operations inside a loop:
- _excluded.pop() (last one Wojak (4).sol#277)
Use a local variable to hold the loop computation result.
Additional information: link
Redundant expression "this (Context.sol#11)" inContext (Context.sol#4-14)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Wojak.previousFees (last one Wojak (4).sol#68) is never used in Wojak (last one Wojak (4).sol#11-620)
Wojak.MAX_INT (last one Wojak (4).sol#38) is never used in Wojak (last one Wojak (4).sol#11-620)
Remove unused state variables.
Additional information: link
Context._msgData() (Context.sol#10-13) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.0 (IERC20.sol#2) allows old versions
Pragma version^0.8.0 (IFactory.sol#2) allows old versions
Pragma version^0.8.0 (Context.sol#2) allows old versions
Pragma version^0.8.0 (Ownable.sol#2) allows old versions
Pragma version^0.8.0 (Address.sol#2) allows old versions
Pragma version^0.8.0 (IRouter.sol#2) allows old versions
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in Address.sendValue(address,uint256) (Address.sol#6-11):
- (success) = recipient.call{value: amount}() (Address.sol#9)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Wojak.setMaxWalletAmount(uint256) (last one Wojak (4).sol#421-423) should emit an event for:
- maxWalletTokens = amount * 10 ** 9 (last one Wojak (4).sol#422)
Wojak.setNumTokensToSwap(uint256) (last one Wojak (4).sol#413-415) should emit an event for:
- minTokensToSwap = amount * 10 ** 9 (last one Wojak (4).sol#414)
Wojak.setMaxTxAmount(uint256) (last one Wojak (4).sol#417-419) should emit an event for:
- maxTxAmount = amount * 10 ** 9 (last one Wojak (4).sol#418)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in Wojak._transfer(address,address,uint256) (last one Wojak (4).sol#438-494):
External calls:
- swapAndSendToFees(contractTokenBalance) (last one Wojak (4).sol#475)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (last one Wojak (4).sol#532-539)
- (success) = recipient.call{value: amount}() (Address.sol#9)
- rewardsWallet.sendValue(transferBalance * appliedFees.rewardsFee / appliedFees.swapFee) (last one Wojak (4).sol#501)
- marketingWallet.sendValue(transferBalance * appliedFees.marketingFee / appliedFees.swapFee) (last one Wojak (4).sol#502)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (last one Wojak (4).sol#519-525)
External calls sending eth:
- swapAndSendToFees(contractTokenBalance) (last one Wojak (4).sol#475)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (last one Wojak (4).sol#532-539)
- (success) = recipient.call{value: amount}() (Address.sol#9)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSale) (last one Wojak (4).sol#493)
- _tFeeTotal = _tFeeTotal + tFee (last one Wojak (4).sol#297)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Wojak._transfer(address,address,uint256) (last one Wojak (4).sol#438-494):
External calls:
- swapAndSendToFees(contractTokenBalance) (last one Wojak (4).sol#475)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (last one Wojak (4).sol#532-539)
- (success) = recipient.call{value: amount}() (Address.sol#9)
- rewardsWallet.sendValue(transferBalance * appliedFees.rewardsFee / appliedFees.swapFee) (last one Wojak (4).sol#501)
- marketingWallet.sendValue(transferBalance * appliedFees.marketingFee / appliedFees.swapFee) (last one Wojak (4).sol#502)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (last one Wojak (4).sol#519-525)
External calls sending eth:
- swapAndSendToFees(contractTokenBalance) (last one Wojak (4).sol#475)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (last one Wojak (4).sol#532-539)
- (success) = recipient.call{value: amount}() (Address.sol#9)
Event emitted after the call(s):
- Transfer(sender,address(this),s.tSwap) (last one Wojak (4).sol#571)
- _tokenTransfer(from,to,amount,takeFee,isSale) (last one Wojak (4).sol#493)
- Transfer(sender,recipient,s.tTransferAmount) (last one Wojak (4).sol#573)
- _tokenTransfer(from,to,amount,takeFee,isSale) (last one Wojak (4).sol#493)
Reentrancy in Wojak.swapAndSendToFees(uint256) (last one Wojak (4).sol#496-504):
External calls:
- swapTokensForBNB(tokens - tokensForLiquidity / 2) (last one Wojak (4).sol#499)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (last one Wojak (4).sol#519-525)
- rewardsWallet.sendValue(transferBalance * appliedFees.rewardsFee / appliedFees.swapFee) (last one Wojak (4).sol#501)
- marketingWallet.sendValue(transferBalance * appliedFees.marketingFee / appliedFees.swapFee) (last one Wojak (4).sol#502)
- addLiquidity(tokensForLiquidity / 2,address(this).balance) (last one Wojak (4).sol#503)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (last one Wojak (4).sol#532-539)
External calls sending eth:
- addLiquidity(tokensForLiquidity / 2,address(this).balance) (last one Wojak (4).sol#503)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (last one Wojak (4).sol#532-539)
Event emitted after the call(s):
- Approval(owner,spender,amount) (last one Wojak (4).sol#435)
- addLiquidity(tokensForLiquidity / 2,address(this).balance) (last one Wojak (4).sol#503)
Reentrancy in Wojak.transferFrom(address,address,uint256) (last one Wojak (4).sol#178-188):
External calls:
- _transfer(sender,recipient,amount) (last one Wojak (4).sol#179)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (last one Wojak (4).sol#532-539)
- (success) = recipient.call{value: amount}() (Address.sol#9)
- rewardsWallet.sendValue(transferBalance * appliedFees.rewardsFee / appliedFees.swapFee) (last one Wojak (4).sol#501)
- marketingWallet.sendValue(transferBalance * appliedFees.marketingFee / appliedFees.swapFee) (last one Wojak (4).sol#502)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (last one Wojak (4).sol#519-525)
External calls sending eth:
- _transfer(sender,recipient,amount) (last one Wojak (4).sol#179)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (last one Wojak (4).sol#532-539)
- (success) = recipient.call{value: amount}() (Address.sol#9)
Event emitted after the call(s):
- Approval(owner,spender,amount) (last one Wojak (4).sol#435)
- _approve(sender,_msgSender(),currentAllowance - amount) (last one Wojak (4).sol#184)
Apply the check-effects-interactions pattern.
Additional information: link
Different versions of Solidity are used:
- Version used: ['0.8.7', '^0.8.0']
- ^0.8.0 (Address.sol#2)
- ^0.8.0 (Context.sol#2)
- ^0.8.0 (IERC20.sol#2)
- ^0.8.0 (IFactory.sol#2)
- ^0.8.0 (IRouter.sol#2)
- ^0.8.0 (Ownable.sol#2)
- 0.8.7 (last one Wojak (4).sol#2)
Use one Solidity version.
Additional information: link
Wojak.maxTxAmount (last one Wojak (4).sol#99) is set pre-construction with a non-constant function or state variable:
- _tTotal / 200
Wojak.maxWalletTokens (last one Wojak (4).sol#100) is set pre-construction with a non-constant function or state variable:
- _tTotal / 100
Wojak.minTokensToSwap (last one Wojak (4).sol#98) is set pre-construction with a non-constant function or state variable:
- _tTotal / 1000
Wojak.appliedFees (last one Wojak (4).sol#67) is set pre-construction with a non-constant function or state variable:
- buyFees
Wojak._rTotal (last one Wojak (4).sol#30) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
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
Parameter Wojak.setTotalSellFees(uint256)._totSellFees (last one Wojak (4).sol#404) is not in mixedCase
Parameter Wojak.setDeployerAddress(address)._address (last one Wojak (4).sol#376) is not in mixedCase
Struct Wojak.feeRatesStruct (last one Wojak (4).sol#40-47) is not in CapWords
Parameter Wojak.setMarketingWallet(address)._address (last one Wojak (4).sol#364) is not in mixedCase
Event WojakdistributeThresholdPass(uint256) (last one Wojak (4).sol#104) is not in CapWords
Parameter Wojak.setTotalBuyFees(uint256)._totFees (last one Wojak (4).sol#400) is not in mixedCase
Event WojakswapEnabledUpdated(bool) (last one Wojak (4).sol#103) is not in CapWords
Function IRouter.WETH() (IRouter.sol#5) is not in mixedCase
Parameter Wojak.setSwapEnabled(bool)._enabled (last one Wojak (4).sol#408) is not in mixedCase
Variable Wojak.MAX_INT (last one Wojak (4).sol#38) is not in mixedCase
Struct Wojak.valuesFromGetValues (last one Wojak (4).sol#70-78) is not in CapWords
Parameter Wojak.setRewardsWallet(address)._address (last one Wojak (4).sol#370) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Wojak._getTValues(uint256,bool) (last one Wojak (4).sol#308-317) uses literals with too many digits:
- s.tFee = tAmount * appliedFees.totFees * appliedFees.taxFee / 1000000 (last one Wojak (4).sol#313)
Wojak._getTValues(uint256,bool) (last one Wojak (4).sol#308-317) uses literals with too many digits:
- s.tSwap = tAmount * appliedFees.totFees * appliedFees.swapFee / 1000000 (last one Wojak (4).sol#314)
Wojak.slitherConstructorVariables() (last one Wojak (4).sol#11-620) uses literals with too many digits:
- deadAddress = address(0x000000000000000000000000000000000000dEaD) (last one Wojak (4).sol#90)
Wojak.slitherConstructorVariables() (last one Wojak (4).sol#11-620) uses literals with too many digits:
- deployerAddress = address(0x0000000000000000000000000000000000000000) (last one Wojak (4).sol#91)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Wojak.MAX_INT (last one Wojak (4).sol#38) should be constant
Wojak._symbol (last one Wojak (4).sol#35) should be constant
Wojak.deadAddress (last one Wojak (4).sol#90) should be constant
Wojak._tTotal (last one Wojak (4).sol#29) should be constant
Wojak._name (last one Wojak (4).sol#34) should be constant
Wojak._decimals (last one Wojak (4).sol#36) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
excludeFromFee(address) should be declared external:
- Wojak.excludeFromFee(address) (last one Wojak (4).sol#283-285)
increaseAllowance(address,uint256) should be declared external:
- Wojak.increaseAllowance(address,uint256) (last one Wojak (4).sol#191-194)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Ownable.sol#42-44)
decreaseAllowance(address,uint256) should be declared external:
- Wojak.decreaseAllowance(address,uint256) (last one Wojak (4).sol#197-205)
excludeFromReward(address) should be declared external:
- Wojak.excludeFromReward(address) (last one Wojak (4).sol#247-254)
setSwapEnabled(bool) should be declared external:
- Wojak.setSwapEnabled(bool) (last one Wojak (4).sol#408-411)
checkBadActor(address) should be declared external:
- Wojak.checkBadActor(address) (last one Wojak (4).sol#601-603)
decimals() should be declared external:
- Wojak.decimals() (last one Wojak (4).sol#145-147)
totalSupply() should be declared external:
- Wojak.totalSupply() (last one Wojak (4).sol#150-152)
transfer(address,uint256) should be declared external:
- Wojak.transfer(address,uint256) (last one Wojak (4).sol#161-164)
excludeFromReward(address[]) should be declared external:
- Wojak.excludeFromReward(address[]) (last one Wojak (4).sol#256-267)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#47-50)
deliver(uint256) should be declared external:
- Wojak.deliver(uint256) (last one Wojak (4).sol#218-225)
transferFrom(address,address,uint256) should be declared external:
- Wojak.transferFrom(address,address,uint256) (last one Wojak (4).sol#178-188)
isExcludedFromFee(address) should be declared external:
- Wojak.isExcludedFromFee(address) (last one Wojak (4).sol#425-427)
symbol() should be declared external:
- Wojak.symbol() (last one Wojak (4).sol#140-142)
approve(address,uint256) should be declared external:
- Wojak.approve(address,uint256) (last one Wojak (4).sol#172-175)
name() should be declared external:
- Wojak.name() (last one Wojak (4).sol#135-137)
totalFeesCharged() should be declared external:
- Wojak.totalFeesCharged() (last one Wojak (4).sol#213-215)
includeInFee(address) should be declared external:
- Wojak.includeInFee(address) (last one Wojak (4).sol#287-289)
isExcludedFromReward(address) should be declared external:
- Wojak.isExcludedFromReward(address) (last one Wojak (4).sol#208-210)
Use the external attribute for functions never called from the contract.
Additional information: link
Token was delisted from CoinHunt
Additional information: link
Unable to find audit link on the website
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Token has relatively low CoinGecko rank