BAL Hookathon - King Of Liquidity Hook #111
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hook title:
King Of Liquidity
Hook description:
The King Of Liquidity Hook is an ingenious smart contract hooked to Balancer Version 3. This hook tracks and rewards the top liquidity provider of the pool, enhancing user engagement, incentivizing healthy competition, and incentivizing time-weighted liquidity which is beneficial to the pool users.
Demo video: https://youtu.be/ZpzxAV82s0E
Github repo: https://github.com/utuku999/balancer-hookathon
Team Name:
Utuku
Features:
The contract operates autonomously and transparently, without relying on external oracles, while maintaining simplicity. It calculates points using a time-weighted average rather than solely basing them on the amount. Rewards are collected from fees and distributed periodically in epochs, supporting various pool tokens. The percentage of fees is configurable.
Key advantages include fostering user engagement, promoting competition, and gamifying the liquidity provision. Top LPs are rewarded extra for their risk and contribution to the pools over an extended period.
Pool Lifecycle Implementation Points:
Identified challenges:
Future improvements (potential):
Feedback about DevX:
Balancer offers a mainly positive developer experience (DevX), providing thorough and comprehensive resources for swift onboarding to their platform. The community and social channels are active and notably supportive, which further enhances the learning process and progress. While some concepts initially seem challenging and difficult to comprehend, they become trivial with enough determination, time, and practice. The scaffold, along with various projects and examples, is invaluable for developers who are starting with the Balancer ecosystem, significantly easing their integration and learning curve. All in all, it was a pleasure to get hands-on experience with V3 hooks and the Balancer ecosystem.