LilPOL is a minimalist implementation of the Proof of Liquidity (POL) consensus mechanism, designed to demonstrate the core principles of POL in a simplified, educational format. This project consists of two main contracts: LilPOL and LilBGT, which together simulate the essential functions of a POL system.
Proof of Liquidity is a novel consensus mechanism that aims to align network incentives, creating strong synergy between validators and the ecosystem of projects. In POL:
- Validators provide liquidity to the network instead of just staking tokens.
- Block rewards are distributed based on the amount of liquidity provided.
- Projects can incentivize liquidity provision to their protocols, influencing validator behavior.
The LilPOL contract serves as the central hub for managing validators, distributing rewards, and handling the core POL mechanics. It includes:
- Validator management
- Cutting board functionality (reward distribution preferences)
- Block reward processing and distribution
- Basic staking mechanics
The LilBGT contract represents a simplified version of the Bera Governance Token, which is central to the POL ecosystem. It handles:
- Token minting and transfers
- Boost queuing and management
- Commission rate setting for validators
- Reward rate calculations
-
Validator Management:
- Validators are registered and tracked in the system.
- Each validator has an associated operator address.
-
Cutting Boards:
- Validators can set preferences for how their rewards are distributed.
- Cutting boards can be queued and activated after a delay.
-
Reward Distribution:
- Block rewards are calculated based on base rates and validator-specific boosts.
- Rewards are distributed according to active cutting boards.
-
Boosting Mechanism:
- Token holders can queue boosts for validators.
- Boosts increase a validator's share of rewards.
-
Commission Rates:
- Validators can set commission rates to earn a portion of rewards.
-
Block Timing:
- Certain actions (like activating cutting boards or changing commission rates) are subject to block number-based delays.
-
Liquidity Provision:
- While simplified in this implementation, the core idea is that validators provide liquidity to earn rewards.
- Validators register in the LilPOL contract.
- Token holders acquire LilBGT tokens.
- Token holders can boost validators using their LilBGT.
- Validators set up cutting boards to direct their rewards.
- As blocks are produced, the LilPOL contract calculates and distributes rewards.
- The LilBGT contract handles token minting, transfers, and boost management.
- Simplified mechanics and fewer safety checks.
- Limited governance features.
- Reduced complexity in liquidity tracking and management.
- Minimal implementation of advanced features like delegation or complex reward strategies.
This project is intended for educational purposes and as a starting point for understanding POL mechanics. It is not suitable for production use without significant enhancements and security audits.
To interact with the contracts:
- Deploy LilBGT and LilPOL contracts.
- Set up validators and initial token distribution.
- Experiment with boosting, cutting board management, and reward distribution.
There are no future enhancements, I love you.