Fair Shiba Inu Token Logo

FairShiba [Fair Shiba Inu] Token

About FairShiba

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 10 February 2022

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


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

FairShibaInu.addLiquidity(uint256,uint256) (#725-738) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in FairShibaInu._transfer(address,address,uint256) (#637-677):
External calls:
- swapAndLiquify(contractTokenBalance) (#661)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#714-720)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#661)
- recipient.transfer(amount) (#604)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#664)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#672)
- finalAmount = takeFee(sender,recipient,amount) (#666-667)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#745)
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.


Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.

FairShibaInu.swapAndLiquify(uint256) (#686-703) performs a multiplication on the result of a division:
-tokensForLP = tAmount.div(_totalTaxIfBuying).mul(_liquidityFee).div(2) (#688)
Consider ordering multiplication before division.

Additional information: link

FairShibaInu.addLiquidity(uint256,uint256) (#725-738) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
Ensure that all the return values of the function calls are used.

Additional information: link

FairShibaInu.allowance(address,address).owner (#513) shadows:
- Ownable.owner() (#164-166) (function)
FairShibaInu._approve(address,address,uint256).owner (#536) shadows:
- Ownable.owner() (#164-166) (function)
Rename the local variables that shadow another component.

Additional information: link

FairShibaInu.setTaxes(uint256,uint256,uint256,uint256) (#552-560) should emit an event for:
- _liquidityFee = newLiquidityTax (#553)
- _buyBackFee = newBuyBackTax (#555)
- _totalTaxIfBuying = _liquidityFee.add(_marketingFee).add(_buyBackFee) (#558)
- _totalTaxIfSelling = _totalTaxIfBuying.add(_extraFeeOnSell) (#559)
FairShibaInu.setMaxTxAmount(uint256) (#562-564) should emit an event for:
- _maxTxAmount = maxTxAmount (#563)
FairShibaInu.setWalletLimit(uint256) (#574-576) should emit an event for:
- _walletMax = newLimit (#575)
FairShibaInu.setNumTokensBeforeSwap(uint256) (#578-580) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#579)
Emit an event for critical parameter changes.

Additional information: link

FairShibaInu.setMarketingWalletAddress(address).newAddress (#582) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#583)
FairShibaInu.setbuyBackWalletAddress(address).newAddress (#586) lacks a zero-check on :
- buyBackWalletAddress = address(newAddress) (#587)
Check that the address is not zero.

Additional information: link

Reentrancy in FairShibaInu.changeRouterVersion(address) (#607-621):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#615-616)
State variables written after the call(s):
- uniswapV2Pair = newPairAddress (#619)
- uniswapV2Router = _uniswapV2Router (#620)
Reentrancy in FairShibaInu.constructor() (#470-491):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#474-475)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#478)
- _balances[_msgSender()] = _totalSupply (#489)
- _totalTaxIfBuying = _liquidityFee.add(_marketingFee).add(_buyBackFee) (#483)
- _totalTaxIfSelling = _totalTaxIfBuying.add(_extraFeeOnSell) (#484)
- isExcludedFromFee[owner()] = true (#480)
- isExcludedFromFee[address(this)] = true (#481)
- isWalletLimitExempt[owner()] = true (#486)
- isWalletLimitExempt[address(uniswapV2Pair)] = true (#487)
- uniswapV2Router = _uniswapV2Router (#477)
Reentrancy in FairShibaInu.swapAndLiquify(uint256) (#686-703):
External calls:
- swapTokensForEth(tokensForSwap) (#691)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#714-720)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#700)
- recipient.transfer(amount) (#604)
- transferToAddressETH(buyBackWalletAddress,amountBNBBuyBack) (#701)
- recipient.transfer(amount) (#604)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
- _allowances[owner][spender] = amount (#540)
Reentrancy in FairShibaInu.transferFrom(address,address,uint256) (#631-635):
External calls:
- _transfer(sender,recipient,amount) (#632)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#714-720)
External calls sending eth:
- _transfer(sender,recipient,amount) (#632)
- recipient.transfer(amount) (#604)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#633)
- _allowances[owner][spender] = amount (#540)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in FairShibaInu._transfer(address,address,uint256) (#637-677):
External calls:
- swapAndLiquify(contractTokenBalance) (#661)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#714-720)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#661)
- recipient.transfer(amount) (#604)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#746)
- finalAmount = takeFee(sender,recipient,amount) (#666-667)
- Transfer(sender,recipient,finalAmount) (#674)
Reentrancy in FairShibaInu.constructor() (#470-491):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#474-475)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#490)
Reentrancy in FairShibaInu.swapAndLiquify(uint256) (#686-703):
External calls:
- swapTokensForEth(tokensForSwap) (#691)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#714-720)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#700)
- recipient.transfer(amount) (#604)
- transferToAddressETH(buyBackWalletAddress,amountBNBBuyBack) (#701)
- recipient.transfer(amount) (#604)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#541)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
Reentrancy in FairShibaInu.swapTokensForEth(uint256) (#705-723):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#714-720)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#722)
Reentrancy in FairShibaInu.transferFrom(address,address,uint256) (#631-635):
External calls:
- _transfer(sender,recipient,amount) (#632)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#714-720)
External calls sending eth:
- _transfer(sender,recipient,amount) (#632)
- recipient.transfer(amount) (#604)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#541)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#633)
Apply the check-effects-interactions pattern.

Additional information: link

Ownable.unlock() (#199-204) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#201)
Avoid relying on block.timestamp.

Additional information: link

Address.isContract(address) (#95-104) uses assembly
- INLINE ASM (#102)
Address._functionCallWithValue(address,bytes,uint256,string) (#131-148) uses assembly
- INLINE ASM (#140-143)
Do not use evm assembly.

Additional information: link

Address._functionCallWithValue(address,bytes,uint256,string) (#131-148) is never used and should be removed
Address.functionCall(address,bytes) (#114-116) is never used and should be removed
Address.functionCall(address,bytes,string) (#118-120) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#122-124) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#126-129) is never used and should be removed
Address.isContract(address) (#95-104) is never used and should be removed
Address.sendValue(address,uint256) (#106-112) is never used and should be removed
Context._msgData() (#22-25) is never used and should be removed
SafeMath.mod(uint256,uint256) (#83-85) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#87-90) is never used and should be removed
Remove unused functions.

Additional information: link

Low level call in Address.sendValue(address,uint256) (#106-112):
- (success) = recipient.call{value: amount}() (#110)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#131-148):
- (success,returndata) = target.call{value: weiValue}(data) (#134)
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() (#238) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#239) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#255) is not in mixedCase
Function IUniswapV2Router01.WETH() (#274) is not in mixedCase
Parameter FairShibaInu.setSwapAndLiquifyEnabled(bool)._enabled (#590) is not in mixedCase
Variable FairShibaInu._balances (#420) is not in mixedCase
Variable FairShibaInu._liquidityFee (#427) is not in mixedCase
Variable FairShibaInu._marketingFee (#428) is not in mixedCase
Variable FairShibaInu._buyBackFee (#429) is not in mixedCase
Variable FairShibaInu._extraFeeOnSell (#430) is not in mixedCase
Variable FairShibaInu._totalTaxIfBuying (#431) is not in mixedCase
Variable FairShibaInu._totalTaxIfSelling (#432) is not in mixedCase
Variable FairShibaInu._maxTxAmount (#435) is not in mixedCase
Variable FairShibaInu._walletMax (#436) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#23)" inContext (#16-26)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in FairShibaInu._transfer(address,address,uint256) (#637-677):
External calls:
- swapAndLiquify(contractTokenBalance) (#661)
- recipient.transfer(amount) (#604)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#661)
- recipient.transfer(amount) (#604)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#664)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#672)
- finalAmount = takeFee(sender,recipient,amount) (#666-667)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#745)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#746)
- finalAmount = takeFee(sender,recipient,amount) (#666-667)
- Transfer(sender,recipient,finalAmount) (#674)
Reentrancy in FairShibaInu.swapAndLiquify(uint256) (#686-703):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#700)
- recipient.transfer(amount) (#604)
- transferToAddressETH(buyBackWalletAddress,amountBNBBuyBack) (#701)
- recipient.transfer(amount) (#604)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#700)
- recipient.transfer(amount) (#604)
- transferToAddressETH(buyBackWalletAddress,amountBNBBuyBack) (#701)
- recipient.transfer(amount) (#604)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
- _allowances[owner][spender] = amount (#540)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#541)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
Reentrancy in FairShibaInu.transferFrom(address,address,uint256) (#631-635):
External calls:
- _transfer(sender,recipient,amount) (#632)
- recipient.transfer(amount) (#604)
External calls sending eth:
- _transfer(sender,recipient,amount) (#632)
- recipient.transfer(amount) (#604)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#633)
- _allowances[owner][spender] = amount (#540)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#541)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#633)
Apply the check-effects-interactions pattern.

Additional information: link

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

Additional information: link

FairShibaInu.slitherConstructorVariables() (#407-752) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#418)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

FairShibaInu._decimals (#414) should be constant
FairShibaInu._name (#412) should be constant
FairShibaInu._symbol (#413) should be constant
FairShibaInu._totalSupply (#434) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#173-176)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#178-182)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#184-186)
getTime() should be declared external:
- Ownable.getTime() (#188-190)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#192-197)
unlock() should be declared external:
- Ownable.unlock() (#199-204)
name() should be declared external:
- FairShibaInu.name() (#493-495)
symbol() should be declared external:
- FairShibaInu.symbol() (#497-499)
decimals() should be declared external:
- FairShibaInu.decimals() (#501-503)
totalSupply() should be declared external:
- FairShibaInu.totalSupply() (#505-507)
allowance(address,address) should be declared external:
- FairShibaInu.allowance(address,address) (#513-515)
increaseAllowance(address,uint256) should be declared external:
- FairShibaInu.increaseAllowance(address,uint256) (#517-520)
decreaseAllowance(address,uint256) should be declared external:
- FairShibaInu.decreaseAllowance(address,uint256) (#522-525)
minimumTokensBeforeSwapAmount() should be declared external:
- FairShibaInu.minimumTokensBeforeSwapAmount() (#527-529)
approve(address,uint256) should be declared external:
- FairShibaInu.approve(address,uint256) (#531-534)
blacklistAddress(address,bool) should be declared external:
- FairShibaInu.blacklistAddress(address,bool) (#544-546)
setIsExcludedFromFee(address,bool) should be declared external:
- FairShibaInu.setIsExcludedFromFee(address,bool) (#548-550)
setSwapAndLiquifyEnabled(bool) should be declared external:
- FairShibaInu.setSwapAndLiquifyEnabled(bool) (#590-593)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- FairShibaInu.setSwapAndLiquifyByLimitOnly(bool) (#595-597)
getCirculatingSupply() should be declared external:
- FairShibaInu.getCirculatingSupply() (#599-601)
changeRouterVersion(address) should be declared external:
- FairShibaInu.changeRouterVersion(address) (#607-621)
transfer(address,uint256) should be declared external:
- FairShibaInu.transfer(address,uint256) (#626-629)
transferFrom(address,address,uint256) should be declared external:
- FairShibaInu.transferFrom(address,address,uint256) (#631-635)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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.

Contract has 14% buy tax and 8% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.


Number of Binance Smart Chain (BSC) token holders is low.


Token is deployed only at one blockchain


Token has only one trading pair


Unable to find Telegram and Twitter accounts


Unable to find website, listings and other project-related information


Young tokens have high risks of price dump / death


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank

Price for FairShiba