Platform: Code4rena
Start Date: 06/03/2023
Pot Size: $36,500 USDC
Total HM: 8
Participants: 93
Period: 3 days
Judge: cccz
Total Solo HM: 3
Id: 218
League: ETH
Rank: 53/93
Findings: 1
Award: $21.70
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: adriro
Also found by: 0x1f8b, 0xAgro, 0xSmartContract, 0xfuje, 0xkazim, 0xnev, Aymen0909, Bason, Cyfrin, DadeKuma, LethL, Madalad, MohammedRizwan, Rolezn, SAAJ, SunSec, Udsen, Yukti_Chinta, ast3ros, bin2chen, brgltd, bshramin, btk, bugradar, catellatech, cryptostellar5, descharre, dontonka, erictee, fatherOfBlocks, georgits, glcanvas, hl_, horsefacts, igingu, juancito, lukris02, martin, nadin, nomoi, peanuts, pipoca, sakshamguruji, seeu, slvDev, tnevler, zaskoh
21.7018 USDC - $21.70
src/interfaces/ILotterySetup.sol
src/interfaces/IReferralSystem.sol
src/interfaces/IReferralSystemDynamic.sol
L30 - The IReferralSystemDynamic interface is never used by any contract, therefore it should be removed.
L24 - The MinimumReferralsRequirement struct is never used by any contract, therefore it should be removed.
L6/9/14 - The errors created are never used by any contract, therefore they should be eliminated. Same as the ReferralRequirementFactorType enum.
src/LotterySetup.sol
src/Lottery.sol
src/LotteryMath.sol
src/staking/Staking.sol
The path src/staking/Staking.sol is somewhat confusing, since staking/staking remains, therefore the staking folder should have another name that contains the staking.sol inside.
L67/73 - In the stake() function a stakingToken transfer is made, but the check effect interact pattern is not respected. It would be advisable to follow this pattern.
src/staking/StakedTokenLock.sol
src/LotteryToken.sol
src/VRFv2RNSource.sol
#0 - thereksfour
2023-03-12T12:42:14Z
DOWN: 2 L
#1 - c4-judge
2023-03-12T12:42:17Z
thereksfour marked the issue as grade-b
#2 - c4-sponsor
2023-03-14T11:37:25Z
0xluckydev marked the issue as sponsor disputed
#3 - 0xluckydev
2023-03-14T11:37:31Z
Irrelevant
#4 - thereksfour
2023-03-17T13:00:15Z
2L B