Tired of rug pulls, unfair launches with private investors, whales and bots? So are we. We decided to create OG (Original Gangsta) Shiba on the basis of fair launch principles as a tribute to the old crypto tradition, when Doge was a puppy, honesty and fair play were more important than a cash grab and scam.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in OGShiba._transfer(address,address,uint256) (#624-674):
External calls:
- collectFees() (#654)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#751-758)
- IERC20(marketingWalletToken).transfer(marketingAddress,IERC20(marketingWalletToken).balanceOf(address(this))) (#709)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#720-726)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#738-744)
External calls sending eth:
- collectFees() (#654)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#751-758)
State variables written after the call(s):
- transferToken(from,address(this),feesToContract) (#668)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#765)
- _balances[recipient] = _balances[recipient].add(amount) (#766)
- transferToken(from,deadAddress,toBurnAmount) (#669)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#765)
- _balances[recipient] = _balances[recipient].add(amount) (#766)
- transferToken(from,to,amount) (#673)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#765)
- _balances[recipient] = _balances[recipient].add(amount) (#766)
Apply the check-effects-interactions pattern.
Additional information: link
OGShiba.swapAndSendToFee(uint256) (#704-710) ignores return value by IERC20(marketingWalletToken).transfer(marketingAddress,IERC20(marketingWalletToken).balanceOf(address(this))) (#709)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
OGShiba.addLiquidity(uint256,uint256) (#747-759) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#751-758)
Ensure that all the return values of the function calls are used.
Additional information: link
OGShiba._approve(address,address,uint256).owner (#520) shadows:
- Ownable.owner() (#161-163) (function)
Rename the local variables that shadow another component.
Additional information: link
OGShiba.setMaxBalance(uint256) (#565-569) should emit an event for:
- _maxBalance = newMaxBalance (#568)
Emit an event for critical parameter changes.
Additional information: link
OGShiba.setMarketingWalletToken(address)._marketingWalletToken (#561) lacks a zero-check on :
- marketingWalletToken = _marketingWalletToken (#562)
Check that the address is not zero.
Additional information: link
Reentrancy in OGShiba.transferFrom(address,address,uint256) (#504-508):
External calls:
- _transfer(sender,recipient,amount) (#505)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#751-758)
- IERC20(marketingWalletToken).transfer(marketingAddress,IERC20(marketingWalletToken).balanceOf(address(this))) (#709)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#720-726)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#738-744)
External calls sending eth:
- _transfer(sender,recipient,amount) (#505)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#751-758)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#506)
- _allowances[owner][spender] = amount (#524)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in OGShiba.transferFrom(address,address,uint256) (#504-508):
External calls:
- _transfer(sender,recipient,amount) (#505)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#751-758)
- IERC20(marketingWalletToken).transfer(marketingAddress,IERC20(marketingWalletToken).balanceOf(address(this))) (#709)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#720-726)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#738-744)
External calls sending eth:
- _transfer(sender,recipient,amount) (#505)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#751-758)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#525)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#506)
Apply the check-effects-interactions pattern.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#128-145) uses assembly
- INLINE ASM (#137-140)
Do not use evm assembly.
Additional information: link
SafeMath.mod(uint256,uint256,string) (#83-86) is never used and should be removed
Remove unused functions.
Additional information: link
OGShiba._totalSupply (#409) is set pre-construction with a non-constant function or state variable:
- 100000 * 10 ** 9 * 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
solc-0.8.7 is not recommended for deployment
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._functionCallWithValue(address,bytes,uint256,string) (#128-145):
- (success,returndata) = target.call{value: weiValue}(data) (#131)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Constant OGShiba._maxFees (#420) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#15)" inContext (#9-18)
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 (#261) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#262)
Prevent variables from having similar names.
Additional information: link
OGShiba.slitherConstructorConstantVariables() (#397-770) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#413)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Ownable._lockTime (#151) is never used in OGShiba (#397-770)
Remove unused state variables.
Additional information: link
Ownable._previousOwner (#150) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
maxBalance() should be declared external:
- OGShiba.maxBalance() (#619-621)
Use the external attribute for functions never called from the contract.
Additional information: link
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
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
Unable to crawl data from the website
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap
Additional information: link
Unable to find token contract audit
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 Telegram link on the website
Unable to find Twitter link on the website
Unable to find token on CoinHunt
Additional information: link
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinMarketCap listing / rank
Token has relatively low CoinGecko rank
Twitter account link seems to be invalid
Unable to find Youtube account