Skip to content

fix: prevent multiple calls to request refund [sup-9336] #654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

TamaraRingas
Copy link
Contributor

requestRefund() can be done multiple times
Assume it is done for a low amount and then it is approved via approveRefund().
Then approveRefund() is front-run by a second requestRefund() which increases the requestedAmount to
a larger amount (although still <= data.expectedAmountInterimAsset)

Then the second amount will be approved

possible solutions: only allow requestRefund() once

@TamaraRingas TamaraRingas self-assigned this Nov 19, 2024
Copy link

linear bot commented Nov 19, 2024

@0xTimepunk 0xTimepunk merged commit f72ae2f into v1.5 Nov 22, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants