Welcome to PickleRick Finance! Home of the foul mouthed, deranged and intellectual disasterminds. Loosely based on the popular show Rick and Morty, In an infinite multiverse where anything can and will happen, we will allow our creativity to unfold. Incentivized BUSD rewards program for holders, future GameFi and NFT space.
DividendDistributor.distributeDividend(address) (#254-265) ignores return value by RWRD.transfer(shareholder,amount) (#260)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Reentrancy in PickleRick._transferFrom(address,address,uint256) (#410-451):
External calls:
- swapBack() (#431)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#508-514)
- distributor.deposit{value: amountBNBReflection}() (#524)
- (MarketingSuccess) = address(0x3a5e26cA0aC46f1975E9Feea51A4366f1cd6Fabb).call{gas: 30000,value: amountBNBMarketing}() (#525)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#529-536)
External calls sending eth:
- swapBack() (#431)
- distributor.deposit{value: amountBNBReflection}() (#524)
- (MarketingSuccess) = address(0x3a5e26cA0aC46f1975E9Feea51A4366f1cd6Fabb).call{gas: 30000,value: amountBNBMarketing}() (#525)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#529-536)
State variables written after the call(s):
- _balances[sender] = _balances[sender] - amount (#433)
- _balances[recipient] = _balances[recipient] + amountReceived (#436)
- amountReceived = takeFee(recipient,amount) (#435)
- _balances[address(this)] = _balances[address(this)] + (feeAmount) (#483)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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 ownership is not renounced (belongs to a wallet)
PickleRick.swapBack() (#496-539) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#529-536)
Ensure that all the return values of the function calls are used.
Additional information: link
PickleRick.swapThreshold (#355) is set pre-construction with a non-constant function or state variable:
- _totalSupply / (1000) * (1)
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
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#81) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#82)
Prevent variables from having similar names.
Additional information: link
PickleRick.ZERO (#306) is never used in PickleRick (#302-605)
Remove unused state variables.
Additional information: link
Auth.transferOwnership(address).adr (#57) lacks a zero-check on :
- owner = adr (#58)
PickleRick.setFeeReceivers(address)._autoLiquidityReceiver (#550) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#551)
Check that the address is not zero.
Additional information: link
Function IDEXRouter.WETH() (#76) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#182) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#182) is not in mixedCase
Variable DividendDistributor._token (#135) is not in mixedCase
Variable DividendDistributor.RWRD (#143) is not in mixedCase
Variable DividendDistributor.WBNB (#144) is not in mixedCase
Parameter PickleRick.setFeeReceivers(address)._autoLiquidityReceiver (#550) is not in mixedCase
Parameter PickleRick.setSwapBackSettings(bool,uint256)._enabled (#554) is not in mixedCase
Parameter PickleRick.setSwapBackSettings(bool,uint256)._percentage_base10000 (#554) is not in mixedCase
Parameter PickleRick.setDistributionCriteria(uint256,uint256)._minPeriod (#583) is not in mixedCase
Parameter PickleRick.setDistributionCriteria(uint256,uint256)._minDistribution (#583) is not in mixedCase
Variable PickleRick.WBNB (#304) is not in mixedCase
Variable PickleRick.DEAD (#305) is not in mixedCase
Variable PickleRick.ZERO (#306) is not in mixedCase
Constant PickleRick._name (#308) is not in UPPER_CASE_WITH_UNDERSCORES
Constant PickleRick._symbol (#309) is not in UPPER_CASE_WITH_UNDERSCORES
Constant PickleRick._decimals (#310) is not in UPPER_CASE_WITH_UNDERSCORES
Variable PickleRick._totalSupply (#311) is not in mixedCase
Variable PickleRick._balances (#313) is not in mixedCase
Variable PickleRick.BuyCooldownTimer (#314) is not in mixedCase
Variable PickleRick.SellCooldownTimer (#315) is not in mixedCase
Variable PickleRick._allowances (#316) is not in mixedCase
Variable PickleRick.BuyliquidityFee (#328) is not in mixedCase
Variable PickleRick.BuyreflectionFee (#329) is not in mixedCase
Variable PickleRick.BuymarketingFee (#330) is not in mixedCase
Variable PickleRick.BuytotalFee (#331) is not in mixedCase
Variable PickleRick.SellliquidityFee (#333) is not in mixedCase
Variable PickleRick.SellreflectionFee (#334) is not in mixedCase
Variable PickleRick.SellmarketingFee (#335) is not in mixedCase
Variable PickleRick.SelltotalFee (#336) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
PickleRick.takeFee(address,uint256) (#479-487) performs a multiplication on the result of a division:
-feeAmount = amount / 100 * (totalFee) (#481)
PickleRick.swapBack() (#496-539) performs a multiplication on the result of a division:
-amountToLiquify = tokensToSell / (totalFee) * (liquidityFee) / (2) (#499)
PickleRick.setSwapBackSettings(bool,uint256) (#554-557) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / (10000) * (_percentage_base10000) (#556)
PickleRick.slitherConstructorVariables() (#302-605) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / (1000) * (1) (#355)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in PickleRick.constructor() (#357-377):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#359)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#360)
- _balances[msg.sender] = _totalSupply (#375)
- autoLiquidityReceiver = 0xAE048570e9242142CeFA268331856ff9AEAA7b8D (#373)
- canAddLiquidityBeforeLaunch[msg.sender] = true (#367)
- distributor = new DividendDistributor(address(router)) (#362)
- isDividendExempt[pair] = true (#369)
- isDividendExempt[address(this)] = true (#370)
- isDividendExempt[DEAD] = true (#371)
- isFeeExempt[msg.sender] = true (#364)
- isTxLimitExempt[msg.sender] = true (#365)
Reentrancy in DividendDistributor.deposit() (#203-221):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#210-215)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare + (dividendsPerShareAccuracyFactor * (amount) / (totalShares)) (#220)
- totalDividends = totalDividends + (amount) (#219)
Reentrancy in DividendDistributor.distributeDividend(address) (#254-265):
External calls:
- RWRD.transfer(shareholder,amount) (#260)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#261)
Reentrancy in DividendDistributor.setShare(address,uint256) (#187-201):
External calls:
- distributeDividend(shareholder) (#189)
- RWRD.transfer(shareholder,amount) (#260)
State variables written after the call(s):
- addShareholder(shareholder) (#193)
- shareholderIndexes[shareholder] = shareholders.length (#287)
- removeShareholder(shareholder) (#195)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#293)
- addShareholder(shareholder) (#193)
- shareholders.push(shareholder) (#288)
- removeShareholder(shareholder) (#195)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#292)
- shareholders.pop() (#294)
- totalShares = totalShares - (shares[shareholder].amount) + (amount) (#198)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in PickleRick._transferFrom(address,address,uint256) (#410-451):
External calls:
- swapBack() (#431)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#508-514)
- distributor.deposit{value: amountBNBReflection}() (#524)
- (MarketingSuccess) = address(0x3a5e26cA0aC46f1975E9Feea51A4366f1cd6Fabb).call{gas: 30000,value: amountBNBMarketing}() (#525)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#529-536)
- distributor.setShare(sender,balanceOf(sender)) (#440)
- distributor.setShare(recipient,balanceOf(recipient)) (#444)
- distributor.process(distributorGas) (#447)
External calls sending eth:
- swapBack() (#431)
- distributor.deposit{value: amountBNBReflection}() (#524)
- (MarketingSuccess) = address(0x3a5e26cA0aC46f1975E9Feea51A4366f1cd6Fabb).call{gas: 30000,value: amountBNBMarketing}() (#525)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#529-536)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#449)
Reentrancy in PickleRick._transferFrom(address,address,uint256) (#410-451):
External calls:
- swapBack() (#431)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#508-514)
- distributor.deposit{value: amountBNBReflection}() (#524)
- (MarketingSuccess) = address(0x3a5e26cA0aC46f1975E9Feea51A4366f1cd6Fabb).call{gas: 30000,value: amountBNBMarketing}() (#525)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#529-536)
External calls sending eth:
- swapBack() (#431)
- distributor.deposit{value: amountBNBReflection}() (#524)
- (MarketingSuccess) = address(0x3a5e26cA0aC46f1975E9Feea51A4366f1cd6Fabb).call{gas: 30000,value: amountBNBMarketing}() (#525)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#529-536)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#484)
- amountReceived = takeFee(recipient,amount) (#435)
Reentrancy in PickleRick.constructor() (#357-377):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#359)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#376)
Reentrancy in PickleRick.swapBack() (#496-539):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#508-514)
- distributor.deposit{value: amountBNBReflection}() (#524)
- (MarketingSuccess) = address(0x3a5e26cA0aC46f1975E9Feea51A4366f1cd6Fabb).call{gas: 30000,value: amountBNBMarketing}() (#525)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#529-536)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#524)
- (MarketingSuccess) = address(0x3a5e26cA0aC46f1975E9Feea51A4366f1cd6Fabb).call{gas: 30000,value: amountBNBMarketing}() (#525)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#529-536)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#537)
Apply the check-effects-interactions pattern.
Additional information: link
authorize(address) should be declared external:
- Auth.authorize(address) (#41-43)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#45-47)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#57-61)
rescueToken(address,uint256) should be declared external:
- PickleRick.rescueToken(address,uint256) (#593-595)
Use the external attribute for functions never called from the contract.
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#254-265):
External calls:
- RWRD.transfer(shareholder,amount) (#260)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised + (amount) (#262)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#263)
Reentrancy in DividendDistributor.process(uint256) (#223-247):
External calls:
- distributeDividend(shareholders[currentIndex]) (#239)
- RWRD.transfer(shareholder,amount) (#260)
State variables written after the call(s):
- currentIndex ++ (#244)
Reentrancy in DividendDistributor.setShare(address,uint256) (#187-201):
External calls:
- distributeDividend(shareholder) (#189)
- RWRD.transfer(shareholder,amount) (#260)
State variables written after the call(s):
- shares[shareholder].amount = amount (#199)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#200)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#182-185) should emit an event for:
- minPeriod = _minPeriod (#183)
- minDistribution = _minDistribution (#184)
PickleRick.setSwapBackSettings(bool,uint256) (#554-557) should emit an event for:
- swapThreshold = _totalSupply / (10000) * (_percentage_base10000) (#556)
Emit an event for critical parameter changes.
Additional information: link
DividendDistributor.distributeDividend(address) (#254-265) has external calls inside a loop: RWRD.transfer(shareholder,amount) (#260)
Favor pull over push strategy for external calls.
Additional information: link
DividendDistributor.shouldDistribute(address) (#249-252) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#250-251)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#223-247) has costly operations inside a loop:
- currentIndex = 0 (#235)
DividendDistributor.distributeDividend(address) (#254-265) has costly operations inside a loop:
- totalDistributed = totalDistributed + amount (#259)
DividendDistributor.process(uint256) (#223-247) has costly operations inside a loop:
- currentIndex ++ (#244)
Use a local variable to hold the loop computation result.
Additional information: link
Low level call in PickleRick.swapBack() (#496-539):
- (MarketingSuccess) = address(0x3a5e26cA0aC46f1975E9Feea51A4366f1cd6Fabb).call{gas: 30000,value: amountBNBMarketing}() (#525)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
PickleRick.setDistributorSettings(uint256) (#587-590) uses literals with too many digits:
- require(bool)(gas < 900000) (#588)
PickleRick.slitherConstructorVariables() (#302-605) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#305)
PickleRick.slitherConstructorVariables() (#302-605) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#306)
PickleRick.slitherConstructorVariables() (#302-605) uses literals with too many digits:
- distributorGas = 500000 (#349)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendDistributor.WBNB (#144) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#157) should be constant
PickleRick.BuyliquidityFee (#328) should be constant
PickleRick.BuymarketingFee (#330) should be constant
PickleRick.BuyreflectionFee (#329) should be constant
PickleRick.BuytotalFee (#331) should be constant
PickleRick.DEAD (#305) should be constant
PickleRick.SellliquidityFee (#333) should be constant
PickleRick.SellmarketingFee (#335) should be constant
PickleRick.SellreflectionFee (#334) should be constant
PickleRick.SelltotalFee (#336) should be constant
PickleRick.WBNB (#304) should be constant
PickleRick.ZERO (#306) should be constant
PickleRick._totalSupply (#311) should be constant
PickleRick.launchedAt (#338) should be constant
PickleRick.tradingOpen (#346) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
Unable to find website, listings and other project-related information
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Twitter account has less than 100 followers
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
Twitter account has few posts