Lucene search

K
code423n4Code4renaCODE423N4:2022-02-CONCUR-FINDINGS-ISSUES-272
HistoryApr 29, 2022 - 12:00 a.m.

Reentrency in claimRewards in ConcurRewardPool

2022-04-2900:00:00
Code4rena
github.com
7
reentrency
claimrewards
concurrewardpool
safetransfer
tokens

Judge @GalloDaSballo has assessed the 1st item in QA Report #163 as Medium risk. The relevant finding follows:

Reentrency in claimRewards in ConcurRewardPool

The function claimRewards is open to reenterncy, if the safeTransfer function of a token calls the claimRewards again the tokens can be transferred multiple times. This probabely won’t happen because if the token is a “bad token”, then it is probably not a known token or it is just a contract the attacker deployed for the attack, so the tokens won’t have any real value, but it is still worth mentioning. A possible solution for that is to move the line reward[msg.sender][_tokens[i]] = 0 before the call to safeTransfer.


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

All reactions