Skip to content

feat: Implement VaultList for Lending Protocol#2972

Open
mathbunnyru wants to merge 2 commits intoXRPLF:developfrom
mathbunnyru:lending_rpc
Open

feat: Implement VaultList for Lending Protocol#2972
mathbunnyru wants to merge 2 commits intoXRPLF:developfrom
mathbunnyru:lending_rpc

Conversation

@mathbunnyru
Copy link
Copy Markdown
Collaborator

No description provided.

Comment on lines +72 to +73
// Parse the MPT Issuance ID from input
auto const mptID = ripple::uint192{input.tokenID.c_str()};
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will check if this is correct way to name/get the id

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 3, 2026

Codecov Report

❌ Patch coverage is 84.11215% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.81%. Comparing base (0beaff1) to head (91221bd).
⚠️ Report is 7 commits behind head on develop.

Files with missing lines Patch % Lines
src/rpc/handlers/VaultList.cpp 85.10% 6 Missing and 8 partials ⚠️
src/rpc/handlers/VaultList.hpp 75.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2972      +/-   ##
===========================================
- Coverage    81.81%   81.81%   -0.01%     
===========================================
  Files          396      398       +2     
  Lines        15827    15934     +107     
  Branches      8403     8468      +65     
===========================================
+ Hits         12949    13036      +87     
- Misses        1670     1680      +10     
- Partials      1208     1218      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@godexsoft godexsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this is looking good. Leaving a few questions and mostly nits.

@mathbunnyru mathbunnyru requested a review from Tapanito March 10, 2026 15:12
namespace rpc {

/**
* @brief The vault_list command retrieves all Vaults created by a particular Token.
Copy link
Copy Markdown
Collaborator

@Tapanito Tapanito Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this RPC only for MPTs? WHy not IOUs and XRP?

Edit: a Token cannot create a Vault. I assume you meant to say that vault_list retrieves all vaults for a given token?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed the comment, thanks. I'll take a look how to implement it for all token types in a similar fashion

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was looking at https://github.com/XRPLF/clio/blob/develop/src/rpc/handlers/VaultInfo.cpp#L138, which seems to deal with MPTs only

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