Skip to content

feat: use on chain staking params for locked token APR multiplier#61

Merged
0xHansLee merged 1 commit intostagingfrom
hans/update-locked-multiplier
Feb 9, 2026
Merged

feat: use on chain staking params for locked token APR multiplier#61
0xHansLee merged 1 commit intostagingfrom
hans/update-locked-multiplier

Conversation

@0xHansLee
Copy link
Collaborator

Summary

Replace hardcoded 0.5x APR divisor for locked token type validators with the dynamic RewardsMultiplier fetched from on-chain staking params via GetStakingParams.

Changes

  • StakingValidatorsHandler: fetch staking params and apply TokenTypeLocked multiplier
  • StakingValidatorHandler: lazily fetch staking params only when the validator is locked type
  • Look up multiplier by TokenType field instead of assuming array index, preventing potential index out of range panic

@0xHansLee 0xHansLee self-assigned this Feb 7, 2026
@0xHansLee 0xHansLee merged commit cd17cd5 into staging Feb 9, 2026
8 checks passed
@0xHansLee 0xHansLee deleted the hans/update-locked-multiplier branch February 9, 2026 07:14
@0xHansLee 0xHansLee restored the hans/update-locked-multiplier branch February 9, 2026 07:15
@0xHansLee 0xHansLee deleted the hans/update-locked-multiplier branch February 9, 2026 09:32
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.

3 participants