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

Enable Centrifuge Router on redemptions (if not already enabled) #2577

Open
sophialittlejohn opened this issue Jan 13, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@sophialittlejohn
Copy link
Collaborator

sophialittlejohn commented Jan 13, 2025

We have programmed all investing and redeeming to go through the CentrifugeRouter contract. Prior to investing enable() is called. If the user invests with the centrifuge router they will also be able to redeem with it. However there are some edge cases where a user may have made an investment before the centrifuge router was installed and now want to make a redemption. For those users we have to called enable first.

  • before a redemption check on the CentrifugeRouter is isEnabled is false
  • if false call enable() as a first transaction and then claimRedeem in the second

Note: due to a bug in the contracts, enable and claimRedeem have to be called in two separate transactions = two signature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants