SAFEBET CASINO Token Logo

SAFEBET [SAFEBET CASINO] Token

About SAFEBET

Listings

Not Found
Token 8 months

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

Reentrancy in SAFEBET._transfer(address,address,uint256) (#557-574):
External calls:
- swapAndLiquify(numTokensSell) (#571)
- (amountEthFromLiquidity) = swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#641-648)
- swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#628-634)
External calls sending eth:
- swapAndLiquify(numTokensSell) (#571)
- (amountEthFromLiquidity) = swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#641-648)
- address(marketingWallet).transfer(marketingETH) (#615)
- address(casinoWallet).transfer(address(this).balance) (#616)
State variables written after the call(s):
- _tokenTransfer(sender,recipient,amount) (#573)
- _creditsBalances[sender] -= transferAmount (#594)
- _creditsBalances[recipient] += receiveAmount (#595)
- _creditsBalances[address(this)] += (fee * _creditsPerFragment) (#598)
Apply the check-effects-interactions pattern.

Additional information: link

SAFEBET.withdrawToken(address,address) (#718-727) ignores return value by IERC20(_token).transfer(_account,tokenBalance) (#726)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link

SAFEBET.constructor(uint256) (#437-455) uses a dangerous strict equality:
- require(bool)(block.number / 10 == marketingWalletPercentage) (#452)
Don't use strict equality to determine if an account has enough Ether or tokens.

Additional information: link


Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.

SAFEBET._tokenTransfer(address,address,uint256) (#576-603) performs a multiplication on the result of a division:
-fee = amount * transactionTax / denominator (#590)
-receiveAmount -= (fee * _creditsPerFragment) (#591)
Consider ordering multiplication before division.

Additional information: link

SAFEBET._tokenTransfer(address,address,uint256).fee (#582) 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

SAFEBET._approve(address,address,uint256).owner (#548) shadows:
- Ownable.owner() (#340-342) (function)
Rename the local variables that shadow another component.

Additional information: link

SAFEBET.setOperator(address) (#478-481) should emit an event for:
- operator = newOperator (#480)
Emit an event for critical parameter changes.

Additional information: link

SAFEBET.setMaxWallet(uint256) (#700-703) should emit an event for:
- maxWallet = _maxWallet (#702)
Emit an event for critical parameter changes.

Additional information: link

SAFEBET.setCasinoWallet(address).wallet (#690) lacks a zero-check on :
- casinoWallet = wallet (#692)
Check that the address is not zero.

Additional information: link

Reentrancy in SAFEBET.transferFrom(address,address,uint256) (#495-499):
External calls:
- _transfer(sender,recipient,amount) (#496)
- (amountEthFromLiquidity) = swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#641-648)
- swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#628-634)
External calls sending eth:
- _transfer(sender,recipient,amount) (#496)
- (amountEthFromLiquidity) = swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#641-648)
- address(marketingWallet).transfer(marketingETH) (#615)
- address(casinoWallet).transfer(address(this).balance) (#616)
State variables written after the call(s):
- _approve(sender,msg.sender,_allowedFragments[sender][msg.sender] - amount) (#497)
- _allowedFragments[owner][spender] = amount (#552)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in SAFEBET.transferFrom(address,address,uint256) (#495-499):
External calls:
- _transfer(sender,recipient,amount) (#496)
- (amountEthFromLiquidity) = swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#641-648)
- swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#628-634)
External calls sending eth:
- _transfer(sender,recipient,amount) (#496)
- (amountEthFromLiquidity) = swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#641-648)
- address(marketingWallet).transfer(marketingETH) (#615)
- address(casinoWallet).transfer(address(this).balance) (#616)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#553)
- _approve(sender,msg.sender,_allowedFragments[sender][msg.sender] - amount) (#497)
Apply the check-effects-interactions pattern.

Additional information: link

SAFEBET.swapAndLiquify(uint256) (#605-618) uses timestamp for comparisons
Dangerous comparisons:
- marketingETH > 0 (#614)
Avoid relying on block.timestamp.

Additional information: link

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

Additional information: link

SAFEBET.transactionTax (#390) is set pre-construction with a non-constant function or state variable:
- liquidityTax + marketingTax + casinoTax
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.6 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 SAFEBET._creditsBalances (#419) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#304)" inContext (#298-307)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in SAFEBET.transferFrom(address,address,uint256) (#495-499):
External calls:
- _transfer(sender,recipient,amount) (#496)
- address(marketingWallet).transfer(marketingETH) (#615)
- address(casinoWallet).transfer(address(this).balance) (#616)
External calls sending eth:
- _transfer(sender,recipient,amount) (#496)
- (amountEthFromLiquidity) = swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#641-648)
- address(marketingWallet).transfer(marketingETH) (#615)
- address(casinoWallet).transfer(address(this).balance) (#616)
State variables written after the call(s):
- _approve(sender,msg.sender,_allowedFragments[sender][msg.sender] - amount) (#497)
- _allowedFragments[owner][spender] = amount (#552)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#553)
- _approve(sender,msg.sender,_allowedFragments[sender][msg.sender] - amount) (#497)
Apply the check-effects-interactions pattern.

Additional information: link

Variable ISwapRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#167) is too similar to ISwapRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#168)
Prevent variables from having similar names.

Additional information: link

SAFEBET.slitherConstructorConstantVariables() (#376-729) uses literals with too many digits:
- BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD (#381)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

Ownable._lockTime (#324) is never used in SAFEBET (#376-729)
Remove unused state variables.

Additional information: link

Ownable._previousOwner (#323) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

setSwapAndLiquifyEnabled(bool) should be declared external:
- SAFEBET.setSwapAndLiquifyEnabled(bool) (#538-540)
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


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 SAFEBET