Tribal Wars Token Logo

TW [Tribal Wars] Token

About TW

Listings

Token 4 years
white paper

Tribal Wars is the world's first truly decentralized NFT P2E game built on BSC, inpired by well-known WOW with millions of fans worldside.

We are a war-themed strategy game with completely new style and a variety of game modes, Tribal Wars is developed by a subsidiary company of game studio of Yasha GO and backed with blockchain technology by akaChain.io,we really need talented strategists here to join in us in these epic battles and earn valuable rewards.We have designed gameplay that can ignite your talent in strategic thinking and teamwork.Assert yourself in Tribal Wars universe with variant in game modes:PVE ,battle wars,staking ,and adventure that we are working around the clock to improve every day with hopes that you can really enjoy and earn more income from this amazing gamefi.

Social

Laser Scorebeta Last Audit: 15 April 2022

report
Token has too many issues. Scam probability is high.

Anti-Scam

Links

TribalWars.addLiquidity(uint256,uint256) (#677-690) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

Reentrancy in TribalWars._transfer(address,address,uint256) (#594-625):
External calls:
- swapAndLiquify(contractTokenBalance) (#612)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#666-672)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#612)
- recipient.transfer(amount) (#559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#615)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#620)
- finalAmount = takeFee(sender,amount) (#617-618)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#698)
Apply the check-effects-interactions pattern.

Additional information: link


Contract ownership is not renounced (belongs to a wallet)


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.

TribalWars.slitherConstructorVariables() (#376-706) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#389)
TribalWars.slitherConstructorVariables() (#376-706) uses literals with too many digits:
- _totalSupply = 1000000000 * 10 ** _decimals (#405)
TribalWars.slitherConstructorVariables() (#376-706) uses literals with too many digits:
- minimumTokensBeforeSwap = 200000 * 10 ** _decimals (#406)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

TribalWars._decimals (#383) should be constant
TribalWars._name (#381) should be constant
TribalWars._symbol (#382) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#159-162)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#164-168)
getTime() should be declared external:
- Ownable.getTime() (#170-172)
name() should be declared external:
- TribalWars.name() (#462-464)
symbol() should be declared external:
- TribalWars.symbol() (#466-468)
decimals() should be declared external:
- TribalWars.decimals() (#470-472)
totalSupply() should be declared external:
- TribalWars.totalSupply() (#474-476)
allowance(address,address) should be declared external:
- TribalWars.allowance(address,address) (#482-484)
increaseAllowance(address,uint256) should be declared external:
- TribalWars.increaseAllowance(address,uint256) (#486-489)
decreaseAllowance(address,uint256) should be declared external:
- TribalWars.decreaseAllowance(address,uint256) (#491-494)
minimumTokensBeforeSwapAmount() should be declared external:
- TribalWars.minimumTokensBeforeSwapAmount() (#496-498)
approve(address,uint256) should be declared external:
- TribalWars.approve(address,uint256) (#500-503)
setMarketPairStatus(address,bool) should be declared external:
- TribalWars.setMarketPairStatus(address,bool) (#513-515)
setIsExcludedFromFee(address,bool) should be declared external:
- TribalWars.setIsExcludedFromFee(address,bool) (#517-519)
setSwapAndLiquifyEnabled(bool) should be declared external:
- TribalWars.setSwapAndLiquifyEnabled(bool) (#545-548)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- TribalWars.setSwapAndLiquifyByLimitOnly(bool) (#550-552)
getCirculatingSupply() should be declared external:
- TribalWars.getCirculatingSupply() (#554-556)
changeRouterVersion(address) should be declared external:
- TribalWars.changeRouterVersion(address) (#562-578)
transfer(address,uint256) should be declared external:
- TribalWars.transfer(address,uint256) (#583-586)
transferFrom(address,address,uint256) should be declared external:
- TribalWars.transferFrom(address,address,uint256) (#588-592)
Use the external attribute for functions never called from the contract.

Additional information: link

Reentrancy in TribalWars._transfer(address,address,uint256) (#594-625):
External calls:
- swapAndLiquify(contractTokenBalance) (#612)
- recipient.transfer(amount) (#559)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#612)
- recipient.transfer(amount) (#559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#615)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#620)
- finalAmount = takeFee(sender,amount) (#617-618)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#698)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#699)
- finalAmount = takeFee(sender,amount) (#617-618)
- Transfer(sender,recipient,finalAmount) (#622)
Reentrancy in TribalWars.transferFrom(address,address,uint256) (#588-592):
External calls:
- _transfer(sender,recipient,amount) (#589)
- recipient.transfer(amount) (#559)
External calls sending eth:
- _transfer(sender,recipient,amount) (#589)
- recipient.transfer(amount) (#559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#590)
- _allowances[owner][spender] = amount (#509)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#510)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#590)
Apply the check-effects-interactions pattern.

Additional information: link

TribalWars.addLiquidity(uint256,uint256) (#677-690) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
Ensure that all the return values of the function calls are used.

Additional information: link

TribalWars.allowance(address,address).owner (#482) shadows:
- Ownable.owner() (#150-152) (function)
TribalWars._approve(address,address,uint256).owner (#505) shadows:
- Ownable.owner() (#150-152) (function)
Rename the local variables that shadow another component.

Additional information: link

TribalWars.setBuyTaxes(uint256,uint256,uint256,uint256) (#521-527) should emit an event for:
- _marketMakerFee = marketMakerFeeNew (#522)
- _marketingFee = marketingFeeNew (#523)
- _lpFee = lpFeeNew (#524)
- _stakeFee = stakeFeeNew (#525)
- _totalTax = _marketMakerFee.add(_marketingFee).add(_lpFee).add(_stakeFee) (#526)
TribalWars.setNumTokensBeforeSwap(uint256) (#529-531) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#530)
Emit an event for critical parameter changes.

Additional information: link

TribalWars.setMarketingWalletAddress(address).newAddress (#533) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#534)
TribalWars.setMarketMakerWalletAddress(address).newAddress (#537) lacks a zero-check on :
- marketMakerWalletAddress = address(newAddress) (#538)
TribalWars.setStakeWalletAddress(address).newAddress (#541) lacks a zero-check on :
- stakeWalletAddress = address(newAddress) (#542)
Check that the address is not zero.

Additional information: link

Reentrancy in TribalWars.changeRouterVersion(address) (#562-578):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#570-571)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#577)
- uniswapPair = newPairAddress (#574)
- uniswapV2Router = _uniswapV2Router (#575)
Reentrancy in TribalWars.constructor() (#438-460):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#442-443)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#446)
- _balances[_msgSender()] = _totalSupply (#458)
- _totalTax = _marketMakerFee.add(_marketingFee).add(_lpFee).add(_stakeFee) (#454)
- isExcludedFromFee[owner()] = true (#448)
- isExcludedFromFee[marketMakerWalletAddress] = true (#449)
- isExcludedFromFee[marketingWalletAddress] = true (#450)
- isExcludedFromFee[stakeWalletAddress] = true (#451)
- isExcludedFromFee[address(this)] = true (#452)
- isMarketPair[address(uniswapPair)] = true (#456)
- uniswapV2Router = _uniswapV2Router (#445)
Reentrancy in TribalWars.swapAndLiquify(uint256) (#634-655):
External calls:
- swapTokensForEth(marketingAmount.add(lpAmount.div(2))) (#643)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#666-672)
- addLiquidity(lpAmount.div(2),lpBNB) (#651)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
External calls sending eth:
- addLiquidity(lpAmount.div(2),lpBNB) (#651)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
State variables written after the call(s):
- addLiquidity(lpAmount.div(2),lpBNB) (#651)
- _allowances[owner][spender] = amount (#509)
Reentrancy in TribalWars.transferFrom(address,address,uint256) (#588-592):
External calls:
- _transfer(sender,recipient,amount) (#589)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#666-672)
External calls sending eth:
- _transfer(sender,recipient,amount) (#589)
- recipient.transfer(amount) (#559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#590)
- _allowances[owner][spender] = amount (#509)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in TribalWars._transfer(address,address,uint256) (#594-625):
External calls:
- swapAndLiquify(contractTokenBalance) (#612)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#666-672)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#612)
- recipient.transfer(amount) (#559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#699)
- finalAmount = takeFee(sender,amount) (#617-618)
- Transfer(sender,recipient,finalAmount) (#622)
Reentrancy in TribalWars.constructor() (#438-460):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#442-443)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#459)
Reentrancy in TribalWars.swapAndLiquify(uint256) (#634-655):
External calls:
- swapTokensForEth(marketingAmount.add(lpAmount.div(2))) (#643)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#666-672)
- addLiquidity(lpAmount.div(2),lpBNB) (#651)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
External calls sending eth:
- addLiquidity(lpAmount.div(2),lpBNB) (#651)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#510)
- addLiquidity(lpAmount.div(2),lpBNB) (#651)
Reentrancy in TribalWars.swapTokensForEth(uint256) (#657-675):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#666-672)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#674)
Reentrancy in TribalWars.transferFrom(address,address,uint256) (#588-592):
External calls:
- _transfer(sender,recipient,amount) (#589)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#666-672)
External calls sending eth:
- _transfer(sender,recipient,amount) (#589)
- recipient.transfer(amount) (#559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#682-689)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#510)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#590)
Apply the check-effects-interactions pattern.

Additional information: link

Address.isContract(address) (#83-92) uses assembly
- INLINE ASM (#90)
Address._functionCallWithValue(address,bytes,uint256,string) (#119-136) uses assembly
- INLINE ASM (#128-131)
Do not use evm assembly.

Additional information: link

Address._functionCallWithValue(address,bytes,uint256,string) (#119-136) is never used and should be removed
Address.functionCall(address,bytes) (#102-104) is never used and should be removed
Address.functionCall(address,bytes,string) (#106-108) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#110-112) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#114-117) is never used and should be removed
Address.isContract(address) (#83-92) is never used and should be removed
Address.sendValue(address,uint256) (#94-100) is never used and should be removed
Context._msgData() (#10-13) is never used and should be removed
SafeMath.mod(uint256,uint256) (#71-73) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#75-78) is never used and should be removed
Remove unused functions.

Additional information: link

TribalWars._totalTax (#403) is set pre-construction with a non-constant function or state variable:
- _marketMakerFee.add(_marketingFee).add(_lpFee).add(_stakeFee)
TribalWars._totalSupply (#405) is set pre-construction with a non-constant function or state variable:
- 1000000000 * 10 ** _decimals
TribalWars.minimumTokensBeforeSwap (#406) is set pre-construction with a non-constant function or state variable:
- 200000 * 10 ** _decimals
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

Low level call in Address.sendValue(address,uint256) (#94-100):
- (success) = recipient.call{value: amount}() (#98)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#119-136):
- (success,returndata) = target.call{value: weiValue}(data) (#122)
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() (#207) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#208) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#224) is not in mixedCase
Function IUniswapV2Router01.WETH() (#243) is not in mixedCase
Parameter TribalWars.setSwapAndLiquifyEnabled(bool)._enabled (#545) is not in mixedCase
Variable TribalWars._balances (#391) is not in mixedCase
Variable TribalWars._marketMakerFee (#397) is not in mixedCase
Variable TribalWars._marketingFee (#398) is not in mixedCase
Variable TribalWars._lpFee (#399) is not in mixedCase
Variable TribalWars._stakeFee (#400) is not in mixedCase
Variable TribalWars._totalTax (#403) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#11)" inContext (#4-14)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#248) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#249)
Prevent variables from having similar names.

Additional information: link

Holders:


Token seems to be untradeable: there is no PancakeSwap trading pair and no trading volumes. Ignore for presale.


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.


Telegram account link seems to be invalid


Unable to find Blog account (Reddit or Medium)


Unable to find Youtube account


Unable to find Discord account


Twitter account has few posts


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 that token and website are owned by the same team (no listings + unable to find contract on website)


Unable to verify token contract address on the website


Unable to find audit link on the website


Unable to find whitepaper link on the website


Unable to find token on CoinGecko

Additional information: link


Unable to find token on CoinMarketCap

Additional information: link


Unable to find token on CoinHunt

Additional information: link


Unable to find code repository for the project


Young tokens have high risks of scam / price dump / death


Young tokens have high risks of scam / price dump / death


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank


Young tokens have high risks of price dump / death

Price for TW

News for TW