Skip to content

feat(stake-vault): add get_multiplier view function for cross-contrac…#76

Merged
Kaylahray merged 2 commits into
learnault:mainfrom
ajulaybeeb:feat/get-multiplier
Jun 1, 2026
Merged

feat(stake-vault): add get_multiplier view function for cross-contrac…#76
Kaylahray merged 2 commits into
learnault:mainfrom
ajulaybeeb:feat/get-multiplier

Conversation

@ajulaybeeb
Copy link
Copy Markdown

Added the get_multiplier view function to the StakeVault contract. This cross-contract view function returns a multiplier based on the amount of USDC staked by a user, and is used by the RewardPool and QuestEngine to calculate boosted payout amounts.

Changes

  • Implemented get_multiplier(env: Env, user: Address) -> u32 in contracts/stake-vault/src/lib.rs.
  • Created basic unit tests in contracts/stake-vault/src/test.rs to verify the staking threshold logic.
  • Added contracts/stake-vault to the workspace members in Cargo.toml.

Acceptance Criteria Verified

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 31, 2026

@ajulaybeeb Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Kaylahray Kaylahray merged commit 07c2973 into learnault:main Jun 1, 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] Get user reward multiplier (view)

2 participants