DiamondShiba Token Logo

DS$ [DiamondShiba] Token

About DS$

Listings

Token 22 months

DiamondShiba is a new community-driven DeFi blue chip token on the Binance Smart Chain which boasts automatic liquidity and community Giveaways.

Social

Laser Scorebeta Last Audit: 2 December 2021

report
Token is either risky or in presale. For presale 30+ is a fine score.

Anti-Scam

Links


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

DIAMONDSHIBA.swapBack() (#333-367) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#359)
- (BuyBackSuccess) = address(GiveawayFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#361)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in DIAMONDSHIBA._transferFrom(address,address,uint256) (#267-287):
External calls:
- swapBack() (#276)
- router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#371-378)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#344-350)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#359)
- (BuyBackSuccess) = address(GiveawayFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#361)
- (DevSuccess) = address(DevFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#363)
External calls sending eth:
- swapBack() (#276)
- router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#371-378)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#359)
- (BuyBackSuccess) = address(GiveawayFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#361)
- (DevSuccess) = address(DevFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#363)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#280)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#283)
- amountReceived = takeFee(sender,recipient,amount) (#282)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#320)
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.

Contract ticker (DS$) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.

DIAMONDSHIBA.slitherConstructorVariables() (#180-466) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 1000 * 3 (#218)
Consider ordering multiplication before division.

Additional information: link

DIAMONDSHIBA.addLiquidity(uint256,uint256) (#369-381) ignores return value by router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#371-378)
Ensure that all the return values of the function calls are used.

Additional information: link

DIAMONDSHIBA.setFees(uint256,uint256,uint256,uint256,uint256) (#422-429) should emit an event for:
- liquidityFee = _liquidityFee (#423)
- GiveawayFee = _GiveawayFee (#425)
- marketingFee = _marketingFee (#426)
- totalFee = _liquidityFee.add(_GiveawayFee).add(_marketingFee) (#427)
- feeDenominator = _feeDenominator (#428)
Emit an event for critical parameter changes.

Additional information: link

DIAMONDSHIBA.setFeeReceiver(address,address)._GiveawayFeeReceiver (#431) lacks a zero-check on :
- GiveawayFeeReceiver = _GiveawayFeeReceiver (#433)
Check that the address is not zero.

Additional information: link

Reentrancy in DIAMONDSHIBA.constructor() (#222-233):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#224)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#225)
- _balances[_owner] = _totalSupply (#231)
- isFeeExempt[_owner] = true (#228)
- isTxLimitExempt[_owner] = true (#229)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in DIAMONDSHIBA.swapBack() (#333-367):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#344-350)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#359)
- (BuyBackSuccess) = address(GiveawayFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#361)
- (DevSuccess) = address(DevFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#363)
- addLiquidity(amountToLiquify,amountBNBLiquidity) (#366)
- router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#371-378)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#359)
- (BuyBackSuccess) = address(GiveawayFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#361)
- (DevSuccess) = address(DevFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#363)
- addLiquidity(amountToLiquify,amountBNBLiquidity) (#366)
- router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#371-378)
Event emitted after the call(s):
- AutoLiquify(BNBAmount,tokenAmount) (#379)
- addLiquidity(amountToLiquify,amountBNBLiquidity) (#366)
Apply the check-effects-interactions pattern.

Additional information: link

DIAMONDSHIBA.AntiDumpMultiplier() (#310-315) uses timestamp for comparisons
Dangerous comparisons:
- time_since_start > 1 * hour (#313)
Avoid relying on block.timestamp.

Additional information: link

DIAMONDSHIBA.buyTokens(uint256,address) (#383-394) is never used and should be removed
Remove unused functions.

Additional information: link

DIAMONDSHIBA.swapThreshold (#218) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 1000 * 3
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.5 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 DIAMONDSHIBA.swapBack() (#333-367):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#359)
- (BuyBackSuccess) = address(GiveawayFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#361)
- (DevSuccess) = address(DevFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#363)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Variable DIAMONDSHIBA.DevFeeReceiver (#210) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#139) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#140)
Prevent variables from having similar names.

Additional information: link

DIAMONDSHIBA.slitherConstructorVariables() (#180-466) uses literals with too many digits:
- _totalSupply = 100000000000 * (10 ** _decimals) (#191)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

DIAMONDSHIBA._totalSupply (#191) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

isOverLiquified(uint256,uint256) should be declared external:
- DIAMONDSHIBA.isOverLiquified(uint256,uint256) (#460-462)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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


Unable to find Youtube account


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/project description on the website or on BscScan, CoinMarketCap


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


Young tokens have high risks of price dump / death


Token has relatively low CoinGecko rank

Price for DS$