Skip to content

feat: implement configurable dynamic multiplier tiers for staking rew… - #100

Merged
Kaylahray merged 2 commits into
learnault:mainfrom
PeterOche:main
Jul 28, 2026
Merged

feat: implement configurable dynamic multiplier tiers for staking rew…#100
Kaylahray merged 2 commits into
learnault:mainfrom
PeterOche:main

Conversation

@PeterOche

Copy link
Copy Markdown
Contributor

…ards
I have completed the implementation for [StakeVault] Add configurable multiplier tiers (#94).

Summary of Accomplishments:
Configurable Tier Storage & Types: Added MultiplierTier struct, DataKey::MultiplierTiers, and default initializers in

types.rs
.
Admin Setter & Validation: Added set_multiplier_tiers and validate_tiers in

lib.rs
ensuring admin-only access, positive thresholds/multipliers, and strictly descending minimum stake thresholds.
Dynamic Evaluation & Fallback: Updated get_multiplier to evaluate stored tiers dynamically with a base fallback multiplier of 100.
Testing: Added unit tests in

test.rs
covering admin updates, invalid configurations, unauthorized access, and tier lookup behavior. All 166 workspace unit tests passed.

closes #94

@Kaylahray
Kaylahray merged commit 923bfe2 into learnault:main Jul 28, 2026
1 check passed
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.

[StakeVault] Add configurable multiplier tiers

3 participants