Skip to content

feat(farming-pool): expose boost totals and multiplier change ledger - #592

Merged
ritaifeoluwa merged 1 commit into
SmartDropLabs:mainfrom
devwura:feat/farming-pool-additional-improvements
Oct 20, 2026
Merged

ritaifeoluwa merged 1 commit into
SmartDropLabs:mainfrom
devwura:feat/farming-pool-additional-improvements

Conversation

@devwura

@devwura devwura commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds four read-only getters over boost and multiplier state the farming pool already maintains. No storage layout or existing behaviour changes.

Each getter has a test in soroban/contracts/farming-pool/src/test.rs.

Notes

Closes #570
Closes #571
Closes #572
Closes #573

Add read-only getters over state the contract already maintains:

- get_total_boost_allocation(): sum of all users' boost allocations (SmartDropLabs#570)
- get_boost_user_count(): number of users with a non-zero boost (SmartDropLabs#571)
- get_average_boost_allocation(): mean boost per boosted user, rounded
  down (SmartDropLabs#572)
- get_multiplier_change_ledger(): ledger of the last set_global_multiplier
  call, or 0 if never changed (SmartDropLabs#573)

No storage layout or existing behaviour changes.
@drips-wave

drips-wave Bot commented Oct 20, 2026

Copy link
Copy Markdown

@devwura 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

@netlify

netlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sdcontracts ready!

Name Link
🔨 Latest commit b9a892a
🔍 Latest deploy log https://app.netlify.com/projects/sdcontracts/deploys/6ad7fd407cede8c1b737598c
😎 Deploy Preview https://deploy-preview-592--sdcontracts.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ritaifeoluwa
ritaifeoluwa merged commit 9bdc60c into SmartDropLabs:main Oct 20, 2026
4 checks 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

2 participants