Drifto Token Logo

DIFO [Drifto] Token

About DIFO

Listings

Token 2 years

Website

white paper

DRIFTO is an NFT-based 3D racing game with integrated AR technology and Auto-Staking Protocol where players and investors can experience a whole new version of P2E game and get huge passive income 💵 Just by Playing, Betting, and Holding $DIFO ✅ Token Anti-Dump Fund 💰#SpyWolf KYC ✅ #Analytix Audit ✅ 5% add-on tokens while filling our Softcap 🔥 Diverse Ecosystem 🔥 Various Events 🚀 CMC and CG listing after PancakeSwap 💎 Stunning banner on famous platforms 🔥🔥

Social

Laser Scorebeta Last Audit: 20 June 2022

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

DIFO.swapBack() (#730-768) sends eth to arbitrary user
Dangerous calls:
- (success) = address(Marketingreceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(MarketingFee).div(MarketingFee.add(AntidumpFee))}() (#756-761)
- (success,None) = address(AntidumpReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(AntidumpFee).div(MarketingFee.add(AntidumpFee))}() (#762-767)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in DIFO._transferFrom(address,address,uint256) (#627-668):
External calls:
- rebase() (#641)
- pairContract.sync() (#583)
- addLiquidity() (#645)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#707-713)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#718-725)
- swapBack() (#649)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#744-750)
- (success) = address(Marketingreceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(MarketingFee).div(MarketingFee.add(AntidumpFee))}() (#756-761)
- (success,None) = address(AntidumpReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(AntidumpFee).div(MarketingFee.add(AntidumpFee))}() (#762-767)
External calls sending eth:
- addLiquidity() (#645)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#718-725)
- swapBack() (#649)
- (success) = address(Marketingreceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(MarketingFee).div(MarketingFee.add(AntidumpFee))}() (#756-761)
- (success,None) = address(AntidumpReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(AntidumpFee).div(MarketingFee.add(AntidumpFee))}() (#762-767)
State variables written after the call(s):
- _gonBalances[sender] = _gonBalances[sender].sub(gonAmount) (#653)
- _gonBalances[recipient] = _gonBalances[recipient].add(gonAmountReceived) (#657-659)
- gonAmountReceived = takeFee(sender,recipient,gonAmount) (#654-656)
- _gonBalances[address(this)] = _gonBalances[address(this)].add(feeAmount) (#680)
- swapBack() (#649)
- inSwap = true (#474)
- inSwap = false (#476)
Apply the check-effects-interactions pattern.

Additional information: link

DIFO._name (#430) shadows:
- ERC20Detailed._name (#394)
DIFO._symbol (#431) shadows:
- ERC20Detailed._symbol (#395)
DIFO._decimals (#432) shadows:
- ERC20Detailed._decimals (#396)
Remove the state variable shadowing.

Additional information: link


Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.

DIFO.swapBack().success (#756) is written in both
(success) = address(Marketingreceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(MarketingFee).div(MarketingFee.add(AntidumpFee))}() (#756-761)
(success,None) = address(AntidumpReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(AntidumpFee).div(MarketingFee.add(AntidumpFee))}() (#762-767)
Fix or remove the writes.

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 ownership is not renounced (belongs to a wallet)

DIFO.rebase() (#555-586) performs a multiplication on the result of a division:
-times = deltaTime.div(900) (#561)
-epoch = times.mul(15) (#562)
DIFO.rebase() (#555-586) performs a multiplication on the result of a division:
-times = deltaTime.div(900) (#561)
-_lastRebasedTime = _lastRebasedTime.add(times.mul(900)) (#581)
DIFO.getLiquidityBacking(uint256) (#926-934) performs a multiplication on the result of a division:
-liquidityBalance = _gonBalances[pair].div(_gonsPerFragment) (#931)
-accuracy.mul(liquidityBalance.mul(2)).div(getCirculatingSupply()) (#932-933)
Consider ordering multiplication before division.

Additional information: link

DIFO.rebase().rebaseRate (#558) 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

DIFO.addLiquidity() (#686-728) ignores return value by router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#718-725)
Ensure that all the return values of the function calls are used.

Additional information: link

DIFO.setFeeReceivers(address,address,address,address)._autoLiquidityReceiver (#915) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#920)
DIFO.setFeeReceivers(address,address,address,address)._Marketingreceiver (#916) lacks a zero-check on :
- Marketingreceiver = _Marketingreceiver (#921)
DIFO.setFeeReceivers(address,address,address,address)._AntidumpReceiver (#917) lacks a zero-check on :
- AntidumpReceiver = _AntidumpReceiver (#922)
DIFO.setFeeReceivers(address,address,address,address)._SellpenaltyReceiver (#918) lacks a zero-check on :
- SellpenaltyReceiver = _SellpenaltyReceiver (#923)
DIFO.setPairAddress(address)._pairAddress (#945) lacks a zero-check on :
- pairAddress = _pairAddress (#946)
Check that the address is not zero.

Additional information: link

Reentrancy in DIFO.addLiquidity() (#686-728):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#707-713)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#718-725)
External calls sending eth:
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#718-725)
State variables written after the call(s):
- _lastAddLiquidityTime = block.timestamp (#727)
Reentrancy in DIFO.constructor() (#496-553):
External calls:
- pinkAntiBot.setTokenOwner(msg.sender) (#520)
State variables written after the call(s):
- antiBotEnabled = true (#521)
- router = IPancakeSwapRouter(currentRouter) (#524)
Reentrancy in DIFO.constructor() (#496-553):
External calls:
- pinkAntiBot.setTokenOwner(msg.sender) (#520)
- pair = IPancakeSwapFactory(router.factory()).createPair(router.WETH(),address(this)) (#525-528)
State variables written after the call(s):
- AntidumpReceiver = 0xfcDaB5E9bc5d2FCe3328C2F0CF4747257D501C13 (#532)
- Marketingreceiver = 0xd9b99918E9f3a340Ec6E6E61eEc065364Dc16e7C (#531)
- SellpenaltyReceiver = 0xfcDaB5E9bc5d2FCe3328C2F0CF4747257D501C13 (#533)
- _allowedFragments[address(this)][address(router)] = type()(uint256).max (#535)
- _autoAddLiquidity = true (#545)
- _autoRebase = true (#544)
- _gonBalances[Marketingreceiver] = TOTAL_GONS (#540)
- _gonsPerFragment = TOTAL_GONS.div(_totalSupply) (#541)
- _initRebaseStartTime = block.timestamp (#542)
- _isFeeExempt[Marketingreceiver] = true (#546)
- _isFeeExempt[address(this)] = true (#547)
- _isFeeExempt[DIFOOWNER] = true (#548)
- _lastRebasedTime = block.timestamp (#543)
- _transferOwnership(Marketingreceiver) (#551)
- _owner = newOwner (#389)
- _totalSupply = INITIAL_FRAGMENTS_SUPPLY (#539)
- autoLiquidityReceiver = 0x961f210F179C301e56403306568B2813879794D2 (#530)
- pair = IPancakeSwapFactory(router.factory()).createPair(router.WETH(),address(this)) (#525-528)
- pairAddress = pair (#536)
- pairContract = IPancakeSwapPair(pair) (#537)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in DIFO._transferFrom(address,address,uint256) (#627-668):
External calls:
- rebase() (#641)
- pairContract.sync() (#583)
- addLiquidity() (#645)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#707-713)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#718-725)
- swapBack() (#649)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#744-750)
- (success) = address(Marketingreceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(MarketingFee).div(MarketingFee.add(AntidumpFee))}() (#756-761)
- (success,None) = address(AntidumpReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(AntidumpFee).div(MarketingFee.add(AntidumpFee))}() (#762-767)
External calls sending eth:
- addLiquidity() (#645)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#718-725)
- swapBack() (#649)
- (success) = address(Marketingreceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(MarketingFee).div(MarketingFee.add(AntidumpFee))}() (#756-761)
- (success,None) = address(AntidumpReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(AntidumpFee).div(MarketingFee.add(AntidumpFee))}() (#762-767)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount.div(_gonsPerFragment)) (#681)
- gonAmountReceived = takeFee(sender,recipient,gonAmount) (#654-656)
- Transfer(sender,recipient,gonAmountReceived.div(_gonsPerFragment)) (#662-666)
Reentrancy in DIFO.constructor() (#496-553):
External calls:
- pinkAntiBot.setTokenOwner(msg.sender) (#520)
- pair = IPancakeSwapFactory(router.factory()).createPair(router.WETH(),address(this)) (#525-528)
Event emitted after the call(s):
- OwnershipTransferred(_owner,newOwner) (#388)
- _transferOwnership(Marketingreceiver) (#551)
- Transfer(address(0x0),Marketingreceiver,_totalSupply) (#552)
Reentrancy in DIFO.rebase() (#555-586):
External calls:
- pairContract.sync() (#583)
Event emitted after the call(s):
- LogRebase(epoch,_totalSupply) (#585)
Apply the check-effects-interactions pattern.

Additional information: link

DIFO.rebase() (#555-586) uses timestamp for comparisons
Dangerous comparisons:
- deltaTimeFromInit < (31536000) / 4 (#564)
- deltaTimeFromInit >= (31536000) / 4 (#566)
- deltaTimeFromInit >= (31536000) (#568)
- deltaTimeFromInit >= (31536000) / 2 (#570)
- i < times (#574)
DIFO.shouldRebase() (#800-807) uses timestamp for comparisons
Dangerous comparisons:
- _autoRebase && (_totalSupply < MAX_SUPPLY) && msg.sender != pair && ! inSwap && block.timestamp >= (_lastRebasedTime + 900) (#801-806)
DIFO.shouldAddLiquidity() (#809-815) uses timestamp for comparisons
Dangerous comparisons:
- _autoAddLiquidity && ! inSwap && msg.sender != pair && block.timestamp >= (_lastAddLiquidityTime + 900) (#810-814)
Avoid relying on block.timestamp.

Additional information: link

DIFO.isContract(address) (#961-965) uses assembly
- INLINE ASM (#963)
Do not use evm assembly.

Additional information: link

SafeMath.mod(uint256,uint256) (#104-107) is never used and should be removed
SafeMathInt.abs(int256) (#49-52) is never used and should be removed
SafeMathInt.add(int256,int256) (#43-47) is never used and should be removed
SafeMathInt.div(int256,int256) (#31-35) is never used and should be removed
SafeMathInt.mul(int256,int256) (#23-29) is never used and should be removed
SafeMathInt.sub(int256,int256) (#37-41) is never used and should be removed
Remove unused functions.

Additional information: link

DIFO.totalbuyFee (#453) is set pre-construction with a non-constant function or state variable:
- liquidityFee.add(MarketingFee).add(AntidumpFee)
DIFO.totalSellpenalty (#454) is set pre-construction with a non-constant function or state variable:
- liquidityFee.add(MarketingFee).add(AntidumpFee).add(Sellpenalty)
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.0<0.9.0 (#16) is too complex
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 DIFO.swapBack() (#730-768):
- (success) = address(Marketingreceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(MarketingFee).div(MarketingFee.add(AntidumpFee))}() (#756-761)
- (success,None) = address(AntidumpReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(AntidumpFee).div(MarketingFee.add(AntidumpFee))}() (#762-767)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function IPancakeSwapPair.DOMAIN_SEPARATOR() (#156) is not in mixedCase
Function IPancakeSwapPair.PERMIT_TYPEHASH() (#157) is not in mixedCase
Function IPancakeSwapPair.MINIMUM_LIQUIDITY() (#174) is not in mixedCase
Function IPancakeSwapRouter.WETH() (#194) is not in mixedCase
Parameter DIFO.setEnableAntiBot(bool)._enable (#770) is not in mixedCase
Parameter DIFO.setAutoRebase(bool)._flag (#823) is not in mixedCase
Parameter DIFO.setAutoAddLiquidity(bool)._flag (#832) is not in mixedCase
Parameter DIFO.checkFeeExempt(address)._addr (#895) is not in mixedCase
Parameter DIFO.setFeeReceivers(address,address,address,address)._autoLiquidityReceiver (#915) is not in mixedCase
Parameter DIFO.setFeeReceivers(address,address,address,address)._Marketingreceiver (#916) is not in mixedCase
Parameter DIFO.setFeeReceivers(address,address,address,address)._AntidumpReceiver (#917) is not in mixedCase
Parameter DIFO.setFeeReceivers(address,address,address,address)._SellpenaltyReceiver (#918) is not in mixedCase
Parameter DIFO.setWhitelist(address)._addr (#936) is not in mixedCase
Parameter DIFO.setBotBlacklist(address,bool)._botAddress (#940) is not in mixedCase
Parameter DIFO.setBotBlacklist(address,bool)._flag (#940) is not in mixedCase
Parameter DIFO.setPairAddress(address)._pairAddress (#945) is not in mixedCase
Parameter DIFO.setLP(address)._address (#949) is not in mixedCase
Variable DIFO._name (#430) is not in mixedCase
Variable DIFO._symbol (#431) is not in mixedCase
Variable DIFO._decimals (#432) is not in mixedCase
Variable DIFO._isFeeExempt (#435) is not in mixedCase
Variable DIFO.MarketingFee (#450) is not in mixedCase
Variable DIFO.AntidumpFee (#451) is not in mixedCase
Variable DIFO.Sellpenalty (#452) is not in mixedCase
Variable DIFO.DEAD (#457) is not in mixedCase
Variable DIFO.ZERO (#458) is not in mixedCase
Variable DIFO.DIFOOWNER (#459) is not in mixedCase
Variable DIFO.Marketingreceiver (#463) is not in mixedCase
Variable DIFO.AntidumpReceiver (#464) is not in mixedCase
Variable DIFO.SellpenaltyReceiver (#465) is not in mixedCase
Variable DIFO.PinkSaleAntiBotRouter (#468) is not in mixedCase
Variable DIFO._autoRebase (#484) is not in mixedCase
Variable DIFO._autoAddLiquidity (#485) is not in mixedCase
Variable DIFO._initRebaseStartTime (#486) is not in mixedCase
Variable DIFO._lastRebasedTime (#487) is not in mixedCase
Variable DIFO._lastAddLiquidityTime (#488) is not in mixedCase
Variable DIFO._totalSupply (#489) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IPancakeSwapRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#199) is too similar to IPancakeSwapRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#200)
Prevent variables from having similar names.

Additional information: link

DIFO.slitherConstructorVariables() (#421-969) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#457)
DIFO.slitherConstructorVariables() (#421-969) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#458)
DIFO.slitherConstructorConstantVariables() (#421-969) uses literals with too many digits:
- INITIAL_FRAGMENTS_SUPPLY = 500000000 * 10 ** DECIMALS (#446-447)
DIFO.slitherConstructorConstantVariables() (#421-969) uses literals with too many digits:
- MAX_SUPPLY = 10000000 * 10 ** 3 * 10 ** DECIMALS (#482)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

SafeMathInt.MAX_INT256 (#21) is never used in SafeMathInt (#19-53)
Remove unused state variables.

Additional information: link

DIFO.AntidumpFee (#451) should be constant
DIFO.DEAD (#457) should be constant
DIFO.DIFOOWNER (#459) should be constant
DIFO.MarketingFee (#450) should be constant
DIFO.Sellpenalty (#452) should be constant
DIFO.ZERO (#458) should be constant
DIFO._decimals (#432) should be constant
DIFO._name (#430) should be constant
DIFO._symbol (#431) should be constant
DIFO.feeDenominator (#455) should be constant
DIFO.liquidityFee (#449) should be constant
DIFO.swapEnabled (#469) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

owner() should be declared external:
- Ownable.owner() (#364-366)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#377-380)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#382-384)
name() should be declared external:
- ERC20Detailed.name() (#408-410)
symbol() should be declared external:
- ERC20Detailed.symbol() (#412-414)
decimals() should be declared external:
- ERC20Detailed.decimals() (#416-418)
getLiquidityBacking(uint256) should be declared external:
- DIFO.getLiquidityBacking(uint256) (#926-934)
setPairAddress(address) should be declared external:
- DIFO.setPairAddress(address) (#945-947)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Token seems to be untradeable: there is no PancakeSwap trading pair and no trading volumes. Ignore for presale.


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.


Unable to find Youtube account


BscScan page for the token does not contain additional info: website, socials, description, etc.

Additional information: link


Unable to verify that token and website are owned by the same team (no listings + unable to find contract on website)


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 CoinGecko

Additional information: link


Unable to find token on CoinMarketCap

Additional information: link


Token is not listed at Mobula.Finance

Additional information: link


Unable to find token on CoinHunt

Additional information: link


Unable to find code repository for the project


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


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


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 DIFO

News for DIFO