Skip to content

Comments

feat: implement warmup period for grants with linear scaling from 25%…#63

Open
Henrichy wants to merge 1 commit intoGrant-Stream:mainfrom
Henrichy:main
Open

feat: implement warmup period for grants with linear scaling from 25%…#63
Henrichy wants to merge 1 commit intoGrant-Stream:mainfrom
Henrichy:main

Conversation

@Henrichy
Copy link

closes #41

  • Add warmup_duration and start_time fields to Grant struct
  • Implement calculate_warmup_multiplier() for linear scaling over warmup period
  • Update settle_grant() to apply ramping multiplier during warmup
  • Modify create_grant() to accept warmup_duration parameter
  • Add write_grant() helper function for state persistence
  • Update all existing tests to support new warmup_duration parameter
  • Add comprehensive tests for warmup functionality:
    • test_warmup_period_linear_scaling
    • test_no_warmup_period
    • test_warmup_with_withdrawal

@Henrichy
Copy link
Author

@JerryIdoko please approve this PR as all criterias have been met

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.

#31 Issue 31: [Feature] Stream "Slow-Start" (Vesting-Style Onboarding)

1 participant