feat: Implement VaultList for Lending Protocol#2972
feat: Implement VaultList for Lending Protocol#2972mathbunnyru wants to merge 2 commits intoXRPLF:developfrom
Conversation
| // Parse the MPT Issuance ID from input | ||
| auto const mptID = ripple::uint192{input.tokenID.c_str()}; |
There was a problem hiding this comment.
Will check if this is correct way to name/get the id
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
godexsoft
left a comment
There was a problem hiding this comment.
Overall this is looking good. Leaving a few questions and mostly nits.
src/rpc/handlers/VaultList.hpp
Outdated
| namespace rpc { | ||
|
|
||
| /** | ||
| * @brief The vault_list command retrieves all Vaults created by a particular Token. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
I fixed the comment, thanks. I'll take a look how to implement it for all token types in a similar fashion
There was a problem hiding this comment.
I was looking at https://github.com/XRPLF/clio/blob/develop/src/rpc/handlers/VaultInfo.cpp#L138, which seems to deal with MPTs only
cd2a0be to
b7c9d9c
Compare
No description provided.