Skip to content

Remove the distribute asset parameter on settlement#43

Merged
jake-nyquist merged 1 commit intomainfrom
jn/dont-withdrawl-on-settle
Jun 16, 2022
Merged

Remove the distribute asset parameter on settlement#43
jake-nyquist merged 1 commit intomainfrom
jn/dont-withdrawl-on-settle

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