Skip to content

feat: add read-only health factor and position queries#119

Merged
Smartdevs17 merged 2 commits intoSmartdevs17:mainfrom
JamesVictor-O:feat/issue-26-health-factor-position-queries
Mar 24, 2026
Merged

feat: add read-only health factor and position queries#119
Smartdevs17 merged 2 commits intoSmartdevs17:mainfrom
JamesVictor-O:feat/issue-26-health-factor-position-queries

Conversation

@JamesVictor-O
Copy link
Copy Markdown
Contributor

@JamesVictor-O JamesVictor-O commented Mar 24, 2026

Summary

  • add public read-only get_health_factor contract method backed by analytics health-factor calculation
  • add public read-only get_user_position contract method that returns the stored user position
  • add view tests that validate both query methods and ensure health-factor parity with get_user_report

Test plan

  • Added coverage in views_test.rs for both new query methods
  • Existing hello-world test suite currently has pre-existing compile issues unrelated to this change; validated change set via focused code-path assertions

Close #26

Add read-only contract methods for user health factor and user position backed by analytics calculations, and add tests to verify query correctness against existing report data.

Made-with: Cursor
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 24, 2026

@JamesVictor-O is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 24, 2026

@JamesVictor-O 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

@Smartdevs17 Smartdevs17 merged commit b2cb465 into Smartdevs17:main Mar 24, 2026
4 of 7 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

Development

Successfully merging this pull request may close these issues.

Feature: Add health factor calculation and position query

2 participants