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 vesting contract #119

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JoE11-y
Copy link

@JoE11-y JoE11-y commented Jan 23, 2025

📝 Add Vesting Contract

🛠️ Issue

📖 Description

PR Description: Vesting Contract Implementation

This PR introduces a robust Vesting Contract for managing token distribution schedules in a decentralized and automated manner. The contract is designed to handle the creation, management, and claiming of vesting schedules, ensuring fairness and flexibility for token allocations.

Key Features

  1. Vesting Schedule Management:

    • Add schedules with specified start time, cliff time, end time, and total token allocation.
    • Support for partial vesting using percentages.
  2. User Claims:

    • Users can claim tokens based on the amount vested at the current time.
    • Automatically calculates the vested and claimable amount based on elapsed time and schedule parameters.
  3. Ownership Controls:

    • The contract is Ownable, ensuring only the owner can add or remove vesting schedules.
    • Allows the owner to end vesting schedules prematurely and manage refunds.
  4. Error Handling:

    • Validations for edge cases, including:
      • Zero address or amount.
      • Invalid time configurations (e.g., end time before cliff time).
      • Percentage or token transfer errors.
  5. Event Emissions:

    • Emits structured events for key actions, such as adding schedules, successful claims, and vesting terminations.
  6. Integration:

    • Compatible with OpenZeppelin ERC-20 tokens using dispatcher interfaces for token transfers.
    • Designed for seamless integration with dApps and token distribution platforms.

🖼️ Screenshots (if applicable)

  • Include any relevant screenshots or examples of the changes made. This helps reviewers visualize the updates

📝 Additional Notes

  • Any additional context, questions, or considerations for the reviewers:

@danielcdz danielcdz added the ODBoost This issue will be available ONLY during the ODBoost label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ODBoost This issue will be available ONLY during the ODBoost
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT]: Implement vesting contract
2 participants