Skip to content

Conversation

@SynnekOG
Copy link

Pull Request

Summary

This PR introduces a comprehensive set of events to LiquidityManagerV2 to improve transparency, monitoring, and integration with off-chain services.

Changes

  • Added Events Section
    • Organized with a clear section header for readability.
  • Introduced new events
    • PoolInitialized: emitted when a new pool is created.
    • LiquidityAdded: emitted when liquidity is provided to a pool.
    • LiquidityRemoved: emitted when liquidity is withdrawn.
    • LiquidityThresholdReached: emitted when a pool surpasses its liquidity threshold.
    • VestingScheduleCreated: emitted when a vesting schedule is established for a beneficiary.
    • EmergencyWithdrawInitiated: emitted when a provider initiates an emergency withdrawal.
    • ProtocolFeeCollected: emitted when protocol fees are collected.
    • LiquidityThresholdUpdated: emitted when a pool’s liquidity threshold is updated.
    • SupportedTokenUpdated: emitted when a token’s support status changes.
  • Formatting
    • Ran forge fmt to ensure consistent code style.

Motivation

Events are crucial for:

  • On-chain transparency: allowing stakeholders to track state changes.
  • Off-chain indexing: enabling dApps, dashboards, and analytics platforms to subscribe to key protocol updates.
  • Debugging & auditing: providing clear logs for verification and compliance.

Next Steps

These events lay the foundation for:

  • Advanced subgraph integrations.
  • Automated alerting systems when thresholds or emergency actions are triggered.
  • Better historical tracking of liquidity and user interactions.

@Neros0 Neros0 self-requested a review September 15, 2025 03:36
@Neros0 Neros0 added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 15, 2025
@Neros0 Neros0 merged commit d514faf into CraftMeme:main Sep 15, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants