Lottery Draw Token Token Logo

LDT [Lottery Draw] Token

About LDT

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

LotteryDraw.random(uint256,uint256) (#1003-1017) uses a weak PRNG: "seed % to (#1016)"
Do not use block.timestamp, now or blockhash as a source of randomness

Additional information: link

Reentrancy in LotteryDraw.transferFrom(address,address,uint256) (#818-822):
External calls:
- _transfer(sender,recipient,amount) (#819)
- PancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1259-1266)
- PancakeSwapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1248-1254)
- PancakeSwapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,marketingAddress,block.timestamp) (#1228-1234)
External calls sending eth:
- _transfer(sender,recipient,amount) (#819)
- PancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1259-1266)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#820)
- _allowances[owner][spender] = amount (#1071)
Apply the check-effects-interactions pattern.

Additional information: link

LotteryDraw.lockToBuyOrSellForTime(uint256,uint256) (#732-741) uses a dangerous strict equality:
- lastBuyOrSellTime == 0 (#734)
Don't use strict equality to determine if an account has enough Ether or tokens.

Additional information: link

LotteryDraw.lotterize().randomNumber (#1021) is written in both
randomNumber = random(numHolders,balanceOf(address(this))) (#1029)
randomNumber = random(numHolders,balanceOf(address(this)) + trial) (#1031)
Fix or remove the writes.

Additional information: link

LotteryDraw.lotterize().trial (#1024) 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

LotteryDraw.addLiquidity(uint256,uint256) (#1257-1268) ignores return value by PancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1259-1266)
Ensure that all the return values of the function calls are used.

Additional information: link

LotteryDraw._approve(address,address,uint256).owner (#1068) shadows:
- Ownable.owner() (#278-280) (function)
Rename the local variables that shadow another component.

Additional information: link

LotteryDraw.setminLottoBalance(uint256) (#805-807) should emit an event for:
- _minLottoBalance = minLottoBalance (#806)
Emit an event for critical parameter changes.

Additional information: link

Reentrancy in LotteryDraw.swapAndLiquify(uint256) (#1200-1216):
External calls:
- swapTokensForBNB(toSwap) (#1208)
- PancakeSwapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1248-1254)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#1212)
- PancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1259-1266)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#1212)
- PancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1259-1266)
State variables written after the call(s):
- contractBalance.lp_balance -= tokensSwapped (#1214)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in LotteryDraw.transferFrom(address,address,uint256) (#818-822):
External calls:
- _transfer(sender,recipient,amount) (#819)
- PancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1259-1266)
- PancakeSwapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1248-1254)
- PancakeSwapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,marketingAddress,block.timestamp) (#1228-1234)
External calls sending eth:
- _transfer(sender,recipient,amount) (#819)
- PancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1259-1266)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1072)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#820)
Apply the check-effects-interactions pattern.

Additional information: link

LotteryDraw._tokenTransfer(address,address,uint256,bool) (#1119-1198) uses timestamp for comparisons
Dangerous comparisons:
- winner == address(0) (#1178)
Avoid relying on block.timestamp.

Additional information: link

EnumerableSet.values(EnumerableSet.AddressSet) (#531-540) uses assembly
- INLINE ASM (#535-537)
Do not use evm assembly.

Additional information: link

SafeMath.trySub(uint256,uint256) (#70-75) is never used and should be removed
Remove unused functions.

Additional information: link

LotteryDraw.numTokensToSwap (#656) is set pre-construction with a non-constant function or state variable:
- _tTotal / 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.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.functionDelegateCall(address,bytes,string) (#234-243):
- (success,returndata) = target.delegatecall(data) (#241)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Variable LotteryDraw.antiwhale_measures (#654) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#160)" inContext (#154-163)
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 (#306) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#307)
Prevent variables from having similar names.

Additional information: link

LotteryDraw.slitherConstructorVariables() (#543-1276) uses literals with too many digits:
- _tTotal = 500000 * 10 ** _decimals (#565)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

LotteryDraw._isExcludedFromMaxTx (#555) is never used in LotteryDraw (#543-1276)
Remove unused state variables.

Additional information: link

LotteryDraw._timestamp (#569) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

withdraw() should be declared external:
- LotteryDraw.withdraw() (#1270-1273)
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.


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 LDT