Dracarys Token Logo

Dracarys Token

About Dracarys

Listings

Not Found
Token 3 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 30 November 2021

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

Dracarys.addLiquidity(uint256,uint256) (#844-857) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#849-856)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Dracarys._transfer(address,address,uint256) (#670-787) uses a weak PRNG: "_bBSLimit = _bBSLimitMin + uint256(keccak256(bytes)(abi.encodePacked(block.timestamp,block.difficulty))) % (_bBSLimitMax - _bBSLimitMin + 1) (#731)"
Do not use block.timestamp, now or blockhash as a source of randomness

Additional information: link

Reentrancy in Dracarys._transfer(address,address,uint256) (#670-787):
External calls:
- swapTokens(contractTokenBalance) (#699)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#816-822)
- buyBackTokens(_bBSLimit) (#734)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
External calls sending eth:
- swapTokens(contractTokenBalance) (#699)
- recipient.transfer(amount) (#1140)
- buyBackTokens(_bBSLimit) (#734)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#963)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#879)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#888)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#899)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#909)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#880)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#890)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#900)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#911)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _rTotal = _rTotal.sub(rFee) (#918)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#965)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#898)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#908)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#889)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#910)
- buyBackTokens(_bBSLimit) (#734)
- inSwapAndLiquify = true (#516)
- inSwapAndLiquify = false (#518)
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.

Dracarys.deadAddress (#419) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

transferForeignToken(address,address) should be declared external:
- Dracarys.transferForeignToken(address,address) (#1162-1166)
Use the external attribute for functions never called from the contract.

Additional information: link

Dracarys._transfer(address,address,uint256).sellHistory (#686) 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

Dracarys.addLiquidity(uint256,uint256) (#844-857) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#849-856)
Ensure that all the return values of the function calls are used.

Additional information: link

Dracarys._approve(address,address,uint256).owner (#662) shadows:
- Ownable.owner() (#161-163) (function)
Rename the local variables that shadow another component.

Additional information: link

Dracarys.setNumTokensSellToAddToBuyBack(uint256) (#1102-1104) should emit an event for:
- minimumTokensBeforeSwap = _minimumTokensBeforeSwap (#1103)
Emit an event for critical parameter changes.

Additional information: link

Dracarys.setMarketingAddress(address)._marketingAddress (#1106) lacks a zero-check on :
- marketingAddress = address(_marketingAddress) (#1107)
Check that the address is not zero.

Additional information: link

Reentrancy in Dracarys.transferFrom(address,address,uint256) (#580-584):
External calls:
- _transfer(sender,recipient,amount) (#581)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#816-822)
External calls sending eth:
- _transfer(sender,recipient,amount) (#581)
- recipient.transfer(amount) (#1140)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#582)
- _allowances[owner][spender] = amount (#666)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in Dracarys.transferFrom(address,address,uint256) (#580-584):
External calls:
- _transfer(sender,recipient,amount) (#581)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#816-822)
External calls sending eth:
- _transfer(sender,recipient,amount) (#581)
- recipient.transfer(amount) (#1140)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#667)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#582)
Apply the check-effects-interactions pattern.

Additional information: link

Dracarys._removeOldSellHistories() (#1019-1041) uses timestamp for comparisons
Dangerous comparisons:
- _sellHistories[j].time >= maxStartTimeForHistories (#1025)
Avoid relying on block.timestamp.

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

Dracarys._previousLiquidityFee (#457) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
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.4 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

Variable Dracarys._isEnabledBuyBackAndBurn (#493) 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 Dracarys.transferFrom(address,address,uint256) (#580-584):
External calls:
- _transfer(sender,recipient,amount) (#581)
- recipient.transfer(amount) (#1140)
External calls sending eth:
- _transfer(sender,recipient,amount) (#581)
- recipient.transfer(amount) (#1140)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#582)
- _allowances[owner][spender] = amount (#666)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#667)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#582)
Apply the check-effects-interactions pattern.

Additional information: link

Variable Dracarys._transferToExcluded(address,address,uint256).rTransferAmount (#887) is too similar to Dracarys._transferBothExcluded(address,address,uint256).tTransferAmount (#907)
Prevent variables from having similar names.

Additional information: link

Dracarys.slitherConstructorVariables() (#414-1192) uses literals with too many digits:
- minimumTokensBeforeSwap = 300000 * 10 ** 9 (#476)
Use: Ether suffix, Time suffix, or The scientific notation

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.


Unable to find Telegram and Twitter accounts


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


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank


Young tokens have high risks of price dump / death

Price for Dracarys