Upgraded Q -> 2 from #670 [1675726386915] #702
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
duplicate-552
satisfactory
satisfies C4 submission criteria; eligible for awards
Judge has assessed an item in Issue #670 as 2 risk. The relevant finding follows:
[L-03] DoS if address owns too many receipts
With time it is viable for users to acquire thousands and tens of thousands of receipts. This may happen as a result of buying receipts for example, which was highlighted as a valid use-case. Moreover, receipts aren't burned when they are used for claiming a reward.
Calculations in getOwnedTokenIdsOfQuest require looping over all of user's tokens. This may lead to denial of service as EVM isn't suitable for big loops.
Recommendation: consider using ERC1155 for receipts which will allow tracking user receipts for each quest separately.
The text was updated successfully, but these errors were encountered: