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

Develop protocol staking adapter #18

Open
gabririgo opened this issue Aug 24, 2023 · 0 comments
Open

Develop protocol staking adapter #18

gabririgo opened this issue Aug 24, 2023 · 0 comments

Comments

@gabririgo
Copy link
Contributor

gabririgo commented Aug 24, 2023

Summary

Connect the protocol to the GRG staking system.

Motivation

Smart pools that have their own stake require an adapter to communicate with the staking system.

Specification

The adapter should allow the pool to stake to itself.
A "stake" method will be implemented which will batch in one transaction:

  1. Set allowance to GRG transfer proxy
  2. stake and deposit to GRG vault
  3. delegate stake to self.
    An "undelegateStake" and "unstake" methods will be implemented as well to allow the pool to withdraw its own stake.
    A "withdrawDelegatorRewards" method will be developed to allow the pool to withdraw delegator staking rewards while staking.

Notes

It has been implemented.

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