Sacred Doge Token Logo

SDOGE [Sacred Doge] Token

About SDOGE

Listings

Token 2 years
white paper

Decentralized Community & Entertainment Memo Token

Social

Laser Scorebeta Last Audit: 30 November 2021

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

Anti-Scam

Links


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

SacredDoge.contractSwap(uint256) (#723-767) sends eth to arbitrary user
Dangerous calls:
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,DEAD,block.timestamp) (#751-758)
- _marketingWallet.transfer((address(this).balance * _ratios.marketing) / (_ratios.total - _ratios.liquidity)) (#763)
- _teamWallet.transfer(address(this).balance) (#765)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in SacredDoge.transferOwner(address) (#461-477):
External calls:
- _transfer(_owner,newOwner,balanceOf(_owner)) (#471)
- antiSnipe.checkUser(from,to,amount) (#804-808)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(toSwapForEth,0,path,address(this),block.timestamp) (#739-745)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,DEAD,block.timestamp) (#751-758)
External calls sending eth:
- _transfer(_owner,newOwner,balanceOf(_owner)) (#471)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,DEAD,block.timestamp) (#751-758)
- _marketingWallet.transfer((address(this).balance * _ratios.marketing) / (_ratios.total - _ratios.liquidity)) (#763)
- _teamWallet.transfer(address(this).balance) (#765)
State variables written after the call(s):
- _owner = newOwner (#474)
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 SacredDoge.enableTrading() (#782-787):
External calls:
- antiSnipe.setLaunch(lpPair,uint32(block.number),uint64(block.timestamp)) (#785)
State variables written after the call(s):
- tradingEnabled = true (#786)
Apply the check-effects-interactions pattern.

Additional information: link

SacredDoge._finalizeTransfer(address,address,uint256,bool).checked (#803) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.

Additional information: link

SacredDoge._finalizeTransfer(address,address,uint256,bool) (#794-821) ignores return value by antiSnipe.checkUser(from,to,amount) (#804-808)
Ensure that all the return values of the function calls are used.

Additional information: link

SacredDoge.setSwapSettings(uint256,uint256,uint256,uint256) (#636-639) should emit an event for:
- swapThreshold = (_tTotal * thresholdPercent) / thresholdDivisor (#637)
- swapAmount = (_tTotal * amountPercent) / amountDivisor (#638)
Emit an event for critical parameter changes.

Additional information: link

SacredDoge.setWallets(address,address).teamWallet (#641) lacks a zero-check on :
- _teamWallet = address(teamWallet) (#643)
Check that the address is not zero.

Additional information: link

Variable 'SacredDoge._finalizeTransfer(address,address,uint256,bool).check (#804)' in SacredDoge._finalizeTransfer(address,address,uint256,bool) (#794-821) potentially used before declaration: checked = check (#805)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.

Additional information: link

Reentrancy in SacredDoge.setNewRouter(address) (#540-551):
External calls:
- lpPair = IUniswapV2Factory(_newRouter.factory()).createPair(address(this),_newRouter.WETH()) (#544)
State variables written after the call(s):
- _approve(address(this),address(dexRouter),type()(uint256).max) (#550)
- _allowances[sender][spender] = amount (#513)
- dexRouter = _newRouter (#549)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in SacredDoge.transferOwner(address) (#461-477):
External calls:
- _transfer(_owner,newOwner,balanceOf(_owner)) (#471)
- antiSnipe.checkUser(from,to,amount) (#804-808)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(toSwapForEth,0,path,address(this),block.timestamp) (#739-745)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,DEAD,block.timestamp) (#751-758)
External calls sending eth:
- _transfer(_owner,newOwner,balanceOf(_owner)) (#471)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,DEAD,block.timestamp) (#751-758)
- _marketingWallet.transfer((address(this).balance * _ratios.marketing) / (_ratios.total - _ratios.liquidity)) (#763)
- _teamWallet.transfer(address(this).balance) (#765)
Event emitted after the call(s):
- OwnershipTransferred(_owner,newOwner) (#475)
Apply the check-effects-interactions pattern.

Additional information: link

SacredDoge.setLpPair(address,bool) (#553-565) uses timestamp for comparisons
Dangerous comparisons:
- timeSinceLastPair != 0 (#558)
- require(bool,string)(block.timestamp - timeSinceLastPair > 259200,Cannot set a new pair this week!) (#559)
Avoid relying on block.timestamp.

Additional information: link

SacredDoge.setLpPair(address,bool) (#553-565) compares to a boolean constant:
-enabled == false (#554)
Remove the equality to the boolean constant.

Additional information: link

Context._msgData() (#14-17) is never used and should be removed
Remove unused functions.

Additional information: link

SacredDoge.swapAmount (#402) is set pre-construction with a non-constant function or state variable:
- (_tTotal * 5) / 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

solc-0.8.9 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

Variable SacredDoge.__balances (#717-721) is not in mixedCase
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

Reentrancy in SacredDoge.transferOwner(address) (#461-477):
External calls:
- _transfer(_owner,newOwner,balanceOf(_owner)) (#471)
- _marketingWallet.transfer((address(this).balance * _ratios.marketing) / (_ratios.total - _ratios.liquidity)) (#763)
- _teamWallet.transfer(address(this).balance) (#765)
External calls sending eth:
- _transfer(_owner,newOwner,balanceOf(_owner)) (#471)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,DEAD,block.timestamp) (#751-758)
- _marketingWallet.transfer((address(this).balance * _ratios.marketing) / (_ratios.total - _ratios.liquidity)) (#763)
- _teamWallet.transfer(address(this).balance) (#765)
State variables written after the call(s):
- _owner = newOwner (#474)
Event emitted after the call(s):
- OwnershipTransferred(_owner,newOwner) (#475)
Apply the check-effects-interactions pattern.

Additional information: link

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

Additional information: link

SacredDoge.slitherConstructorConstantVariables() (#314-841) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#389)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

SacredDoge._tFeeTotal (#381) is never used in SacredDoge (#314-841)
Remove unused state variables.

Additional information: link

SacredDoge.startingSupply (#332) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

enableTrading() should be declared external:
- SacredDoge.enableTrading() (#782-787)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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


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.


Twitter account link seems to be invalid


Telegram account has relatively few subscribers


Unable to find Blog account (Reddit or Medium)


Unable to find Youtube account


Unable to find Discord account


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 SDOGE