Skip to content

Conversation

@ximinez
Copy link
Collaborator

@ximinez ximinez commented Dec 3, 2025

High Level Overview of Change

This PR continues the work started in #5270 and #6093. All new code changes that affect Lending should be done in this branch. That includes PRs.

Implement the Lending Protocol as described in XLS-66

Context of Change

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Refactor (non-breaking change that only restructures code)
  • Tests (you added tests for code that already exists, or your new feature included in this PR)

API Impact

  • Public API: New feature (new methods and/or new fields)
  • Public API: Breaking change (in general, breaking changes should only impact the next api_version)
  • libxrpl change (any change that may affect libxrpl or dependents of libxrpl)
  • Peer protocol change (must be backward compatible or bump the peer protocol version)

Tapanito and others added 3 commits December 3, 2025 12:35
- Originally defined as uint64_t, but the testIssuerLoan() test called
  it with a negative number, causing an overflow to a very large number
  that in some circumstances could be silently cast back to an int64_t,
  but might not be. I believe this is UB, and we don't want to rely on
  that.
@ximinez ximinez requested a review from a team as a code owner December 3, 2025 17:50
@codecov
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.1%. Comparing base (d7c71bf) to head (f7a5f35).

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                    @@
##           ximinez/lending-XLS-66-2   #6102   +/-   ##
========================================================
  Coverage                      79.1%   79.1%           
========================================================
  Files                           839     839           
  Lines                         71402   71380   -22     
  Branches                       8325    8318    -7     
========================================================
- Hits                          56477   56476    -1     
+ Misses                        14925   14904   -21     
Files with missing lines Coverage Δ
src/xrpld/app/misc/LendingHelpers.h 95.0% <ø> (ø)
src/xrpld/app/misc/detail/LendingHelpers.cpp 90.3% <100.0%> (+2.3%) ⬆️
src/xrpld/app/tx/detail/LoanBrokerDelete.cpp 83.5% <ø> (+11.0%) ⬆️
src/xrpld/app/tx/detail/Transactor.cpp 92.2% <100.0%> (+0.2%) ⬆️

... and 5 files with indirect coverage changes

Impacted file tree graph

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

ximinez and others added 6 commits December 3, 2025 19:49
- Adds additional unit tests to cover math calculations.
- Removes unused methods.
…minez/lending-XLS-66-ongoing

* XRPLF/ximinez/lending-XLS-66-2:
  Change some instances of View info() to header()
  Update rippled to xrpl
  refactor: Rename `ripple` namespace to `xrpl` (5982)
  refactor: Move JobQueue and related classes into xrpl.core module (6121)
  refactor: Rename `rippled` binary to `xrpld` (5983)
  refactor: rename info() to header() (6138)
  refactor: rename `LedgerInfo` to `LedgerHeader` (6136)
  refactor: clean up `RPCHelpers` (5684)
  chore: Fix docs readme and cmake (6122)
  chore: Clean up .gitignore and .gitattributes (6001)
  chore: Use updated secp256k1 recipe (6118)
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