[DO NOT MERGE] adds PoC model for vault share price valuation#6434
[DO NOT MERGE] adds PoC model for vault share price valuation#6434Tapanito wants to merge 12 commits intotapanito/lending-fix-amendmentfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## tapanito/lending-fix-amendment #6434 +/- ##
==============================================================
Coverage 79.9% 79.9%
==============================================================
Files 878 861 -17
Lines 67970 67941 -29
Branches 7551 7548 -3
==============================================================
- Hits 54281 54258 -23
+ Misses 13689 13683 -6 🚀 New features to boost your workflow:
|
ximinez
left a comment
There was a problem hiding this comment.
In addition to the comments below, I noticed there are a lot of places where you have comments describing the current state of the vault. e.g.
// Vault: assetsTotal=1000, omega=50 (loan outstanding), iota=100, sharesTotal=1000
I'd like to see those have actual BEAST_EXPECT checks. Either added, or replacing the comments, up to your judgement.
Partial review. Note to self: left off at testPaperLossThenActualDefault()
ximinez
left a comment
There was a problem hiding this comment.
These changes are good, but I think you abstracted a little bit too much away. A lot of the tests are just verifying that, for example redeemAssets is using the same math as redeem. Doesn't mean the math is right.
What I think would be a good balance is to check the value of all the expected... variables. I'll include a couple of examples below.
|
Thanks @ximinez . Yeah, I think you're right, it was too abstract. I restored some of the concreteness with explicit value assertions. |
Spec: XRPLF/XRPL-Standards#485
High Level Overview of Change
Context of Change
Type of Change
.gitignore, formatting, dropping support for older tooling)API Impact
libxrplchange (any change that may affectlibxrplor dependents oflibxrpl)