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

Consider optimistic redemption and closure #143

Open
Alexangelj opened this issue Jan 21, 2021 · 0 comments
Open

Consider optimistic redemption and closure #143

Alexangelj opened this issue Jan 21, 2021 · 0 comments

Comments

@Alexangelj
Copy link
Contributor

Alexangelj commented Jan 21, 2021

Options that are closed return underlying tokens and/or strike tokens to the closer. Options that are redeemed return strike tokens to the redeemer. These functions have the invariants checked first, then the tokens sent out. Reverse the process so that the tokens are sent out FIRST, then the invariants are checked.

Exercises are already optimistic, and minting will definitely be, so might be worth making all fns optimistic.

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

No branches or pull requests

1 participant