DarkMAGICK Token Logo

DMGK [DarkMAGICK] Token

About DMGK

Listings

Token 2 years
white paper

Welcome to the world of DarkMagick, a story driven turn-based RPG with fully tokenized ecosystem, in-game marketplace and NFT earning capability. Built on Binance Smart Chain.

Social

Laser Scorebeta Last Audit: 30 November 2021

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

DarkMAGICK.addLiquidity(uint256,uint256) (#1772-1787) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1778-1785)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in DarkMAGICK._transfer(address,address,uint256) (#1595-1705):
External calls:
- swapTokensForEth(marketingTokens) (#1653)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1743-1749)
- swapAndLiquify(swapTokens) (#1658)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1778-1785)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1743-1749)
- swapAndSendDividends(sellTokens) (#1661)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (#1792)
- dividendTracker.distributeBUSDDividends(dividends) (#1795)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1763-1769)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1655)
- swapAndLiquify(swapTokens) (#1658)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1778-1785)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1687)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#530)
- _balances[recipient] = _balances[recipient].add(amount) (#531)
- super._transfer(from,to,amount) (#1690)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#530)
- _balances[recipient] = _balances[recipient].add(amount) (#531)
- swapping = false (#1663)
Apply the check-effects-interactions pattern.

Additional information: link

DarkMAGICK._isBlacklisted (#1262) is never initialized. It is used in:
- DarkMAGICK._transfer(address,address,uint256) (#1595-1705)
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


Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains


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.

DarkMAGICK._transfer(address,address,uint256).lastProcessedIndex (#1698) 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

Reentrancy in DarkMAGICK.updateDividendTracker(address) (#1382-1397):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1389)
- newDividendTracker.excludeFromDividends(address(this)) (#1390)
- newDividendTracker.excludeFromDividends(owner()) (#1391)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1392)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1396)
Apply the check-effects-interactions pattern.

Additional information: link

DarkMAGICK._transfer(address,address,uint256) (#1595-1705) performs a multiplication on the result of a division:
-fees = amount.mul(totalFees).div(100) (#1679)
-fees = fees.mul(sellFeeIncreaseFactor).div(100) (#1683)
Consider ordering multiplication before division.

Additional information: link

DarkMAGICK.addLiquidity(uint256,uint256) (#1772-1787) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1778-1785)
Ensure that all the return values of the function calls are used.

Additional information: link

DividendPayingToken.accumulativeDividendOf(address)._owner (#912) shadows:
- Ownable._owner (#751) (state variable)
Rename the local variables that shadow another component.

Additional information: link

DarkMAGICK.setMaxTxPercent(uint256) (#1587-1592) should emit an event for:
- _maxTxAmount = _minCapMaxTxAmount (#1589)
- _maxTxAmount = maxTxAmount (#1591)
Emit an event for critical parameter changes.

Additional information: link

DarkMAGICK.setMarketingWallet(address).wallet (#1457) lacks a zero-check on :
- _marketingWalletAddress = wallet (#1458)
Check that the address is not zero.

Additional information: link

Variable 'DarkMAGICK._transfer(address,address,uint256).iterations (#1698)' in DarkMAGICK._transfer(address,address,uint256) (#1595-1705) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1699)
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 DarkMAGICK.updateUniswapV2Router(address) (#1399-1406):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#1403-1404)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1405)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in DarkMAGICK.updateDividendTracker(address) (#1382-1397):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1389)
- newDividendTracker.excludeFromDividends(address(this)) (#1390)
- newDividendTracker.excludeFromDividends(owner()) (#1391)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1392)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1394)
Apply the check-effects-interactions pattern.

Additional information: link

DarkMAGICKDividendTracker.canAutoClaim(uint256) (#1925-1931) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1926)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1930)
Avoid relying on block.timestamp.

Additional information: link

DarkMAGICK._transfer(address,address,uint256) (#1595-1705) compares to a boolean constant:
-buyFeesRemoved == true && automatedMarketMakerPairs[from] (#1674)
Remove the equality to the boolean constant.

Additional information: link

Different versions of Solidity is used:
- Version used: ['^0.6.12', '^0.6.2']
- ^0.6.12 (#52)
- ^0.6.2 (#1097)
Use one Solidity version.

Additional information: link

SafeMathInt.mul(int256,int256) (#644-651) is never used and should be removed
Remove unused functions.

Additional information: link

DarkMAGICK.totalFees (#1271) is set pre-construction with a non-constant function or state variable:
- BUSDRewardsFee.add(liquidityFee).add(marketingFee)
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

Pragma version^0.6.2 (#1097) allows old versions
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

Parameter DarkMAGICKDividendTracker.getAccount(address)._account (#1861) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#170)" inContext (#164-173)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in DarkMAGICK._transfer(address,address,uint256) (#1595-1705):
External calls:
- address(_marketingWalletAddress).transfer(newBalance) (#1655)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1655)
- swapAndLiquify(swapTokens) (#1658)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1778-1785)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1658)
- _allowances[owner][spender] = amount (#596)
- swapAndSendDividends(sellTokens) (#1661)
- _allowances[owner][spender] = amount (#596)
- super._transfer(from,address(this),fees) (#1687)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#530)
- _balances[recipient] = _balances[recipient].add(amount) (#531)
- super._transfer(from,to,amount) (#1690)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#530)
- _balances[recipient] = _balances[recipient].add(amount) (#531)
- swapping = false (#1663)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#597)
- swapAndLiquify(swapTokens) (#1658)
- Approval(owner,spender,amount) (#597)
- swapAndSendDividends(sellTokens) (#1661)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1699)
- SendDividends(tokens,dividends) (#1796)
- swapAndSendDividends(sellTokens) (#1661)
- SwapAndLiquify(half,newBalance,otherHalf) (#1728)
- swapAndLiquify(swapTokens) (#1658)
- Transfer(sender,recipient,amount) (#532)
- super._transfer(from,to,amount) (#1690)
- Transfer(sender,recipient,amount) (#532)
- super._transfer(from,address(this),fees) (#1687)
Apply the check-effects-interactions pattern.

Additional information: link

Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#867) is too similar to DarkMAGICKDividendTracker.getAccount(address).withdrawableDividends (#1866)
Prevent variables from having similar names.

Additional information: link

DarkMAGICKDividendTracker.getAccountAtIndex(uint256) (#1906-1923) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1917)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

SafeMathInt.MAX_INT256 (#639) is never used in SafeMathInt (#637-695)
Remove unused state variables.

Additional information: link

DividendPayingToken.BUSD (#814) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

process(uint256) should be declared external:
- DarkMAGICKDividendTracker.process(uint256) (#1950-1995)
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.


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


Unable to find Discord 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 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


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


Token has no active CoinMarketCap listing / rank


Token has relatively low CoinGecko rank

Price for DMGK