freshgainstein.co
-
0x2E89b603BEb8AbB475359547517dd5DCc4e88a8f
-
The token itself comes with 7% top gainer coin of the day on CoinMarketCap to all holders by each tax! Rewards can be updated to another gainer coin on BSC every day!
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Freshgainstein.swapBack() (Contract.sol#300-341) sends eth to arbitrary user
Dangerous calls:
- distributor.deposit{value: amountBNBReflection}() (Contract.sol#327)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (Contract.sol#328)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (Contract.sol#331-338)
Freshgainstein.buyTokens(uint256,address) (Contract.sol#370-381) sends eth to arbitrary user
Dangerous calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (Contract.sol#375-380)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Freshgainstein._transferFrom(address,address,uint256) (Contract.sol#168-200):
External calls:
- swapBack() (Contract.sol#173)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (Contract.sol#311-317)
- distributor.deposit{value: amountBNBReflection}() (Contract.sol#327)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (Contract.sol#331-338)
- triggerAutoBuyback() (Contract.sol#174)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (Contract.sol#375-380)
External calls sending eth:
- swapBack() (Contract.sol#173)
- distributor.deposit{value: amountBNBReflection}() (Contract.sol#327)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (Contract.sol#328)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (Contract.sol#331-338)
- triggerAutoBuyback() (Contract.sol#174)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (Contract.sol#375-380)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (Contract.sol#183)
- _balances[recipient] = _balances[recipient].add(amountReceived) (Contract.sol#186)
- amountReceived = takeFee(sender,recipient,amount) (Contract.sol#185)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (Contract.sol#287)
- _launch(false,10,true) (Contract.sol#178)
- autoBuybackAccumulator = 0 (Contract.sol#444)
- _launch(false,10,true) (Contract.sol#178)
- autoBuybackAmount = 8888888888888888 (Contract.sol#445)
- _launch(false,10,true) (Contract.sol#178)
- autoBuybackBlockLast = block.number (Contract.sol#447)
- _launch(false,10,true) (Contract.sol#178)
- autoBuybackBlockPeriod = 2 (Contract.sol#446)
- _launch(false,10,true) (Contract.sol#178)
- autoBuybackCap = 10000000000000000000 (Contract.sol#443)
- _launch(false,10,true) (Contract.sol#178)
- autoBuybackEnabled = true (Contract.sol#442)
- triggerAutoBuyback() (Contract.sol#174)
- inSwap = true (Contract.sol#86)
- inSwap = false (Contract.sol#86)
Apply the check-effects-interactions pattern.
Additional information: link
TokensRescuer.rescueTokenPool(address,address) (DividendDistributor.sol#84-87) ignores return value by IBEP20(token).transfer(receiver,balance) (DividendDistributor.sol#86)
DividendDistributor.distributeDividend(address) (DividendDistributor.sol#223-234) ignores return value by IBEP20(rewards_token).transfer(shareholder,amount) (DividendDistributor.sol#229)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Freshgainstein._getPriceImpact(uint256) (Contract.sol#238-253) uses a dangerous strict equality:
- beforeSellBalance == 0 || beforeSellETHBalance == 0 (Contract.sol#242)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
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.
Contract name (Freshgainstein.co) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
authorize(address) should be declared external:
- Auth.authorize(address) (Auth.sol#31-33)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (Auth.sol#38-40)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (Auth.sol#59-63)
approve(address,uint256) should be declared external:
- Freshgainstein.approve(address,uint256) (Contract.sol#150-154)
getPriceImpact(uint256) should be declared external:
- Freshgainstein.getPriceImpact(uint256) (Contract.sol#234-236)
Use the external attribute for functions never called from the contract.
Additional information: link
Auth.transferOwnership(address).adr (Auth.sol#59) lacks a zero-check on :
- owner = adr (Auth.sol#60)
Freshgainstein.setFeeReceivers(address,address)._autoLiquidityReceiver (Contract.sol#505) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (Contract.sol#506)
Freshgainstein.setFeeReceivers(address,address)._marketingFeeReceiver (Contract.sol#505) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (Contract.sol#507)
TokensRescuer.rescueETHPool(uint256,address).receiver (DividendDistributor.sol#74) lacks a zero-check on :
- address(receiver).transfer(value_to_transfer) (DividendDistributor.sol#81)
DividendDistributor.constructor(address,address)._rewards_token (DividendDistributor.sol#134) lacks a zero-check on :
- rewards_token = _rewards_token (DividendDistributor.sol#140)
DividendDistributor.setRewardsToken(address)._rewards_token (DividendDistributor.sol#143) lacks a zero-check on :
- rewards_token = _rewards_token (DividendDistributor.sol#144)
Check that the address is not zero.
Additional information: link
Freshgainstein._getPriceImpact(uint256) (Contract.sol#238-253) performs a multiplication on the result of a division:
-expectETHReceived = beforeSellETHBalance.mul(sellAmount).div(beforeSellBalance) (Contract.sol#250)
-(expectETHReceived.mul(priceImpactNumerator).div(actualETHReceived)).sub(priceImpactNumerator) (Contract.sol#252)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (DividendDistributor.sol#223-234):
External calls:
- IBEP20(rewards_token).transfer(shareholder,amount) (DividendDistributor.sol#229)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (DividendDistributor.sol#231)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (DividendDistributor.sol#232)
Reentrancy in DividendDistributor.process(uint256) (DividendDistributor.sol#191-216):
External calls:
- distributeDividend(shareholder) (DividendDistributor.sol#208)
- IBEP20(rewards_token).transfer(shareholder,amount) (DividendDistributor.sol#229)
State variables written after the call(s):
- currentIndex ++ (DividendDistributor.sol#213)
Reentrancy in DividendDistributor.setShare(address,uint256) (DividendDistributor.sol#153-167):
External calls:
- distributeDividend(shareholder) (DividendDistributor.sol#155)
- IBEP20(rewards_token).transfer(shareholder,amount) (DividendDistributor.sol#229)
State variables written after the call(s):
- shares[shareholder].amount = amount (DividendDistributor.sol#165)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (DividendDistributor.sol#166)
Reentrancy in Freshgainstein.updateDividendDistributor(address,bool) (Contract.sol#550-562):
External calls:
- distributor.rescueETHPool(100,msg.sender) (Contract.sol#553)
- distributor.rescueTokenPool(current_rewards_token,msg.sender) (Contract.sol#554)
State variables written after the call(s):
- distributor = new DividendDistributor(address(router),0x55d398326f99059fF775485246999027B3197955) (Contract.sol#558)
- distributor = new DividendDistributor(address(router),_rewards_token) (Contract.sol#560)
Apply the check-effects-interactions pattern.
Additional information: link
Freshgainstein.swapBack() (Contract.sol#300-341) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (Contract.sol#331-338)
Ensure that all the return values of the function calls are used.
Additional information: link
Freshgainstein.setAutoBuybackSettings(bool,uint256,uint256,uint256) (Contract.sol#383-390) should emit an event for:
- autoBuybackCap = _cap (Contract.sol#385)
- autoBuybackAmount = _amount (Contract.sol#387)
Freshgainstein.setBuybackMultiplierSettings(uint256,uint256,uint256) (Contract.sol#392-397) should emit an event for:
- buybackMultiplierNumerator = numerator (Contract.sol#394)
- buybackMultiplierDenominator = denominator (Contract.sol#395)
- buybackMultiplierLength = length (Contract.sol#396)
Freshgainstein.setPriceImpactSettings(bool,uint256,uint256) (Contract.sol#399-404) should emit an event for:
- priceImpactNumerator = _numerator (Contract.sol#402)
- maxPriceImpact = _maxImpact (Contract.sol#403)
Freshgainstein.setWhaleProtectionSettings(bool,uint256,uint256) (Contract.sol#406-414) should emit an event for:
- txCooldown = _txCooldown (Contract.sol#412)
- maxWalletSize = _maxWalletSize (Contract.sol#413)
Freshgainstein.setTxLimit(uint256) (Contract.sol#455-458) should emit an event for:
- _maxTxAmount = amount (Contract.sol#457)
Freshgainstein.setFees(uint256,uint256,uint256,uint256,uint256) (Contract.sol#495-503) should emit an event for:
- liquidityFee = _liquidityFee (Contract.sol#496)
- reflectionFee = _reflectionFee (Contract.sol#498)
- marketingFee = _marketingFee (Contract.sol#499)
- totalFee = _liquidityFee.add(_buybackFee).add(_reflectionFee).add(_marketingFee) (Contract.sol#500)
- feeDenominator = _feeDenominator (Contract.sol#501)
Freshgainstein.setSwapBackSettings(bool,uint256) (Contract.sol#510-513) should emit an event for:
- swapThreshold = _amount (Contract.sol#512)
Freshgainstein.setTargetLiquidity(uint256,uint256) (Contract.sol#515-518) should emit an event for:
- targetLiquidity = _target (Contract.sol#516)
- targetLiquidityDenominator = _denominator (Contract.sol#517)
DividendDistributor.setDistributionCriteria(uint256,uint256) (DividendDistributor.sol#148-151) should emit an event for:
- minPeriod = _minPeriod (DividendDistributor.sol#149)
- minDistribution = _minDistribution (DividendDistributor.sol#150)
Emit an event for critical parameter changes.
Additional information: link
DividendDistributor.distributeDividend(address) (DividendDistributor.sol#223-234) has external calls inside a loop: IBEP20(rewards_token).transfer(shareholder,amount) (DividendDistributor.sol#229)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in Freshgainstein._transferFrom(address,address,uint256) (Contract.sol#168-200):
External calls:
- swapBack() (Contract.sol#173)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (Contract.sol#311-317)
- distributor.deposit{value: amountBNBReflection}() (Contract.sol#327)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (Contract.sol#331-338)
- triggerAutoBuyback() (Contract.sol#174)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (Contract.sol#375-380)
External calls sending eth:
- swapBack() (Contract.sol#173)
- distributor.deposit{value: amountBNBReflection}() (Contract.sol#327)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (Contract.sol#328)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (Contract.sol#331-338)
- triggerAutoBuyback() (Contract.sol#174)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (Contract.sol#375-380)
State variables written after the call(s):
- _launch(false,10,true) (Contract.sol#178)
- buybackMultiplierTriggeredAt = block.timestamp (Contract.sol#430)
- _launch(false,10,true) (Contract.sol#178)
- firewallLength = _firewallLength (Contract.sol#431)
- _launch(false,10,true) (Contract.sol#178)
- isCooldownActive = false (Contract.sol#434)
- isCooldownActive = true (Contract.sol#437)
- _launch(false,10,true) (Contract.sol#178)
- launchedAt = block.number (Contract.sol#429)
- _launch(false,10,true) (Contract.sol#178)
- priceImpactCheckEnabled = false (Contract.sol#435)
- priceImpactCheckEnabled = true (Contract.sol#438)
- checkTxEligibility(sender,recipient,amount) (Contract.sol#181)
- txHistory[holder] = block.timestamp (Contract.sol#224)
Reentrancy in Freshgainstein.constructor(string,string,address,address) (Contract.sol#98-138):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (Contract.sol#107)
State variables written after the call(s):
- WETH = router.WETH() (Contract.sol#108)
- _allowances[address(this)][address(router)] = uint256(- 1) (Contract.sol#110)
- _balances[msg.sender] = _totalSupply (Contract.sol#136)
- autoLiquidityReceiver = address(this) (Contract.sol#133)
- distributor = new DividendDistributor(address(router),0x55d398326f99059fF775485246999027B3197955) (Contract.sol#113)
- distributor = new DividendDistributor(address(router),_rewards_token) (Contract.sol#115)
- isDividendExempt[pair] = true (Contract.sol#118)
- isDividendExempt[address(this)] = true (Contract.sol#119)
- isDividendExempt[DEAD] = true (Contract.sol#120)
- isFeeExempt[address(this)] = true (Contract.sol#125)
- isFeeExempt[msg.sender] = true (Contract.sol#126)
- isSystemAddress[address(this)] = true (Contract.sol#128)
- isSystemAddress[msg.sender] = true (Contract.sol#129)
- isSystemAddress[pair] = true (Contract.sol#130)
- isSystemAddress[DEAD] = true (Contract.sol#131)
- isTxLimitExempt[address(this)] = true (Contract.sol#122)
- isTxLimitExempt[msg.sender] = true (Contract.sol#123)
- marketingFeeReceiver = msg.sender (Contract.sol#134)
Reentrancy in DividendDistributor.deposit() (DividendDistributor.sol#169-189):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (DividendDistributor.sol#178-183)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(bought_amount).div(totalShares)) (DividendDistributor.sol#188)
- totalDividends[rewards_token] = totalDividends[rewards_token].add(bought_amount) (DividendDistributor.sol#187)
Reentrancy in DividendDistributor.distributeDividend(address) (DividendDistributor.sol#223-234):
External calls:
- IBEP20(rewards_token).transfer(shareholder,amount) (DividendDistributor.sol#229)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (DividendDistributor.sol#230)
Reentrancy in DividendDistributor.setShare(address,uint256) (DividendDistributor.sol#153-167):
External calls:
- distributeDividend(shareholder) (DividendDistributor.sol#155)
- IBEP20(rewards_token).transfer(shareholder,amount) (DividendDistributor.sol#229)
State variables written after the call(s):
- addShareholder(shareholder) (DividendDistributor.sol#159)
- shareholderIndexes[shareholder] = shareholders.length (DividendDistributor.sol#256)
- removeShareholder(shareholder) (DividendDistributor.sol#161)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (DividendDistributor.sol#262)
- addShareholder(shareholder) (DividendDistributor.sol#159)
- shareholders.push(shareholder) (DividendDistributor.sol#257)
- removeShareholder(shareholder) (DividendDistributor.sol#161)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (DividendDistributor.sol#261)
- shareholders.pop() (DividendDistributor.sol#263)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (DividendDistributor.sol#164)
Reentrancy in Freshgainstein.triggerAutoBuyback() (Contract.sol#363-368):
External calls:
- buyTokens(autoBuybackAmount,DEAD) (Contract.sol#364)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (Contract.sol#375-380)
State variables written after the call(s):
- autoBuybackAccumulator = autoBuybackAccumulator.add(autoBuybackAmount) (Contract.sol#366)
- autoBuybackBlockLast = block.number (Contract.sol#365)
- autoBuybackEnabled = false (Contract.sol#367)
Reentrancy in Freshgainstein.triggerCustomBuyback(uint256,bool,address) (Contract.sol#351-357):
External calls:
- buyTokens(amount,receiver) (Contract.sol#352)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (Contract.sol#375-380)
State variables written after the call(s):
- buybackMultiplierTriggeredAt = block.timestamp (Contract.sol#354)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Freshgainstein._transferFrom(address,address,uint256) (Contract.sol#168-200):
External calls:
- swapBack() (Contract.sol#173)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (Contract.sol#311-317)
- distributor.deposit{value: amountBNBReflection}() (Contract.sol#327)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (Contract.sol#331-338)
- triggerAutoBuyback() (Contract.sol#174)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (Contract.sol#375-380)
- distributor.setShare(sender,_balances[sender]) (Contract.sol#189)
- distributor.setShare(recipient,_balances[recipient]) (Contract.sol#193)
- distributor.process(distributorGas) (Contract.sol#196)
External calls sending eth:
- swapBack() (Contract.sol#173)
- distributor.deposit{value: amountBNBReflection}() (Contract.sol#327)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (Contract.sol#328)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (Contract.sol#331-338)
- triggerAutoBuyback() (Contract.sol#174)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (Contract.sol#375-380)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (Contract.sol#198)
Reentrancy in Freshgainstein._transferFrom(address,address,uint256) (Contract.sol#168-200):
External calls:
- swapBack() (Contract.sol#173)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (Contract.sol#311-317)
- distributor.deposit{value: amountBNBReflection}() (Contract.sol#327)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (Contract.sol#331-338)
- triggerAutoBuyback() (Contract.sol#174)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (Contract.sol#375-380)
External calls sending eth:
- swapBack() (Contract.sol#173)
- distributor.deposit{value: amountBNBReflection}() (Contract.sol#327)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (Contract.sol#328)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (Contract.sol#331-338)
- triggerAutoBuyback() (Contract.sol#174)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (Contract.sol#375-380)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (Contract.sol#288)
- amountReceived = takeFee(sender,recipient,amount) (Contract.sol#185)
Reentrancy in Freshgainstein.constructor(string,string,address,address) (Contract.sol#98-138):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (Contract.sol#107)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (Contract.sol#137)
Reentrancy in Freshgainstein.swapBack() (Contract.sol#300-341):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (Contract.sol#311-317)
- distributor.deposit{value: amountBNBReflection}() (Contract.sol#327)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (Contract.sol#331-338)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (Contract.sol#327)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (Contract.sol#328)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (Contract.sol#331-338)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (Contract.sol#339)
Reentrancy in Freshgainstein.triggerCustomBuyback(uint256,bool,address) (Contract.sol#351-357):
External calls:
- buyTokens(amount,receiver) (Contract.sol#352)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (Contract.sol#375-380)
Event emitted after the call(s):
- BuybackMultiplierActive(buybackMultiplierLength) (Contract.sol#355)
Apply the check-effects-interactions pattern.
Additional information: link
Freshgainstein._transferFrom(address,address,uint256) (Contract.sol#168-200) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(_balances[sender] > 0) (Contract.sol#177)
Freshgainstein.checkTxEligibility(address,address,uint256) (Contract.sol#209-219) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(isSystemAddress[recipient] || _balances[recipient].add(amount) <= maxWalletSize,Max Wallet Size Exceeded) (Contract.sol#214)
Freshgainstein._checkAndUpdateCooldown(address) (Contract.sol#221-225) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(txHistory[holder].add(txCooldown) <= block.timestamp,Cooldown: Too many transactions) (Contract.sol#223)
Freshgainstein._checkPriceImpact(address,address,uint256) (Contract.sol#227-232) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(priceImpact <= maxPriceImpact,Price Impact too high) (Contract.sol#230)
Freshgainstein._getPriceImpact(uint256) (Contract.sol#238-253) uses timestamp for comparisons
Dangerous comparisons:
- beforeSellBalance == 0 || beforeSellETHBalance == 0 (Contract.sol#242)
Freshgainstein.shouldCheckPriceImpact(address,address) (Contract.sol#255-260) uses timestamp for comparisons
Dangerous comparisons:
- priceImpactCheckEnabled && ! isTxLimitExempt[sender] && receiver == pair && balanceOf(pair) > 0 (Contract.sol#256-259)
Freshgainstein.getTotalFee(bool) (Contract.sol#266-276) uses timestamp for comparisons
Dangerous comparisons:
- selling && buybackMultiplierTriggeredAt.add(buybackMultiplierLength) > block.timestamp (Contract.sol#271)
Freshgainstein.shouldSwapBack() (Contract.sol#293-298) uses timestamp for comparisons
Dangerous comparisons:
- msg.sender != pair && ! inSwap && swapEnabled && _balances[address(this)] >= swapThreshold (Contract.sol#294-297)
Freshgainstein.isOverLiquified(uint256,uint256) (Contract.sol#537-539) uses timestamp for comparisons
Dangerous comparisons:
- getLiquidityBacking(accuracy) > target (Contract.sol#538)
DividendDistributor.shouldDistribute(address) (DividendDistributor.sol#218-221) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (DividendDistributor.sol#219-220)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (DividendDistributor.sol#191-216) has costly operations inside a loop:
- currentIndex = 0 (DividendDistributor.sol#203)
DividendDistributor.process(uint256) (DividendDistributor.sol#191-216) has costly operations inside a loop:
- currentIndex ++ (DividendDistributor.sol#213)
Use a local variable to hold the loop computation result.
Additional information: link
Freshgainstein.swapThreshold (Contract.sol#80) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 1000
Freshgainstein._maxTxAmount (Contract.sol#81) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 99
Freshgainstein.maxWalletSize (Contract.sol#82) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 49
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
Parameter Freshgainstein.setAutoBuybackSettings(bool,uint256,uint256,uint256)._enabled (Contract.sol#383) is not in mixedCase
Parameter Freshgainstein.setAutoBuybackSettings(bool,uint256,uint256,uint256)._cap (Contract.sol#383) is not in mixedCase
Parameter Freshgainstein.setAutoBuybackSettings(bool,uint256,uint256,uint256)._amount (Contract.sol#383) is not in mixedCase
Parameter Freshgainstein.setAutoBuybackSettings(bool,uint256,uint256,uint256)._period (Contract.sol#383) is not in mixedCase
Parameter Freshgainstein.setPriceImpactSettings(bool,uint256,uint256)._enabled (Contract.sol#399) is not in mixedCase
Parameter Freshgainstein.setPriceImpactSettings(bool,uint256,uint256)._numerator (Contract.sol#399) is not in mixedCase
Parameter Freshgainstein.setPriceImpactSettings(bool,uint256,uint256)._maxImpact (Contract.sol#399) is not in mixedCase
Parameter Freshgainstein.setWhaleProtectionSettings(bool,uint256,uint256)._isCooldownActive (Contract.sol#407) is not in mixedCase
Parameter Freshgainstein.setWhaleProtectionSettings(bool,uint256,uint256)._txCooldown (Contract.sol#408) is not in mixedCase
Parameter Freshgainstein.setWhaleProtectionSettings(bool,uint256,uint256)._maxWalletSize (Contract.sol#409) is not in mixedCase
Parameter Freshgainstein.setShouldAutoLaunch(bool)._shouldAutoLaunch (Contract.sol#416) is not in mixedCase
Parameter Freshgainstein.launch(bool,uint256)._enableBuyBack (Contract.sol#420) is not in mixedCase
Parameter Freshgainstein.launch(bool,uint256)._firewallLength (Contract.sol#420) is not in mixedCase
Parameter Freshgainstein.setSystemAddress(address,bool)._systemAddress (Contract.sol#479) is not in mixedCase
Parameter Freshgainstein.setFees(uint256,uint256,uint256,uint256,uint256)._liquidityFee (Contract.sol#495) is not in mixedCase
Parameter Freshgainstein.setFees(uint256,uint256,uint256,uint256,uint256)._buybackFee (Contract.sol#495) is not in mixedCase
Parameter Freshgainstein.setFees(uint256,uint256,uint256,uint256,uint256)._reflectionFee (Contract.sol#495) is not in mixedCase
Parameter Freshgainstein.setFees(uint256,uint256,uint256,uint256,uint256)._marketingFee (Contract.sol#495) is not in mixedCase
Parameter Freshgainstein.setFees(uint256,uint256,uint256,uint256,uint256)._feeDenominator (Contract.sol#495) is not in mixedCase
Parameter Freshgainstein.setFeeReceivers(address,address)._autoLiquidityReceiver (Contract.sol#505) is not in mixedCase
Parameter Freshgainstein.setFeeReceivers(address,address)._marketingFeeReceiver (Contract.sol#505) is not in mixedCase
Parameter Freshgainstein.setSwapBackSettings(bool,uint256)._enabled (Contract.sol#510) is not in mixedCase
Parameter Freshgainstein.setSwapBackSettings(bool,uint256)._amount (Contract.sol#510) is not in mixedCase
Parameter Freshgainstein.setTargetLiquidity(uint256,uint256)._target (Contract.sol#515) is not in mixedCase
Parameter Freshgainstein.setTargetLiquidity(uint256,uint256)._denominator (Contract.sol#515) is not in mixedCase
Parameter Freshgainstein.setDistributionCriteria(uint256,uint256)._minPeriod (Contract.sol#520) is not in mixedCase
Parameter Freshgainstein.setDistributionCriteria(uint256,uint256)._minDistribution (Contract.sol#520) is not in mixedCase
Parameter Freshgainstein.setRouter(address)._router (Contract.sol#545) is not in mixedCase
Parameter Freshgainstein.updateDividendDistributor(address,bool)._rewards_token (Contract.sol#550) is not in mixedCase
Variable Freshgainstein.WETH (Contract.sol#29) is not in mixedCase
Variable Freshgainstein.DEAD (Contract.sol#30) is not in mixedCase
Variable Freshgainstein._name (Contract.sol#32) is not in mixedCase
Variable Freshgainstein._symbol (Contract.sol#33) is not in mixedCase
Constant Freshgainstein._decimals (Contract.sol#34) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Freshgainstein._totalSupply (Contract.sol#36) is not in mixedCase
Variable Freshgainstein._balances (Contract.sol#38) is not in mixedCase
Variable Freshgainstein._allowances (Contract.sol#39) is not in mixedCase
Variable Freshgainstein._maxTxAmount (Contract.sol#81) is not in mixedCase
Function IDEXRouter.WETH() (DexSettings.sol#11) is not in mixedCase
Parameter DividendDistributor.setRewardsToken(address)._rewards_token (DividendDistributor.sol#143) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (DividendDistributor.sol#148) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (DividendDistributor.sol#148) is not in mixedCase
Variable DividendDistributor._token (DividendDistributor.sol#100) is not in mixedCase
Variable DividendDistributor.rewards_token (DividendDistributor.sol#108) is not in mixedCase
Variable DividendDistributor.WETH (DividendDistributor.sol#109) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in Freshgainstein._transferFrom(address,address,uint256) (Contract.sol#168-200):
External calls:
- swapBack() (Contract.sol#173)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (Contract.sol#328)
External calls sending eth:
- swapBack() (Contract.sol#173)
- distributor.deposit{value: amountBNBReflection}() (Contract.sol#327)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (Contract.sol#328)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (Contract.sol#331-338)
- triggerAutoBuyback() (Contract.sol#174)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (Contract.sol#375-380)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (Contract.sol#183)
- _balances[recipient] = _balances[recipient].add(amountReceived) (Contract.sol#186)
- amountReceived = takeFee(sender,recipient,amount) (Contract.sol#185)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (Contract.sol#287)
- triggerAutoBuyback() (Contract.sol#174)
- autoBuybackAccumulator = autoBuybackAccumulator.add(autoBuybackAmount) (Contract.sol#366)
- _launch(false,10,true) (Contract.sol#178)
- autoBuybackAccumulator = 0 (Contract.sol#444)
- _launch(false,10,true) (Contract.sol#178)
- autoBuybackAmount = 8888888888888888 (Contract.sol#445)
- triggerAutoBuyback() (Contract.sol#174)
- autoBuybackBlockLast = block.number (Contract.sol#365)
- _launch(false,10,true) (Contract.sol#178)
- autoBuybackBlockLast = block.number (Contract.sol#447)
- _launch(false,10,true) (Contract.sol#178)
- autoBuybackBlockPeriod = 2 (Contract.sol#446)
- _launch(false,10,true) (Contract.sol#178)
- autoBuybackCap = 10000000000000000000 (Contract.sol#443)
- triggerAutoBuyback() (Contract.sol#174)
- autoBuybackEnabled = false (Contract.sol#367)
- _launch(false,10,true) (Contract.sol#178)
- autoBuybackEnabled = true (Contract.sol#442)
- _launch(false,10,true) (Contract.sol#178)
- buybackMultiplierTriggeredAt = block.timestamp (Contract.sol#430)
- _launch(false,10,true) (Contract.sol#178)
- firewallLength = _firewallLength (Contract.sol#431)
- triggerAutoBuyback() (Contract.sol#174)
- inSwap = true (Contract.sol#86)
- inSwap = false (Contract.sol#86)
- _launch(false,10,true) (Contract.sol#178)
- isCooldownActive = false (Contract.sol#434)
- isCooldownActive = true (Contract.sol#437)
- _launch(false,10,true) (Contract.sol#178)
- launchedAt = block.number (Contract.sol#429)
- _launch(false,10,true) (Contract.sol#178)
- priceImpactCheckEnabled = false (Contract.sol#435)
- priceImpactCheckEnabled = true (Contract.sol#438)
- checkTxEligibility(sender,recipient,amount) (Contract.sol#181)
- txHistory[holder] = block.timestamp (Contract.sol#224)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (Contract.sol#288)
- amountReceived = takeFee(sender,recipient,amount) (Contract.sol#185)
- Transfer(sender,recipient,amountReceived) (Contract.sol#198)
Reentrancy in Freshgainstein.swapBack() (Contract.sol#300-341):
External calls:
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (Contract.sol#328)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (Contract.sol#327)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (Contract.sol#328)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (Contract.sol#331-338)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (Contract.sol#339)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (DexSettings.sol#16) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (DexSettings.sol#17)
Prevent variables from having similar names.
Additional information: link
Freshgainstein.slitherConstructorVariables() (Contract.sol#26-604) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (Contract.sol#30)
Freshgainstein.slitherConstructorVariables() (Contract.sol#26-604) uses literals with too many digits:
- _totalSupply = 1000000000 * (10 ** _decimals) (Contract.sol#36)
Freshgainstein.slitherConstructorVariables() (Contract.sol#26-604) uses literals with too many digits:
- distributorGas = 300000 (Contract.sol#78)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendDistributor.dividendsPerShareAccuracyFactor (DividendDistributor.sol#122) should be constant
Freshgainstein.DEAD (Contract.sol#30) should be constant
Freshgainstein._totalSupply (Contract.sol#36) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
Attempt to swap token was unsuccessful. For some reason it is untradeable. If token is not in presale stage and is not traded outside PancakeSwap, then it's a scam
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.
Token has only one trading pair
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token contract audit
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find code repository for the project
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
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
Telegram account link seems to be invalid
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account