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

[Feature] Allow to claim points for tokens staked in LP #29

Open
GalloDaSballo opened this issue Jul 21, 2022 · 0 comments
Open

[Feature] Allow to claim points for tokens staked in LP #29

GalloDaSballo opened this issue Jul 21, 2022 · 0 comments

Comments

@GalloDaSballo
Copy link
Owner

NOTE: This solution requires governance, if you can figure out a version without governance I'd love to discuss

  1. Have governance set ClaimDelegation from Contract X (e.g. Balancer Vault), to Enclave (Staking / Endpoint Contract)
  2. Add Enclave to RewardsManager contract setup to engage the destination contract (e.g. LP)
  3. User Deposits into Enclave, they get X shares (which are used to calculate claim %)
  4. Anyone can call the function to claim from Vault to Enclave, enclave then redistributes to RewardsManager under it's own address

Downside -> Rewards take an extra week
Upside -> Minimal Code Overhead, should be settable by

Also: Doesn't work for Lending Protocol as you can't borrow
For Lending Protocol it would be way simpler to integrate with a custom cToken / aToken IMP which takes 1 extra line of code

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