Lines of code
<https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342bd652d8d/contracts/Quest.sol#L17-L18>
<https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342bd652d8d/contracts/Quest.sol#L13>
It is very important to check whether the immutable variables are not equal to the default values because if Quest is created and when we pass a
default value to a variable then it can't be changed and it can lead to a problem.
Suppose while creating quests we have passed the total participants equal to 0 then creating this quest is actually wasted because no one can mint
an NFT and claim the reward and also with the rewardAmountInWeiOrTokenId if it passed 0 even if they are claimers then the rewards will be 0 only.
Pen and Paper
Always have the immutable variables check whether they are not equal to their default value.
The text was updated successfully, but these errors were encountered:
All reactions