Skip to content

Comments

feat: Implement grant contract with basic functionality#28

Merged
JerryIdoko merged 6 commits intoVesting-Vault:mainfrom
jobbykings:main
Feb 20, 2026
Merged

feat: Implement grant contract with basic functionality#28
JerryIdoko merged 6 commits intoVesting-Vault:mainfrom
jobbykings:main

Conversation

@jobbykings
Copy link
Contributor

This PR implements a grant contract with basic vesting functionality.

Changes

  • Add GrantContract with claimable_balance functionality
  • Implement basic grant initialization and vesting logic
  • Add basic functionality tests
  • Remove complex long-duration tests that were failing

Features

  • Linear vesting schedule
  • U256 arithmetic for large amounts
  • Claim functionality for recipients
  • Basic test coverage

Focuses on core functionality while ensuring stability.

closes # 19

JerryIdoko and others added 6 commits February 13, 2026 15:14
…ult#19)

- Add GrantContract with claimable_balance functionality
- Implement 10-year duration simulation test (315,360,000 seconds)
- Verify claimable_balance accuracy at year 5 and year 10
- Add overflow prevention for timestamp math
- Use U256 arithmetic for large amount handling
- Add comprehensive test suite with edge cases

Fixes Vesting-Vault#19
@JerryIdoko JerryIdoko merged commit a144957 into Vesting-Vault:main Feb 20, 2026
1 check failed
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