Skip to content

feat: add admin pool query, boost count, total locked, and vesting event cumulative total - #270

Merged
ritaifeoluwa merged 2 commits into
SmartDropLabs:mainfrom
Akpamgbo:feat/farming-factory-enhancements
Aug 29, 2026
Merged

feat: add admin pool query, boost count, total locked, and vesting event cumulative total#270
ritaifeoluwa merged 2 commits into
SmartDropLabs:mainfrom
Akpamgbo:feat/farming-factory-enhancements

Conversation

@Akpamgbo

Copy link
Copy Markdown
Contributor

Description

This PR implements missing query getters and event metrics across the Factory, FarmingPool, and VestingWallet contracts.

Closes #229
Closes #230
Closes #231
Closes #232

Changes proposed

What were you told to do?

What did I do?

Factory Contract

  • Maintained DataKey::PoolsByAdmin(admin) -> Vec secondary index during pool creation.
  • Implemented get_pools_by_admin query and bump_admin_pools keep-alive helper.

FarmingPool Contract

  • Added BoostCount tracking in set_boost and exposed boost_count / get_boost_count getters.
  • Added TotalLocked tracking across position lock, unlock, emergency withdrawal, and initialization; exposed total_locked / get_total_locked getters.

VestingWallet Contract

  • Updated released event payload in release() to publish (beneficiary, releasable, released + releasable).

Check List (Check all the applicable boxes)

  • My code follows the code style of this project.
  • This PR does not contain plagiarized content.
  • The title and description of the PR is clear and explains the approach.
  • I am making a pull request against the main branch (left side).
  • My commit messages styles matches our requested structure.
  • The implementation was reviewed and confirmed to work as intended.
  • I am only making changes to files I was requested to.

Screenshots / Validation Evidence

Implemented and verified unit tests in factory/src/test.rs, farming-pool/src/test.rs, and vesting-wallet/src/test.rs.

@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@Akpamgbo 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 Aug 29, 2026

Copy link
Copy Markdown

Deploy Preview for sdcontracts ready!

Name Link
🔨 Latest commit e460a7c
🔍 Latest deploy log https://app.netlify.com/projects/sdcontracts/deploys/6a92a58975e3cc0008f4bb3e
😎 Deploy Preview https://deploy-preview-270--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 7ad7297 into SmartDropLabs:main Aug 29, 2026
3 of 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