-
Notifications
You must be signed in to change notification settings - Fork 32
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
Retroactive Morpho reward Distribution automation #1563
Comments
As discussed with Fabio and Franz and @gosuto-inzasheru , the subgraph has data for each block. We therefore shall query by a set of blocks every x hours to get shares. As there are no gauges yet, this approach is ok. Need to add additional logic once staking gauges go live! We can reuse some logic from this repo Trit made: https://github.com/BalancerMaxis/ecosystem_balances_example More efficient query logic shared here Query:
Variables (example for gnosis boosted v3 pool):
|
@gosuto-inzasheru note that we will have to implement this as well for Aave boosted pools. Logic is the same, only difference is boosted pool targets for Aave pools - goal is to also do merkl airdrops. Example is this pool of which waETHLidoWETH earns aWETH on the prime instance We already coordinated with tokenlogic that we can claim those rewards on behalf of Balancer vault v3 to the omni-safe |
january27 morpho epoch ends---first run |
Morpho wants to distribute MORPHO rewards to boosted pool depositors. At the moment, they only distribute rewards every 2 weeks based on the 2 previous weeks deposits into their vaults. Given this, the cleanest solution is to also count boosted pool deposits retroactively and distribute rewards accordingly
Requirements
Not clear yet:
Implementation details
Example: deployed test pool on Gnosis chain
Endpoint: https://api.studio.thegraph.com/query/75376/balancer-v3-gnosis/version/latest
Query operation:
Variables:
Response:
The text was updated successfully, but these errors were encountered: