Lucene search

K
code423n4Code4renaCODE423N4:2023-01-RABBITHOLE-FINDINGS-ISSUES-633
HistoryJan 30, 2023 - 12:00 a.m.

claim can run out of gas

2023-01-3000:00:00
Code4rena
github.com
5
claim function
gas
reward claiming
nft transfer
pagination

Lines of code

Vulnerability details

Impact

If the claim function runs out of gas, the caller can never claim any rewards without transferring the nfts to another address first

Proof of Concept

Currently, the claim function loops over the msg.senders NFT’s. If this list ever becomes too large, the function will run out of gas.

Tools Used

VSCode

Recommended Mitigation Steps

Consider implementing pagination for reward claiming.


The text was updated successfully, but these errors were encountered:

All reactions