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

Withdrawal requests #6

Open
JayusJay opened this issue Nov 11, 2024 · 0 comments
Open

Withdrawal requests #6

JayusJay opened this issue Nov 11, 2024 · 0 comments

Comments

@JayusJay
Copy link
Contributor

@Shivansh070707 The requirement as we discussed in our previous call is to prevent direct withdrawals since we expect 100% of funds to be utilized in strategies. You are there for supposed to override the withdraw and redeem functions so they cannot be called directly. Add a new function that will allow users request withdrawals.

The entire logic to support this operation should be added too.

  1. User requests to redeem x amount of their share tokens.
  2. Off-chain services pick it up.
  3. Off-chain pull funds from an existing strategy, sends a tx to the vault along with the latest pnl of the vault.
  4. This will update the price of the share token before we exercise the redemption, which will finalize the withdrawal.
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

2 participants
@JayusJay and others