Skip to content

Conversation

sidechain-labs
Copy link

This pull request includes the following changes:

  1. Documentation:

    • Added a new documentation file to provide details about the VeCakeTimeLockHook contract.
  2. Contract:

    • Added the VeCakeTimeLockHook contract to the src/pool-cl/ directory.
    • This contract implements a time lock for veCake holders, adjusting swap fees based on the time elapsed since pool initialization.
  3. Tests:

    • Added a test file VeCakeTimeLockHook.t.sol in the test/pool-cl/ directory.
    • Included tests for:
      • Swapping within one hour as a veCake holder.
      • Swapping after one hour as a veCake holder.
      • Swapping within one hour as a non-veCake holder.
      • Swapping after one hour as a non-veCake holder.

These changes ensure that the swap fees are correctly adjusted based on the time elapsed since pool initialization and whether the user holds veCake tokens.

@vercel
Copy link

vercel bot commented Jul 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pancake-developer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 15, 2024 10:55am

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

Successfully merging this pull request may close these issues.

2 participants