Skip to content
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

fix(contracts): change so that only recipient can withdraw from vault #235

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

0xHansLee
Copy link
Contributor

In the previous code, anyone can call withdraw or withdrawToL2 and the reward is sent to the caller.
This need to be fixed so that the reward is sent to the recipient.

And I added a modifier that only the recipient can call.
In case of withdraw, it requires additional action on L1 (prove and finalize), so this should be controlled only by the recipient.

In the previous code, anyone can call `withdraw` or `withdrawToL2`
and the reward is sent to the caller. This need to be fixed so that
the reward is sent to the recipient.
And I added a modifier that only the recipient can call.
In case of `withdraw`, it requires additional action on L1 (prove and finalize),
 so this should be controlled only by the recipient.
@0xHansLee 0xHansLee requested a review from a team December 12, 2023 03:40
@0xHansLee 0xHansLee self-assigned this Dec 12, 2023
Copy link
Contributor

@kangsorang kangsorang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@seolaoh seolaoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@0xHansLee 0xHansLee merged commit cbf99e0 into release/v1.0.3-base Dec 12, 2023
@0xHansLee 0xHansLee deleted the fix/set-recipient-withdrawal branch December 12, 2023 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants