Diferencial Token Logo

DRL [Diferencial] Token

About DRL

Listings

Token 2 months
white paper

At DIFERENCIAL, we aim to develop a secure and reliable utility-based token that enables everyone to invest in a safe and tech-oriented project model for long-term economic growth. We strongly believe that the crypto space should be fair to all and is meant to bridge the inequality gap that exists in the world today.

Social

Laser Scorebeta Last Audit: 6 August 2022

report
Token has too many issues. Scam probability is high.

Diferencial.contractSwap(uint256) (#548-599) sends eth to arbitrary user
Dangerous calls:
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,DEAD,block.timestamp) (#577-584)
- (success,None) = _taxWallets.marketing.call{gas: 35000,value: marketingBalance}() (#594)
- (success,None) = _taxWallets.development.call{gas: 35000,value: developmentBalance}() (#597)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in Diferencial._transfer(address,address,uint256) (#499-546):
External calls:
- contractSwap(contractTokenBalance) (#540)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(swapAmt,0,path,address(this),block.timestamp) (#565-571)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,DEAD,block.timestamp) (#577-584)
- (success,None) = _taxWallets.marketing.call{gas: 35000,value: marketingBalance}() (#594)
- (success,None) = _taxWallets.development.call{gas: 35000,value: developmentBalance}() (#597)
- finalizeTransfer(from,to,amount,buy,sell,other) (#545)
- antiSnipe.checkUser(from,to,tAmount) (#754-758)
External calls sending eth:
- contractSwap(contractTokenBalance) (#540)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,DEAD,block.timestamp) (#577-584)
- (success,None) = _taxWallets.marketing.call{gas: 35000,value: marketingBalance}() (#594)
- (success,None) = _taxWallets.development.call{gas: 35000,value: developmentBalance}() (#597)
State variables written after the call(s):
- finalizeTransfer(from,to,amount,buy,sell,other) (#545)
- _liquidityHolders[from] = true (#604)
- finalizeTransfer(from,to,amount,buy,sell,other) (#545)
- _rOwned[from] = _rOwned[from] - values.rAmount (#727)
- _rOwned[to] = _rOwned[to] + values.rTransferAmount (#728)
- _rOwned[DEAD] += values.tBurn * values.currentRate (#802)
- _rOwned[address(this)] += values.tSwap * values.currentRate (#810)
- finalizeTransfer(from,to,amount,buy,sell,other) (#545)
- _rTotal -= values.rFee (#738)
- finalizeTransfer(from,to,amount,buy,sell,other) (#545)
- _ratios.burn = 0 (#790)
- finalizeTransfer(from,to,amount,buy,sell,other) (#545)
- _tOwned[from] = _tOwned[from] - tAmount (#731)
- _tOwned[to] = _tOwned[to] + values.tTransferAmount (#734)
- _tOwned[DEAD] += values.tBurn (#804)
- _tOwned[address(this)] += values.tSwap (#812)
- finalizeTransfer(from,to,amount,buy,sell,other) (#545)
- contractSwapEnabled = true (#610)
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.


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


Contract ownership is not renounced (belongs to a wallet)

Diferencial.contractSwap(uint256) (#548-599) performs a multiplication on the result of a division:
-toLiquify = ((contractTokenBalance * ratios.liquidity) / ratios.totalSwap) / 2 (#558)
-liquidityBalance = (amtBalance * toLiquify) / swapAmt (#574)
Diferencial.takeTaxes(address,address,uint256,bool,bool,bool,bool) (#745-819) performs a multiplication on the result of a division:
-feeAmount = (tAmount * currentFee) / masterTaxDivisor (#776)
-values.tFee = (feeAmount * ratios.reflection) / total (#778)
Diferencial.takeTaxes(address,address,uint256,bool,bool,bool,bool) (#745-819) performs a multiplication on the result of a division:
-feeAmount = (tAmount * currentFee) / masterTaxDivisor (#776)
-values.tBurn = (feeAmount * ratios.burn) / total (#779)
Consider ordering multiplication before division.

Additional information: link

Reentrancy in Diferencial.enableTrading() (#625-638):
External calls:
- antiSnipe.setLaunch(lpPair,uint32(block.number),uint64(block.timestamp),_decimals) (#631)
State variables written after the call(s):
- tradingEnabled = true (#632)
Reentrancy in Diferencial.finalizeTransfer(address,address,uint256,bool,bool,bool) (#712-743):
External calls:
- values = takeTaxes(from,to,tAmount,takeFee,buy,sell,other) (#725)
- antiSnipe.checkUser(from,to,tAmount) (#754-758)
State variables written after the call(s):
- _rOwned[from] = _rOwned[from] - values.rAmount (#727)
- _rOwned[to] = _rOwned[to] + values.rTransferAmount (#728)
- _rTotal -= values.rFee (#738)
- _tOwned[from] = _tOwned[from] - tAmount (#731)
- _tOwned[to] = _tOwned[to] + values.tTransferAmount (#734)
Reentrancy in Diferencial.takeTaxes(address,address,uint256,bool,bool,bool,bool) (#745-819):
External calls:
- antiSnipe.checkUser(from,to,tAmount) (#754-758)
State variables written after the call(s):
- _rOwned[DEAD] += values.tBurn * values.currentRate (#802)
- _rOwned[address(this)] += values.tSwap * values.currentRate (#810)
- _ratios.burn = 0 (#790)
- _tOwned[DEAD] += values.tBurn (#804)
- _tOwned[address(this)] += values.tSwap (#812)
Reentrancy in Diferencial.transferOwner(address) (#255-269):
External calls:
- finalizeTransfer(_owner,newOwner,balanceOf(_owner),false,false,true) (#262)
- antiSnipe.checkUser(from,to,tAmount) (#754-758)
State variables written after the call(s):
- _owner = newOwner (#266)
Apply the check-effects-interactions pattern.

Additional information: link

Diferencial.takeTaxes(address,address,uint256,bool,bool,bool,bool).checked (#753) is a local variable never initialized
Diferencial.takeTaxes(address,address,uint256,bool,bool,bool,bool).values (#746) is a local variable never initialized
Diferencial.takeTaxes(address,address,uint256,bool,bool,bool,bool).check (#754) 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

Diferencial.contractSwap(uint256) (#548-599) ignores return value by dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,DEAD,block.timestamp) (#577-584)
Diferencial.takeTaxes(address,address,uint256,bool,bool,bool,bool) (#745-819) ignores return value by antiSnipe.checkUser(from,to,tAmount) (#754-758)
Ensure that all the return values of the function calls are used.

Additional information: link

Diferencial.setMaxTxPercent(uint256,uint256) (#425-428) should emit an event for:
- _maxTxAmount = (_tTotal * percent) / divisor (#427)
Diferencial.setMaxWalletSize(uint256,uint256) (#430-433) should emit an event for:
- _maxWalletSize = (_tTotal * percent) / divisor (#432)
Diferencial.setSwapSettings(uint256,uint256,uint256,uint256) (#443-447) should emit an event for:
- swapThreshold = (_tTotal * thresholdPercent) / thresholdDivisor (#444)
- swapAmount = (_tTotal * amountPercent) / amountDivisor (#445)
Diferencial.setPriceImpactSwapAmount(uint256) (#449-452) should emit an event for:
- piSwapPercent = priceImpactSwapPercent (#451)
Diferencial.setBurnLimit(uint256,uint256) (#484-486) should emit an event for:
- burnLimit = (_tTotal * percent) / divisor (#485)
Emit an event for critical parameter changes.

Additional information: link

Diferencial.takeTaxes(address,address,uint256,bool,bool,bool,bool) (#745-819) has external calls inside a loop: antiSnipe.checkUser(from,to,tAmount) (#754-758)
Favor pull over push strategy for external calls.

Additional information: link

Variable 'Diferencial.takeTaxes(address,address,uint256,bool,bool,bool,bool).check (#754)' in Diferencial.takeTaxes(address,address,uint256,bool,bool,bool,bool) (#745-819) potentially used before declaration: checked = check (#755)
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 Diferencial.constructor() (#214-246):
External calls:
- lpPair = IFactoryV2(dexRouter.factory()).createPair(dexRouter.WETH(),address(this)) (#236)
State variables written after the call(s):
- _approve(_owner,address(dexRouter),type()(uint256).max) (#239)
- _allowances[sender][spender] = amount (#307)
- _approve(address(this),address(dexRouter),type()(uint256).max) (#240)
- _allowances[sender][spender] = amount (#307)
- _isExcludedFromFees[_owner] = true (#242)
- _isExcludedFromFees[address(this)] = true (#243)
- _isExcludedFromFees[DEAD] = true (#244)
- _liquidityHolders[_owner] = true (#245)
- lpPairs[lpPair] = true (#237)
Reentrancy in Diferencial.enableTrading() (#625-638):
External calls:
- antiSnipe.setLaunch(lpPair,uint32(block.number),uint64(block.timestamp),_decimals) (#631)
State variables written after the call(s):
- setExcludedFromReward(lpPair,true) (#636)
- _excluded.push(account) (#665)
- _excluded.pop() (#677)
- _excluded[i] = _excluded[_excluded.length - 1] (#681)
- _excluded.pop() (#685)
- setExcludedFromReward(DEAD,true) (#637)
- _excluded.push(account) (#665)
- _excluded.pop() (#677)
- _excluded[i] = _excluded[_excluded.length - 1] (#681)
- _excluded.pop() (#685)
- setExcludedFromReward(lpPair,true) (#636)
- _isExcluded[account] = true (#663)
- _isExcluded[account] = false (#672)
- _isExcluded[account] = false (#676)
- _isExcluded[account] = false (#684)
- setExcludedFromReward(DEAD,true) (#637)
- _isExcluded[account] = true (#663)
- _isExcluded[account] = false (#672)
- _isExcluded[account] = false (#676)
- _isExcluded[account] = false (#684)
- setExcludedFromReward(lpPair,true) (#636)
- _rOwned[account] = _tOwned[account] * _getRate() (#670)
- _rOwned[account] = _tOwned[account] * _getRate() (#674)
- _rOwned[account] = _tOwned[account] * _getRate() (#682)
- setExcludedFromReward(DEAD,true) (#637)
- _rOwned[account] = _tOwned[account] * _getRate() (#670)
- _rOwned[account] = _tOwned[account] * _getRate() (#674)
- _rOwned[account] = _tOwned[account] * _getRate() (#682)
- setExcludedFromReward(lpPair,true) (#636)
- _tOwned[account] = tokenFromReflection(_rOwned[account]) (#661)
- _tOwned[account] = 0 (#671)
- _tOwned[account] = 0 (#675)
- _tOwned[account] = 0 (#683)
- setExcludedFromReward(DEAD,true) (#637)
- _tOwned[account] = tokenFromReflection(_rOwned[account]) (#661)
- _tOwned[account] = 0 (#671)
- _tOwned[account] = 0 (#675)
- _tOwned[account] = 0 (#683)
- allowedPresaleExclusion = false (#633)
- swapAmount = (balanceOf(lpPair) * 30) / 10000 (#635)
- swapThreshold = (balanceOf(lpPair) * 10) / 10000 (#634)
Reentrancy in Diferencial.setNewRouter(address) (#324-335):
External calls:
- lpPair = IFactoryV2(_newRouter.factory()).createPair(address(this),_newRouter.WETH()) (#328)
State variables written after the call(s):
- _approve(address(this),address(dexRouter),type()(uint256).max) (#334)
- _allowances[sender][spender] = amount (#307)
- dexRouter = _newRouter (#333)
Reentrancy in Diferencial.takeTaxes(address,address,uint256,bool,bool,bool,bool) (#745-819):
External calls:
- antiSnipe.checkUser(from,to,tAmount) (#754-758)
State variables written after the call(s):
- burnEnabled = false (#789)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in Diferencial._transfer(address,address,uint256) (#499-546):
External calls:
- contractSwap(contractTokenBalance) (#540)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(swapAmt,0,path,address(this),block.timestamp) (#565-571)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,DEAD,block.timestamp) (#577-584)
- (success,None) = _taxWallets.marketing.call{gas: 35000,value: marketingBalance}() (#594)
- (success,None) = _taxWallets.development.call{gas: 35000,value: developmentBalance}() (#597)
- finalizeTransfer(from,to,amount,buy,sell,other) (#545)
- antiSnipe.checkUser(from,to,tAmount) (#754-758)
External calls sending eth:
- contractSwap(contractTokenBalance) (#540)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,DEAD,block.timestamp) (#577-584)
- (success,None) = _taxWallets.marketing.call{gas: 35000,value: marketingBalance}() (#594)
- (success,None) = _taxWallets.development.call{gas: 35000,value: developmentBalance}() (#597)
Event emitted after the call(s):
- ContractSwapEnabledUpdated(true) (#611)
- finalizeTransfer(from,to,amount,buy,sell,other) (#545)
- Transfer(from,to,values.tTransferAmount) (#741)
- finalizeTransfer(from,to,amount,buy,sell,other) (#545)
- Transfer(from,DEAD,values.tBurn) (#806)
- finalizeTransfer(from,to,amount,buy,sell,other) (#545)
- Transfer(from,address(this),values.tSwap) (#814)
- finalizeTransfer(from,to,amount,buy,sell,other) (#545)
Reentrancy in Diferencial.constructor() (#214-246):
External calls:
- lpPair = IFactoryV2(dexRouter.factory()).createPair(dexRouter.WETH(),address(this)) (#236)
Event emitted after the call(s):
- Approval(sender,spender,amount) (#308)
- _approve(address(this),address(dexRouter),type()(uint256).max) (#240)
- Approval(sender,spender,amount) (#308)
- _approve(_owner,address(dexRouter),type()(uint256).max) (#239)
Reentrancy in Diferencial.contractSwap(uint256) (#548-599):
External calls:
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(swapAmt,0,path,address(this),block.timestamp) (#565-571)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,DEAD,block.timestamp) (#577-584)
External calls sending eth:
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,DEAD,block.timestamp) (#577-584)
Event emitted after the call(s):
- AutoLiquify(liquidityBalance,toLiquify) (#585)
Reentrancy in Diferencial.finalizeTransfer(address,address,uint256,bool,bool,bool) (#712-743):
External calls:
- values = takeTaxes(from,to,tAmount,takeFee,buy,sell,other) (#725)
- antiSnipe.checkUser(from,to,tAmount) (#754-758)
Event emitted after the call(s):
- Transfer(from,to,values.tTransferAmount) (#741)
Reentrancy in Diferencial.setNewRouter(address) (#324-335):
External calls:
- lpPair = IFactoryV2(_newRouter.factory()).createPair(address(this),_newRouter.WETH()) (#328)
Event emitted after the call(s):
- Approval(sender,spender,amount) (#308)
- _approve(address(this),address(dexRouter),type()(uint256).max) (#334)
Reentrancy in Diferencial.takeTaxes(address,address,uint256,bool,bool,bool,bool) (#745-819):
External calls:
- antiSnipe.checkUser(from,to,tAmount) (#754-758)
Event emitted after the call(s):
- Transfer(from,DEAD,values.tBurn) (#806)
- Transfer(from,address(this),values.tSwap) (#814)
Reentrancy in Diferencial.transferOwner(address) (#255-269):
External calls:
- finalizeTransfer(_owner,newOwner,balanceOf(_owner),false,false,true) (#262)
- antiSnipe.checkUser(from,to,tAmount) (#754-758)
Event emitted after the call(s):
- OwnershipTransferred(oldOwner,newOwner) (#267)
Apply the check-effects-interactions pattern.

Additional information: link

Diferencial.setLpPair(address,bool) (#337-349) uses timestamp for comparisons
Dangerous comparisons:
- timeSinceLastPair != 0 (#342)
- require(bool,string)(block.timestamp - timeSinceLastPair > 259200,3 Day cooldown.!) (#343)
Avoid relying on block.timestamp.

Additional information: link

Diferencial.setLpPair(address,bool) (#337-349) compares to a boolean constant:
-enabled == false (#338)
Remove the equality to the boolean constant.

Additional information: link

Diferencial._checkLiquidityAdd(address,address) (#601-613) has costly operations inside a loop:
- _hasLiqBeenAdded = true (#606)
Diferencial._checkLiquidityAdd(address,address) (#601-613) has costly operations inside a loop:
- antiSnipe = AntiSnipe(address(this)) (#608)
Diferencial._checkLiquidityAdd(address,address) (#601-613) has costly operations inside a loop:
- contractSwapEnabled = true (#610)
Diferencial.takeTaxes(address,address,uint256,bool,bool,bool,bool) (#745-819) has costly operations inside a loop:
- burnEnabled = false (#789)
Diferencial.finalizeTransfer(address,address,uint256,bool,bool,bool) (#712-743) has costly operations inside a loop:
- _rTotal -= values.rFee (#738)
Diferencial.setExcludedFromReward(address,bool) (#657-691) has costly operations inside a loop:
- _excluded.pop() (#685)
Use a local variable to hold the loop computation result.

Additional information: link

Diferencial._rTotal (#129) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
Diferencial._maxTxAmount (#188) is set pre-construction with a non-constant function or state variable:
- (_tTotal * 15) / 100
Diferencial._maxWalletSize (#189) is set pre-construction with a non-constant function or state variable:
- (_tTotal * 2) / 100
Diferencial.burnLimit (#195) is set pre-construction with a non-constant function or state variable:
- (_tTotal * 15) / 100
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 (#2) is too complex
solc-0.8.14 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 Diferencial.contractSwap(uint256) (#548-599):
- (success,None) = _taxWallets.marketing.call{gas: 35000,value: marketingBalance}() (#594)
- (success,None) = _taxWallets.development.call{gas: 35000,value: developmentBalance}() (#597)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function IRouter01.WETH() (#33) is not in mixedCase
Parameter Diferencial.setProtectionSettings(bool,bool)._antiSnipe (#394) is not in mixedCase
Parameter Diferencial.setProtectionSettings(bool,bool)._antiBlock (#394) is not in mixedCase
Constant Diferencial.startingSupply (#121) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Diferencial._name (#123) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Diferencial._symbol (#124) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Diferencial._decimals (#125) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Diferencial._rTotal (#129) is not in mixedCase
Variable Diferencial._taxRates (#146-150) is not in mixedCase
Variable Diferencial._ratios (#152-159) is not in mixedCase
Constant Diferencial.maxBuyTaxes (#161) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Diferencial.maxSellTaxes (#162) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Diferencial.maxTransferTaxes (#163) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Diferencial.maxRoundtripTax (#164) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Diferencial.masterTaxDivisor (#165) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Diferencial._taxWallets (#176-179) is not in mixedCase
Variable Diferencial._hasLiqBeenAdded (#192) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#45) is too similar to IRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#46)
Prevent variables from having similar names.

Additional information: link

Diferencial.slitherConstructorConstantVariables() (#101-846) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#169)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

Diferencial._tTotal (#127) should be constant
Diferencial.totalReflections (#197) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

transfer(address,uint256) should be declared external:
- Diferencial.transfer(address,uint256) (#293-296)
approve(address,uint256) should be declared external:
- Diferencial.approve(address,uint256) (#298-301)
approveContractContingency() should be declared external:
- Diferencial.approveContractContingency() (#311-314)
setNewRouter(address) should be declared external:
- Diferencial.setNewRouter(address) (#324-335)
isBlacklisted(address) should be declared external:
- Diferencial.isBlacklisted(address) (#386-388)
setRatios(uint16,uint16,uint16,uint16,uint16) should be declared external:
- Diferencial.setRatios(uint16,uint16,uint16,uint16,uint16) (#414-423)
getMaxTX() should be declared external:
- Diferencial.getMaxTX() (#435-437)
getMaxWallet() should be declared external:
- Diferencial.getMaxWallet() (#439-441)
getCirculatingSupply() should be declared external:
- Diferencial.getCirculatingSupply() (#615-617)
enableTrading() should be declared external:
- Diferencial.enableTrading() (#625-638)
isExcludedFromReward(address) should be declared external:
- Diferencial.isExcludedFromReward(address) (#653-655)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:

Contract has 10% buy tax and 13% sell tax.
Taxes are suspiciously high (over 10%) and contract ownership is not renounced. Token has a high risk of becoming a honeypot.


Average 30d PancakeSwap liquidity is low.


Token is deployed only at one blockchain


Token has only one trading pair


Telegram account link seems to be invalid


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


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 code repository for the project


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 DRL