PRESALE HARDCAP - 200 BNB
MAX CONTRIBUTION 1BNB
MIN CONTRIBUTION 0.1BNB
🌋Tokenomics:
15% Buy Tax - 3%
LP - 5%
Marketing - 5%
Doge Rewards - 2%
Development 15%
Sell Tax - 3%
for more information please join our telegram
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
PrinceFloki.forceSend() (Prince Floki.sol#176-182) sends eth to arbitrary user
Dangerous calls:
- (success) = address(marketingWallet).call{gas: 30000,value: BNBbalance}() (Prince Floki.sol#178)
PrinceFloki.swapAndLiquify(uint256) (Prince Floki.sol#638-669) sends eth to arbitrary user
Dangerous calls:
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
UniswapV2OracleLibrary.currentBlockTimestamp() (Oracle.sol#159-161) uses a weak PRNG: "uint32(block.timestamp % 2 ** 32) (Oracle.sol#160)"
Do not use block.timestamp, now or blockhash as a source of randomness
Additional information: link
Context is re-used:
- Context (Context.sol#15-25)
- Context (Master.sol#5-14)
- Context (Oracle.sol#34-43)
Ownable is re-used:
- Ownable (Master.sol#45-77)
- Ownable (Oracle.sol#45-77)
- Ownable (Ownable.sol#7-58)
IPair is re-used:
- IPair (IDex.sol#5-7)
- IPair (Oracle.sol#28-32)
Rename the contract.
Additional information: link
Reentrancy in PrinceFloki._transfer(address,address,uint256) (Prince Floki.sol#534-624):
External calls:
- swapAndLiquify(swapTokens) (Prince Floki.sol#580)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#679-685)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
- swapAndSendDividends(sellTokens) (Prince Floki.sol#584)
- success = IERC20(DOGE).transfer(address(dividendTracker),dividends) (Prince Floki.sol#728)
- dividendTracker.distributeDOGEDividends(dividends) (Prince Floki.sol#731)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#699-705)
External calls sending eth:
- swapAndLiquify(swapTokens) (Prince Floki.sol#580)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
State variables written after the call(s):
- swapping = false (Prince Floki.sol#587)
Reentrancy in PrinceFloki._transfer(address,address,uint256) (Prince Floki.sol#534-624):
External calls:
- swapAndLiquify(swapTokens) (Prince Floki.sol#580)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#679-685)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
- swapAndSendDividends(sellTokens) (Prince Floki.sol#584)
- success = IERC20(DOGE).transfer(address(dividendTracker),dividends) (Prince Floki.sol#728)
- dividendTracker.distributeDOGEDividends(dividends) (Prince Floki.sol#731)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#699-705)
- System(system).rebase() (Prince Floki.sol#590)
External calls sending eth:
- swapAndLiquify(swapTokens) (Prince Floki.sol#580)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
State variables written after the call(s):
- tokenTransfer(from,address(this),fees) (Prince Floki.sol#608)
- _atomBalances[sender] = _atomBalances[sender] - atomValue (Prince Floki.sol#628)
- _atomBalances[recipient] = _atomBalances[recipient] + atomValue (Prince Floki.sol#629)
- tokenTransfer(from,to,amount) (Prince Floki.sol#611)
- _atomBalances[sender] = _atomBalances[sender] - atomValue (Prince Floki.sol#628)
- _atomBalances[recipient] = _atomBalances[recipient] + atomValue (Prince Floki.sol#629)
Apply the check-effects-interactions pattern.
Additional information: link
PrinceFloki._totalSupply (Prince Floki.sol#83) shadows:
- ERC20._totalSupply (ERC20.sol#40)
Remove the state variable shadowing.
Additional information: link
PrinceFloki.rescueBEP20Tokens(address) (Prince Floki.sol#168-172) ignores return value by IERC20(tokenAddress).transfer(msg.sender,IERC20(tokenAddress).balanceOf(address(this))) (Prince Floki.sol#171)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.
MarketOracle.constructor(address,address)._dummy1 (Oracle.sol#225) is written in both
(_dummy1,_dummy2,SHIBINBnbBlockTimestampLast) = _SHIBIN_bnb.getReserves() (Oracle.sol#231)
(_dummy1,_dummy2,wbnbBusdBlockTimestampLast) = _wbnb_busd.getReserves() (Oracle.sol#236)
MarketOracle.constructor(address,address)._dummy2 (Oracle.sol#226) is written in both
(_dummy1,_dummy2,SHIBINBnbBlockTimestampLast) = _SHIBIN_bnb.getReserves() (Oracle.sol#231)
(_dummy1,_dummy2,wbnbBusdBlockTimestampLast) = _wbnb_busd.getReserves() (Oracle.sol#236)
MarketOracle.getData()._price0CumulativeLast (Oracle.sol#276) is written in both
(_price0CumulativeLast,_price1CumulativeLast,_blockTimestampLast,SHIBINBnbAverage) = getSHIBIN_BNB_Rate() (Oracle.sol#282)
(_price0CumulativeLast,_price1CumulativeLast,_blockTimestampLast,busdBnbAverage) = getBusdBnbRate() (Oracle.sol#286)
MarketOracle.getData()._price1CumulativeLast (Oracle.sol#277) is written in both
(_price0CumulativeLast,_price1CumulativeLast,_blockTimestampLast,SHIBINBnbAverage) = getSHIBIN_BNB_Rate() (Oracle.sol#282)
(_price0CumulativeLast,_price1CumulativeLast,_blockTimestampLast,busdBnbAverage) = getBusdBnbRate() (Oracle.sol#286)
MarketOracle.getData()._blockTimestampLast (Oracle.sol#278) is written in both
(_price0CumulativeLast,_price1CumulativeLast,_blockTimestampLast,SHIBINBnbAverage) = getSHIBIN_BNB_Rate() (Oracle.sol#282)
(_price0CumulativeLast,_price1CumulativeLast,_blockTimestampLast,busdBnbAverage) = getBusdBnbRate() (Oracle.sol#286)
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.
Combination 2: Unchecked transfer + 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.
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.
PrinceFloki.rebase_percentage(uint256,bool) (Prince Floki.sol#495-503) performs a multiplication on the result of a division:
-newSupply = rebase(0,int256(_totalSupply.div(1000).mul(_percentage_base1000))) (Prince Floki.sol#500)
PrinceFloki.rebase_percentage(uint256,bool) (Prince Floki.sol#495-503) performs a multiplication on the result of a division:
-newSupply = rebase(0,int256(_totalSupply.div(1000).mul(_percentage_base1000)).mul(- 1)) (Prince Floki.sol#498)
PrinceFloki.swapAndLiquify(uint256) (Prince Floki.sol#638-669) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - liquidityFee) (Prince Floki.sol#649)
-bnbToAddLiquidityWith = unitBalance * liquidityFee (Prince Floki.sol#650)
PrinceFloki.swapAndLiquify(uint256) (Prince Floki.sol#638-669) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - liquidityFee) (Prince Floki.sol#649)
-marketingWalletAmt = unitBalance * 2 * marketingFee (Prince Floki.sol#658)
PrinceFloki.swapAndLiquify(uint256) (Prince Floki.sol#638-669) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - liquidityFee) (Prince Floki.sol#649)
-devAmount = unitBalance * 2 * devFee (Prince Floki.sol#664)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (DividendPayingToken.sol#58-74):
External calls:
- success = IERC20(DOGE).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#63)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (DividendPayingToken.sol#66)
Reentrancy in Master.overrideRebase() (Master.sol#237-241):
External calls:
- rebase() (Master.sol#239)
- supplyAfterRebase = Shibin.rebase(epoch,supplyDelta) (Master.sol#220)
- marketOracle.update() (Master.sol#225)
State variables written after the call(s):
- rebaseOverride = false (Master.sol#240)
Reentrancy in Master.rebase() (Master.sol#205-235):
External calls:
- supplyAfterRebase = Shibin.rebase(epoch,supplyDelta) (Master.sol#220)
- marketOracle.update() (Master.sol#225)
State variables written after the call(s):
- posRebaseEnabled = true (Master.sol#231)
- incrementTargetRate() (Master.sol#228)
- targetRate = newRate (Master.sol#261)
- targetRate = finalTarget (Master.sol#263)
- targetRate = finalTarget (Master.sol#230)
Apply the check-effects-interactions pattern.
Additional information: link
PrinceFloki._transfer(address,address,uint256).claims (Prince Floki.sol#619) is a local variable never initialized
PrinceFloki._transfer(address,address,uint256).lastProcessedIndex (Prince Floki.sol#619) is a local variable never initialized
FixedPoint.mul(FixedPoint.uq112x112,uint256).z (Oracle.sol#118) is a local variable never initialized
PrinceFloki._transfer(address,address,uint256).iterations (Prince Floki.sol#619) 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
PrinceFloki.claim() (Prince Floki.sol#162-164) ignores return value by dividendTracker.processAccount(msg.sender,false) (Prince Floki.sol#163)
PrinceFloki._transfer(address,address,uint256) (Prince Floki.sol#534-624) ignores return value by dividendTracker.process(gas) (Prince Floki.sol#619-622)
PrinceFloki.addLiquidity(uint256,uint256) (Prince Floki.sol#708-723) ignores return value by router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (DividendPayingToken.sol#32) shadows:
- ERC20._name (ERC20.sol#42) (state variable)
DividendPayingToken.constructor(string,string)._symbol (DividendPayingToken.sol#32) shadows:
- ERC20._symbol (ERC20.sol#43) (state variable)
DividendPayingToken.dividendOf(address)._owner (DividendPayingToken.sol#80) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (DividendPayingToken.sol#87) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (DividendPayingToken.sol#94) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (DividendPayingToken.sol#104) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
PrinceFloki._approve(address,address,uint256).owner (Prince Floki.sol#203) shadows:
- Ownable.owner() (Ownable.sol#24-26) (function)
Rename the local variables that shadow another component.
Additional information: link
MarketOracle.setSystem(address) (Oracle.sol#297-299) should emit an event for:
- system = system_ (Oracle.sol#298)
PrinceFloki.setSystem(address) (Prince Floki.sol#343-345) should emit an event for:
- system = _system (Prince Floki.sol#344)
Emit an event for critical parameter changes.
Additional information: link
Master (Master.sol#80-335) should inherit from System (Prince Floki.sol#13-15)
MarketOracle (Oracle.sol#191-301) should inherit from IOracle (Master.sol#22-25)
PrinceFloki (Prince Floki.sol#16-735) should inherit from IShibin (Master.sol#16-19)
Inherit from the missing interface or contract.
Additional information: link
Parameter DividendPayingToken.dividendOf(address)._owner (DividendPayingToken.sol#80) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (DividendPayingToken.sol#87) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (DividendPayingToken.sol#94) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (DividendPayingToken.sol#104) is not in mixedCase
Variable DividendPayingToken.DOGE (DividendPayingToken.sol#20) is not in mixedCase
Constant DividendPayingToken.magnitude (DividendPayingToken.sol#22) is not in UPPER_CASE_WITH_UNDERSCORES
Function IRouter.WETH() (IDex.sol#16) is not in mixedCase
Parameter Master.setRebaseLocked(bool)._locked (Master.sol#169) is not in mixedCase
Parameter Master.setInitialTargetRate(uint256)._initRate (Master.sol#196) is not in mixedCase
Variable Master.Shibin (Master.sol#90) is not in mixedCase
Struct FixedPoint.uq112x112 (Oracle.sol#85-87) is not in CapWords
Struct FixedPoint.uq144x112 (Oracle.sol#91-93) is not in CapWords
Function MarketOracle.getSHIBIN_BNB_Rate() (Oracle.sol#240-249) is not in mixedCase
Function MarketOracle.setSHIBIN_BNB_Pair(address) (Oracle.sol#293-295) is not in mixedCase
Parameter MarketOracle.setSHIBIN_BNB_Pair(address).__SHIBIN_bnb (Oracle.sol#293) is not in mixedCase
Variable MarketOracle.SHIBINBnbPrice0CumulativeLast (Oracle.sol#194) is not in mixedCase
Variable MarketOracle.SHIBINBnbPrice1CumulativeLast (Oracle.sol#195) is not in mixedCase
Variable MarketOracle.SHIBINBnbBlockTimestampLast (Oracle.sol#196) is not in mixedCase
Constant MarketOracle._wbnb (Oracle.sol#202) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MarketOracle._busd (Oracle.sol#203) is not in UPPER_CASE_WITH_UNDERSCORES
Variable MarketOracle._SHIBIN_bnb (Oracle.sol#205) is not in mixedCase
Variable MarketOracle._wbnb_busd (Oracle.sol#206) is not in mixedCase
Parameter PrinceFloki.setLP(address)._lp (Prince Floki.sol#274) is not in mixedCase
Parameter PrinceFloki.setTradingEnabled(bool)._enabled (Prince Floki.sol#283) is not in mixedCase
Parameter PrinceFloki.setTransferLockEnabled(bool)._enabled (Prince Floki.sol#288) is not in mixedCase
Parameter PrinceFloki.setSwapEnabled(bool)._enabled (Prince Floki.sol#339) is not in mixedCase
Parameter PrinceFloki.setSystem(address)._system (Prince Floki.sol#343) is not in mixedCase
Function PrinceFloki.rebase_percentage(uint256,bool) (Prince Floki.sol#495-503) is not in mixedCase
Parameter PrinceFloki.rebase_percentage(uint256,bool)._percentage_base1000 (Prince Floki.sol#495) is not in mixedCase
Variable PrinceFloki.auto_rebase_enabled (Prince Floki.sol#28) is not in mixedCase
Variable PrinceFloki._allowedTransfer (Prince Floki.sol#47) is not in mixedCase
Constant PrinceFloki.deadWallet (Prince Floki.sol#51) is not in UPPER_CASE_WITH_UNDERSCORES
Variable PrinceFloki.DOGERewardsFee (Prince Floki.sol#65) is not in mixedCase
Parameter PrinceFlokiDividendTracker.getAccount(address)._account (Prince Floki.sol#804) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Master.setFinalTarget(uint256) (Master.sol#188-190) should emit an event for:
- finalTarget = newTarget * 10 ** DECIMALS (Master.sol#189)
Master.setInitialTargetRate(uint256) (Master.sol#196-198) should emit an event for:
- targetRate = _initRate (Master.sol#197)
PrinceFloki.setSwapTokensAtAmount(uint256) (Prince Floki.sol#305-307) should emit an event for:
- swapTokensAtAmount = amount * 10 ** 9 (Prince Floki.sol#306)
PrinceFloki.setDOGERewardsFee(uint256) (Prince Floki.sol#310-313) should emit an event for:
- DOGERewardsFee = value (Prince Floki.sol#311)
- totalFees = DOGERewardsFee.add(liquidityFee).add(marketingFee).add(devFee) (Prince Floki.sol#312)
PrinceFloki.setLiquiditFee(uint256) (Prince Floki.sol#316-319) should emit an event for:
- liquidityFee = value (Prince Floki.sol#317)
- totalFees = DOGERewardsFee.add(liquidityFee).add(marketingFee).add(devFee) (Prince Floki.sol#318)
PrinceFloki.setMarketingFee(uint256) (Prince Floki.sol#322-325) should emit an event for:
- marketingFee = value (Prince Floki.sol#323)
- totalFees = DOGERewardsFee.add(liquidityFee).add(marketingFee).add(devFee) (Prince Floki.sol#324)
PrinceFloki.setDevFee(uint256) (Prince Floki.sol#327-330) should emit an event for:
- devFee = value (Prince Floki.sol#328)
- totalFees = DOGERewardsFee.add(liquidityFee).add(marketingFee).add(devFee) (Prince Floki.sol#329)
PrinceFloki.setExtraSellfee(uint256) (Prince Floki.sol#333-335) should emit an event for:
- extraSellFee = value (Prince Floki.sol#334)
PrinceFloki.setMaxWalletDivisor(uint256) (Prince Floki.sol#360-362) should emit an event for:
- maxWalletDivisor = amount (Prince Floki.sol#361)
PrinceFloki.setMaxButAndMaxSellDivisor(uint256,uint256) (Prince Floki.sol#364-367) should emit an event for:
- maxBuyDivisor = newMaxBuy (Prince Floki.sol#365)
- maxSellDivisor = newMaxSell (Prince Floki.sol#366)
Emit an event for critical parameter changes.
Additional information: link
MarketOracle.setSystem(address).system_ (Oracle.sol#297) lacks a zero-check on :
- system = system_ (Oracle.sol#298)
PrinceFloki.setLP(address)._lp (Prince Floki.sol#274) lacks a zero-check on :
- pair = _lp (Prince Floki.sol#275)
PrinceFloki.setDevWallet(address).newAddress (Prince Floki.sol#299) lacks a zero-check on :
- devWallet = newAddress (Prince Floki.sol#300)
PrinceFloki.setSystem(address)._system (Prince Floki.sol#343) lacks a zero-check on :
- system = _system (Prince Floki.sol#344)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (DividendPayingToken.sol#58-74) has external calls inside a loop: success = IERC20(DOGE).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#63)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'PrinceFloki._transfer(address,address,uint256).claims (Prince Floki.sol#619)' in PrinceFloki._transfer(address,address,uint256) (Prince Floki.sol#534-624) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (Prince Floki.sol#620)
Variable 'PrinceFloki._transfer(address,address,uint256).iterations (Prince Floki.sol#619)' in PrinceFloki._transfer(address,address,uint256) (Prince Floki.sol#534-624) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (Prince Floki.sol#620)
Variable 'PrinceFloki._transfer(address,address,uint256).lastProcessedIndex (Prince Floki.sol#619)' in PrinceFloki._transfer(address,address,uint256) (Prince Floki.sol#534-624) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (Prince Floki.sol#620)
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 PrinceFloki._transfer(address,address,uint256) (Prince Floki.sol#534-624):
External calls:
- swapAndLiquify(swapTokens) (Prince Floki.sol#580)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#679-685)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
- swapAndSendDividends(sellTokens) (Prince Floki.sol#584)
- success = IERC20(DOGE).transfer(address(dividendTracker),dividends) (Prince Floki.sol#728)
- dividendTracker.distributeDOGEDividends(dividends) (Prince Floki.sol#731)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#699-705)
External calls sending eth:
- swapAndLiquify(swapTokens) (Prince Floki.sol#580)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (Prince Floki.sol#584)
- _allowedFragments[owner][spender] = value (Prince Floki.sol#207)
Reentrancy in PrinceFloki.constructor() (Prince Floki.sol#112-151):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (Prince Floki.sol#118)
State variables written after the call(s):
- pair = _pair (Prince Floki.sol#121)
- router = _router (Prince Floki.sol#120)
Reentrancy in PrinceFloki.constructor() (Prince Floki.sol#112-151):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (Prince Floki.sol#118)
- _setAutomatedMarketMakerPair(_pair,true) (Prince Floki.sol#123)
- dividendTracker.excludeFromDividends(newPair,true) (Prince Floki.sol#384)
State variables written after the call(s):
- _atomBalances[msg.sender] = TOTAL_ATOMS (Prince Floki.sol#128)
- _atomsPerFragment = TOTAL_ATOMS / (_totalSupply) (Prince Floki.sol#129)
- _totalSupply = INITIAL_FRAGMENTS_SUPPLY (Prince Floki.sol#127)
- setLP(pair) (Prince Floki.sol#125)
- lpContract = IPair(_lp) (Prince Floki.sol#276)
- setLP(pair) (Prince Floki.sol#125)
- pair = _lp (Prince Floki.sol#275)
Reentrancy in PrinceFloki.constructor() (Prince Floki.sol#112-151):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (Prince Floki.sol#118)
- _setAutomatedMarketMakerPair(_pair,true) (Prince Floki.sol#123)
- dividendTracker.excludeFromDividends(newPair,true) (Prince Floki.sol#384)
- dividendTracker.excludeFromDividends(address(dividendTracker),true) (Prince Floki.sol#132)
- dividendTracker.excludeFromDividends(address(this),true) (Prince Floki.sol#133)
- dividendTracker.excludeFromDividends(owner(),true) (Prince Floki.sol#134)
- dividendTracker.excludeFromDividends(deadWallet,true) (Prince Floki.sol#135)
- dividendTracker.excludeFromDividends(address(_router),true) (Prince Floki.sol#136)
State variables written after the call(s):
- _allowedTransfer[owner()] = true (Prince Floki.sol#144)
- _allowedTransfer[address(this)] = true (Prince Floki.sol#145)
- _allowedTransfer[marketingWallet] = true (Prince Floki.sol#146)
- _allowedTransfer[devWallet] = true (Prince Floki.sol#147)
- _allowedTransfer[pair] = true (Prince Floki.sol#148)
- excludeFromFees(owner(),true) (Prince Floki.sol#139)
- _isExcludedFromFees[account] = excluded (Prince Floki.sol#252)
- excludeFromFees(address(this),true) (Prince Floki.sol#140)
- _isExcludedFromFees[account] = excluded (Prince Floki.sol#252)
- excludeFromFees(marketingWallet,true) (Prince Floki.sol#141)
- _isExcludedFromFees[account] = excluded (Prince Floki.sol#252)
- excludeFromFees(devWallet,true) (Prince Floki.sol#142)
- _isExcludedFromFees[account] = excluded (Prince Floki.sol#252)
Reentrancy in PrinceFlokiDividendTracker.processAccount(address,bool) (Prince Floki.sol#943-954):
External calls:
- amount = _withdrawDividendOfUser(account) (Prince Floki.sol#945)
- success = IERC20(DOGE).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#63)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (Prince Floki.sol#948)
Reentrancy in PrinceFloki.swapAndLiquify(uint256) (Prince Floki.sol#638-669):
External calls:
- swapTokensForBNB(toSwap) (Prince Floki.sol#646)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#679-685)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (Prince Floki.sol#654)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (Prince Floki.sol#654)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
State variables written after the call(s):
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (Prince Floki.sol#654)
- _allowedFragments[owner][spender] = value (Prince Floki.sol#207)
Reentrancy in PrinceFloki.transferFrom(address,address,uint256) (Prince Floki.sol#240-244):
External calls:
- _transfer(sender,recipient,amount) (Prince Floki.sol#241)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- success = IERC20(DOGE).transfer(address(dividendTracker),dividends) (Prince Floki.sol#728)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#679-685)
- dividendTracker.distributeDOGEDividends(dividends) (Prince Floki.sol#731)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#699-705)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
- System(system).rebase() (Prince Floki.sol#590)
- dividendTracker.setBalance(from,balanceOf(from)) (Prince Floki.sol#613)
- dividendTracker.setBalance(to,balanceOf(to)) (Prince Floki.sol#614)
- dividendTracker.process(gas) (Prince Floki.sol#619-622)
External calls sending eth:
- _transfer(sender,recipient,amount) (Prince Floki.sol#241)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
State variables written after the call(s):
- _approve(sender,msg.sender,_allowedFragments[sender][msg.sender] - amount) (Prince Floki.sol#242)
- _allowedFragments[owner][spender] = value (Prince Floki.sol#207)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in PrinceFloki._setAutomatedMarketMakerPair(address,bool) (Prince Floki.sol#379-388):
External calls:
- dividendTracker.excludeFromDividends(newPair,true) (Prince Floki.sol#384)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(newPair,value) (Prince Floki.sol#387)
Reentrancy in PrinceFloki._transfer(address,address,uint256) (Prince Floki.sol#534-624):
External calls:
- swapAndLiquify(swapTokens) (Prince Floki.sol#580)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#679-685)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
- swapAndSendDividends(sellTokens) (Prince Floki.sol#584)
- success = IERC20(DOGE).transfer(address(dividendTracker),dividends) (Prince Floki.sol#728)
- dividendTracker.distributeDOGEDividends(dividends) (Prince Floki.sol#731)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#699-705)
External calls sending eth:
- swapAndLiquify(swapTokens) (Prince Floki.sol#580)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
Event emitted after the call(s):
- Approval(owner,spender,value) (Prince Floki.sol#208)
- swapAndSendDividends(sellTokens) (Prince Floki.sol#584)
- SendDividends(tokens,dividends) (Prince Floki.sol#732)
- swapAndSendDividends(sellTokens) (Prince Floki.sol#584)
Reentrancy in PrinceFloki._transfer(address,address,uint256) (Prince Floki.sol#534-624):
External calls:
- swapAndLiquify(swapTokens) (Prince Floki.sol#580)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#679-685)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
- swapAndSendDividends(sellTokens) (Prince Floki.sol#584)
- success = IERC20(DOGE).transfer(address(dividendTracker),dividends) (Prince Floki.sol#728)
- dividendTracker.distributeDOGEDividends(dividends) (Prince Floki.sol#731)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#699-705)
- System(system).rebase() (Prince Floki.sol#590)
External calls sending eth:
- swapAndLiquify(swapTokens) (Prince Floki.sol#580)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (Prince Floki.sol#630)
- tokenTransfer(from,address(this),fees) (Prince Floki.sol#608)
- Transfer(sender,recipient,amount) (Prince Floki.sol#630)
- tokenTransfer(from,to,amount) (Prince Floki.sol#611)
Reentrancy in PrinceFloki._transfer(address,address,uint256) (Prince Floki.sol#534-624):
External calls:
- swapAndLiquify(swapTokens) (Prince Floki.sol#580)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#679-685)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
- swapAndSendDividends(sellTokens) (Prince Floki.sol#584)
- success = IERC20(DOGE).transfer(address(dividendTracker),dividends) (Prince Floki.sol#728)
- dividendTracker.distributeDOGEDividends(dividends) (Prince Floki.sol#731)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#699-705)
- System(system).rebase() (Prince Floki.sol#590)
- dividendTracker.setBalance(from,balanceOf(from)) (Prince Floki.sol#613)
- dividendTracker.setBalance(to,balanceOf(to)) (Prince Floki.sol#614)
- dividendTracker.process(gas) (Prince Floki.sol#619-622)
External calls sending eth:
- swapAndLiquify(swapTokens) (Prince Floki.sol#580)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (Prince Floki.sol#620)
Reentrancy in PrinceFloki.constructor() (Prince Floki.sol#112-151):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (Prince Floki.sol#118)
- _setAutomatedMarketMakerPair(_pair,true) (Prince Floki.sol#123)
- dividendTracker.excludeFromDividends(newPair,true) (Prince Floki.sol#384)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(newPair,value) (Prince Floki.sol#387)
- _setAutomatedMarketMakerPair(_pair,true) (Prince Floki.sol#123)
Reentrancy in PrinceFloki.constructor() (Prince Floki.sol#112-151):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (Prince Floki.sol#118)
- _setAutomatedMarketMakerPair(_pair,true) (Prince Floki.sol#123)
- dividendTracker.excludeFromDividends(newPair,true) (Prince Floki.sol#384)
- dividendTracker.excludeFromDividends(address(dividendTracker),true) (Prince Floki.sol#132)
- dividendTracker.excludeFromDividends(address(this),true) (Prince Floki.sol#133)
- dividendTracker.excludeFromDividends(owner(),true) (Prince Floki.sol#134)
- dividendTracker.excludeFromDividends(deadWallet,true) (Prince Floki.sol#135)
- dividendTracker.excludeFromDividends(address(_router),true) (Prince Floki.sol#136)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (Prince Floki.sol#254)
- excludeFromFees(marketingWallet,true) (Prince Floki.sol#141)
- ExcludeFromFees(account,excluded) (Prince Floki.sol#254)
- excludeFromFees(address(this),true) (Prince Floki.sol#140)
- ExcludeFromFees(account,excluded) (Prince Floki.sol#254)
- excludeFromFees(owner(),true) (Prince Floki.sol#139)
- ExcludeFromFees(account,excluded) (Prince Floki.sol#254)
- excludeFromFees(devWallet,true) (Prince Floki.sol#142)
- Transfer(address(0),msg.sender,_totalSupply) (Prince Floki.sol#150)
Reentrancy in PrinceFloki.forceSend() (Prince Floki.sol#176-182):
External calls:
- (success) = address(marketingWallet).call{gas: 30000,value: BNBbalance}() (Prince Floki.sol#178)
Event emitted after the call(s):
- ForceSend(BNBbalance) (Prince Floki.sol#180)
Reentrancy in PrinceFlokiDividendTracker.processAccount(address,bool) (Prince Floki.sol#943-954):
External calls:
- amount = _withdrawDividendOfUser(account) (Prince Floki.sol#945)
- success = IERC20(DOGE).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#63)
Event emitted after the call(s):
- Claim(account,amount,automatic) (Prince Floki.sol#949)
Reentrancy in PrinceFloki.processDividendTracker(uint256) (Prince Floki.sol#155-158):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (Prince Floki.sol#156)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (Prince Floki.sol#157)
Reentrancy in Master.rebase() (Master.sol#205-235):
External calls:
- supplyAfterRebase = Shibin.rebase(epoch,supplyDelta) (Master.sol#220)
- marketOracle.update() (Master.sol#225)
Event emitted after the call(s):
- LogRebase(epoch,exchangeRate,supplyDelta,block.timestamp) (Master.sol#234)
Reentrancy in PrinceFloki.rebase(uint256,int256) (Prince Floki.sol#510-532):
External calls:
- lpContract.sync() (Prince Floki.sol#528)
Event emitted after the call(s):
- LogRebase(epoch,_totalSupply) (Prince Floki.sol#530)
Reentrancy in PrinceFloki.swapAndLiquify(uint256) (Prince Floki.sol#638-669):
External calls:
- swapTokensForBNB(toSwap) (Prince Floki.sol#646)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#679-685)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (Prince Floki.sol#654)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (Prince Floki.sol#654)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
Event emitted after the call(s):
- Approval(owner,spender,value) (Prince Floki.sol#208)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (Prince Floki.sol#654)
Reentrancy in PrinceFloki.swapAndLiquify(uint256) (Prince Floki.sol#638-669):
External calls:
- swapTokensForBNB(toSwap) (Prince Floki.sol#646)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#679-685)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (Prince Floki.sol#654)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (Prince Floki.sol#654)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
Event emitted after the call(s):
- SendmarketingWallet(marketingWalletAmt) (Prince Floki.sol#661)
Reentrancy in PrinceFloki.swapAndLiquify(uint256) (Prince Floki.sol#638-669):
External calls:
- swapTokensForBNB(toSwap) (Prince Floki.sol#646)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#679-685)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (Prince Floki.sol#654)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (Prince Floki.sol#654)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
Event emitted after the call(s):
- SendmarketingWallet(devAmount) (Prince Floki.sol#667)
Reentrancy in PrinceFloki.swapAndSendDividends(uint256) (Prince Floki.sol#725-734):
External calls:
- swapTokensForDOGE(tokens) (Prince Floki.sol#726)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#699-705)
- success = IERC20(DOGE).transfer(address(dividendTracker),dividends) (Prince Floki.sol#728)
- dividendTracker.distributeDOGEDividends(dividends) (Prince Floki.sol#731)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (Prince Floki.sol#732)
Reentrancy in PrinceFloki.transferFrom(address,address,uint256) (Prince Floki.sol#240-244):
External calls:
- _transfer(sender,recipient,amount) (Prince Floki.sol#241)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- success = IERC20(DOGE).transfer(address(dividendTracker),dividends) (Prince Floki.sol#728)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#679-685)
- dividendTracker.distributeDOGEDividends(dividends) (Prince Floki.sol#731)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Prince Floki.sol#699-705)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
- System(system).rebase() (Prince Floki.sol#590)
- dividendTracker.setBalance(from,balanceOf(from)) (Prince Floki.sol#613)
- dividendTracker.setBalance(to,balanceOf(to)) (Prince Floki.sol#614)
- dividendTracker.process(gas) (Prince Floki.sol#619-622)
External calls sending eth:
- _transfer(sender,recipient,amount) (Prince Floki.sol#241)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadWallet,block.timestamp) (Prince Floki.sol#714-721)
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
Event emitted after the call(s):
- Approval(owner,spender,value) (Prince Floki.sol#208)
- _approve(sender,msg.sender,_allowedFragments[sender][msg.sender] - amount) (Prince Floki.sol#242)
Apply the check-effects-interactions pattern.
Additional information: link
Master.canRebase() (Master.sol#178-182) uses timestamp for comparisons
Dangerous comparisons:
- ((! rebaseLocked || msg.sender == owner()) && lastRebaseTimestampSec + (rebaseCooldown) < block.timestamp) (Master.sol#180)
UniswapV2OracleLibrary.currentCumulativePrices(address) (Oracle.sol#164-182) uses timestamp for comparisons
Dangerous comparisons:
- blockTimestampLast != blockTimestamp (Oracle.sol#173)
PrinceFlokiDividendTracker.getAccount(address) (Prince Floki.sol#804-847) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (Prince Floki.sol#844-846)
PrinceFlokiDividendTracker.canAutoClaim(uint256) (Prince Floki.sol#868-874) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (Prince Floki.sol#869)
- block.timestamp.sub(lastClaimTime) >= claimWait (Prince Floki.sol#873)
Avoid relying on block.timestamp.
Additional information: link
PrinceFlokiDividendTracker.excludeFromDividends(address,bool) (Prince Floki.sol#772-785) compares to a boolean constant:
-value == true (Prince Floki.sol#775)
Remove the equality to the boolean constant.
Additional information: link
ERC20._mint(address,uint256) (ERC20.sol#234-242) has costly operations inside a loop:
- _totalSupply = _totalSupply.add(amount) (ERC20.sol#239)
ERC20._burn(address,uint256) (ERC20.sol#255-263) has costly operations inside a loop:
- _totalSupply = _totalSupply.sub(amount) (ERC20.sol#261)
Use a local variable to hold the loop computation result.
Additional information: link
PrinceFloki.totalFees (Prince Floki.sol#69) is set pre-construction with a non-constant function or state variable:
- DOGERewardsFee.add(liquidityFee).add(marketingFee).add(devFee)
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
Low level call in PrinceFloki.forceSend() (Prince Floki.sol#176-182):
- (success) = address(marketingWallet).call{gas: 30000,value: BNBbalance}() (Prince Floki.sol#178)
Low level call in PrinceFloki.swapAndLiquify(uint256) (Prince Floki.sol#638-669):
- (success) = address(marketingWallet).call{gas: 30000,value: marketingWalletAmt}() (Prince Floki.sol#660)
- (success2) = address(devWallet).call{gas: 30000,value: devAmount}() (Prince Floki.sol#666)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable UniswapV2OracleLibrary.currentCumulativePrices(address).price0Cumulative (Oracle.sol#166) is too similar to UniswapV2OracleLibrary.currentCumulativePrices(address).price1Cumulative (Oracle.sol#166)
Variable MarketOracle.SHIBINBnbPrice0CumulativeLast (Oracle.sol#194) is too similar to MarketOracle.SHIBINBnbPrice1CumulativeLast (Oracle.sol#195)
Variable MarketOracle.getData()._price0CumulativeLast (Oracle.sol#276) is too similar to MarketOracle.getData()._price1CumulativeLast (Oracle.sol#277)
Variable MarketOracle.getSHIBIN_BNB_Rate().price0Cumulative (Oracle.sol#241) is too similar to MarketOracle.getBusdBnbRate().price1Cumulative (Oracle.sol#253)
Variable MarketOracle.getSHIBIN_BNB_Rate().price0Cumulative (Oracle.sol#241) is too similar to MarketOracle.getSHIBIN_BNB_Rate().price1Cumulative (Oracle.sol#241)
Variable MarketOracle.getBusdBnbRate().price0Cumulative (Oracle.sol#253) is too similar to MarketOracle.getBusdBnbRate().price1Cumulative (Oracle.sol#253)
Variable MarketOracle.getBusdBnbRate().price0Cumulative (Oracle.sol#253) is too similar to MarketOracle.getSHIBIN_BNB_Rate().price1Cumulative (Oracle.sol#241)
Variable MarketOracle.wbnbBusdPrice0CumulativeLast (Oracle.sol#198) is too similar to MarketOracle.wbnbBusdPrice1CumulativeLast (Oracle.sol#199)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (DividendPayingToken.sol#59) is too similar to PrinceFlokiDividendTracker.getAccount(address).withdrawableDividends (Prince Floki.sol#809)
Prevent variables from having similar names.
Additional information: link
Master.slitherConstructorConstantVariables() (Master.sol#80-335) uses literals with too many digits:
- MAX_RATE = 2000000 * 10 ** DECIMALS (Master.sol#119)
PrinceFloki.setGasForProcessing(uint256) (Prince Floki.sol#393-398) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,PrinceFloki: gasForProcessing must be between 200,000 and 500,000) (Prince Floki.sol#394)
PrinceFloki.slitherConstructorVariables() (Prince Floki.sol#16-735) uses literals with too many digits:
- swapTokensAtAmount = 20000000 * (10 ** 9) (Prince Floki.sol#56)
PrinceFloki.slitherConstructorVariables() (Prince Floki.sol#16-735) uses literals with too many digits:
- gasForProcessing = 300000 (Prince Floki.sol#90)
PrinceFloki.slitherConstructorConstantVariables() (Prince Floki.sol#16-735) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (Prince Floki.sol#51)
PrinceFlokiDividendTracker.getAccountAtIndex(uint256) (Prince Floki.sol#849-866) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (Prince Floki.sol#860)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Master.allowSetInitalRate (Master.sol#131) is never used in Master (Master.sol#80-335)
MarketOracle._wbnb (Oracle.sol#202) is never used in MarketOracle (Oracle.sol#191-301)
MarketOracle._busd (Oracle.sol#203) is never used in MarketOracle (Oracle.sol#191-301)
ERC20._allowances (ERC20.sol#38) is never used in PrinceFloki (Prince Floki.sol#16-735)
SafeMathInt.MAX_INT256 (SafeMath.sol#154) is never used in SafeMathInt (SafeMath.sol#152-210)
Remove unused state variables.
Additional information: link
DividendPayingToken.DOGE (DividendPayingToken.sol#20) should be constant
Master.allowSetInitalRate (Master.sol#131) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
distributeDOGEDividends(uint256) should be declared external:
- DividendPayingToken.distributeDOGEDividends(uint256) (DividendPayingToken.sol#37-48)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (DividendPayingToken.sol#52-54)
- PrinceFlokiDividendTracker.withdrawDividend() (Prince Floki.sol#764-766)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (DividendPayingToken.sol#80-82)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (DividendPayingToken.sol#94-96)
name() should be declared external:
- ERC20.name() (ERC20.sol#62-64)
symbol() should be declared external:
- ERC20.symbol() (ERC20.sol#70-72)
decimals() should be declared external:
- ERC20.decimals() (ERC20.sol#87-89)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (ERC20.sol#113-116)
- PrinceFloki.transfer(address,uint256) (Prince Floki.sol#233-237)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (ERC20.sol#121-123)
- PrinceFloki.allowance(address,address) (Prince Floki.sol#217-219)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (ERC20.sol#132-135)
- PrinceFloki.approve(address,uint256) (Prince Floki.sol#211-214)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (ERC20.sol#150-158)
- PrinceFloki.transferFrom(address,address,uint256) (Prince Floki.sol#240-244)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (ERC20.sol#172-175)
- PrinceFloki.increaseAllowance(address,uint256) (Prince Floki.sol#197-200)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (ERC20.sol#191-194)
- PrinceFloki.decreaseAllowance(address,uint256) (Prince Floki.sol#222-231)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (IterableMapping.sol#13-15)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (IterableMapping.sol#17-22)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (IterableMapping.sol#24-26)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (IterableMapping.sol#30-32)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Master.sol#67-70)
cooldownExpiryTimestamp() should be declared external:
- Master.cooldownExpiryTimestamp() (Master.sol#192-194)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Oracle.sol#63-65)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- PrinceFloki.excludeMultipleAccountsFromFees(address[],bool) (Prince Floki.sol#257-262)
isExcludedFromDividends(address) should be declared external:
- PrinceFloki.isExcludedFromDividends(address) (Prince Floki.sol#426-428)
isExcludedFromFees(address) should be declared external:
- PrinceFloki.isExcludedFromFees(address) (Prince Floki.sol#430-432)
withdrawableDividendOf(address) should be declared external:
- PrinceFloki.withdrawableDividendOf(address) (Prince Floki.sol#434-436)
dividendTokenBalanceOf(address) should be declared external:
- PrinceFloki.dividendTokenBalanceOf(address) (Prince Floki.sol#438-440)
rebase_percentage(uint256,bool) should be declared external:
- PrinceFloki.rebase_percentage(uint256,bool) (Prince Floki.sol#495-503)
withdrawtoken(address) should be declared external:
- PrinceFloki.withdrawtoken(address) (Prince Floki.sol#633-636)
getAccountAtIndex(uint256) should be declared external:
- PrinceFlokiDividendTracker.getAccountAtIndex(uint256) (Prince Floki.sol#849-866)
setBalance(address,uint256) should be declared external:
- PrinceFlokiDividendTracker.setBalance(address,uint256) (Prince Floki.sol#885-894)
process(uint256) should be declared external:
- PrinceFlokiDividendTracker.process(uint256) (Prince Floki.sol#896-941)
Use the external attribute for functions never called from the contract.
Additional information: link
Babylonian.sqrt(uint256) (Oracle.sol#12-24) is never used and should be removed
Context._msgData() (Master.sol#10-13) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (DividendPayingToken.sol#114-120) is never used and should be removed
FixedPoint.decode(FixedPoint.uq112x112) (Oracle.sol#131-133) is never used and should be removed
FixedPoint.div(FixedPoint.uq112x112,uint112) (Oracle.sol#110-113) is never used and should be removed
FixedPoint.encode(uint112) (Oracle.sol#100-102) is never used and should be removed
FixedPoint.encode144(uint144) (Oracle.sol#105-107) is never used and should be removed
FixedPoint.reciprocal(FixedPoint.uq112x112) (Oracle.sol#141-144) is never used and should be removed
FixedPoint.sqrt(FixedPoint.uq112x112) (Oracle.sol#147-149) is never used and should be removed
Master.withinDeviationThreshold(uint256) (Master.sol#308-318) is never used and should be removed
SafeMath.mod(uint256,uint256) (SafeMath.sol#126-128) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (SafeMath.sol#142-145) is never used and should be removed
SafeMathInt.abs(int256) (SafeMath.sol#200-203) is never used and should be removed
SafeMathInt.div(int256,int256) (SafeMath.sol#171-177) is never used and should be removed
Remove unused functions.
Additional information: link
Redundant expression "this (Context.sol#21)" inContext (Context.sol#15-25)
Redundant expression "this (Master.sol#11)" inContext (Master.sol#5-14)
Redundant expression "this (Oracle.sol#40)" inContext (Oracle.sol#34-43)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Contract has 15% buy tax and 21% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.
Token is deployed only at one blockchain
Token has only one trading pair
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
Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap
Additional information: link
Unable to find token contract audit
Unable to find audit link on the website
Unable to find code repository for the project
Young tokens have high risks of 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
Young tokens have high risks of price dump / death
Last post in Twitter was more than 30 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account