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

Remove the distribute asset parameter on settlement #43

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

jake-nyquist
Copy link
Contributor

Currently, the protocol allows anyone to trigger a withdrawal from the vault. We're concerned that this is abused, and at a minimum, it makes it more difficult to think through potential security flaws in the system.

This change restricts that to the beneficial owner only. As a result, it is no longer possible to trigger the asset to be distributed when settling the option (a separate withdrawal transaction is necessary). So, this change removes that parameter and updates the tests accordingly.

@jake-nyquist jake-nyquist requested a review from regynald June 16, 2022 20:43
Copy link
Contributor

@regynald regynald left a comment

Choose a reason for hiding this comment

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

LGTM

@jake-nyquist jake-nyquist merged commit 7923a0d into main Jun 16, 2022
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.

2 participants