Skip to content
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

Add documentation, contract, and tests for VeCakeTimeLockHook #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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