Vito
370be1d267
fix: add rounding check to overpayment
2026-04-29 12:12:26 +02:00
Vito
180796dc0c
fix: Gate overpayment rounding behind fixCleanup3_2_0
...
Wrap the roundToAsset call on the overpayment residual in
loanMakePayment with a view.rules().enabled(fixCleanup3_2_0) check so
pre-amendment behavior is preserved. Update the testBugOverpayUnrounded
Amount comment to note that the pre-amendment path can't be exercised
as a regression test because the assertion fires in Debug builds and
aborts the test process.
2026-04-29 12:00:02 +02:00
Vito
2b91e84cb4
Merge remote-tracking branch 'origin/develop' into tapanito/lending-overpayment
2026-04-29 10:36:15 +02:00
Jingchen
46b997b774
feat: Create new transaction testing framework TxTest ( #6537 )
...
Signed-off-by: JCW <a1q123456@users.noreply.github.com >
Co-authored-by: xrplf-ai-reviewer[bot] <266832837+xrplf-ai-reviewer[bot]@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com >
2026-04-28 14:16:10 +00:00
Vito
00af7ba315
fix: Round overpayment residual and fix doOverpayment assertion
...
Two related issues on the loan overpayment path triggered spurious
assertion failures.
1. computeOverpaymentComponents requires its input amount to be
representable at the loan's scale (`isRounded(asset, overpayment,
loanScale)`). The residual passed in by loanMakePayment was the
raw `amount - totalPaid` (capped at totalValueOutstanding), which
could carry more precision than loanScale allows when the borrower
pays an amount with extra fractional digits. Round the residual
down to loanScale before calling computeOverpaymentComponents.
2. The "interest paid agrees" assertion in doOverpayment was missing
the management-fee component released during re-amortization. When
a borrower overpays and the loan is re-amortized, the management
fee outstanding decreases, but the original assertion formula did
not account for this delta. Add `mfeeReleased` (oldMfee - newMfee)
to the assertion, and introduce named intermediate variables with
a comment explaining the loan-state identity behind the derivation.
Add a regression test (testBugOverpayUnroundedAmount) that exercises
the overpayment path with a non-zero management fee rate and an
unrounded payment amount.
2026-04-28 14:36:04 +02:00
Vito Tumas
147da57348
feat: Add cleanup amendment for 3.2.0 ( #7037 )
2026-04-28 10:22:32 +00:00
Pratik Mankawde
3547112540
fix: Fix ubsan flagged issues ( #6151 )
...
Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com >
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
Co-authored-by: xrplf-ai-reviewer[bot] <266832837+xrplf-ai-reviewer[bot]@users.noreply.github.com>
2026-04-27 20:34:16 +00:00
Alex Kremer
4dc923dcc5
chore: Enable clang-tidy modernize-use-nodiscard check ( #7015 )
2026-04-24 17:19:30 +00:00
Pratik Mankawde
158df5394c
fix: Resolve MSVC Debug build failure in JobQueue.h; re-enable _CRTDBG_MAP_ALLOC in CI ( #6993 )
...
Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com >
Co-authored-by: Ed Hennis <ed@ripple.com >
2026-04-24 16:47:16 +00:00
Zhiyuan Wang
a6bd9251d2
docs: Update hybrid offer invariant comment ( #7007 )
2026-04-24 16:35:10 +00:00
Mayukha Vadari
9ae29612ea
fix: Fix flaky CI tests ( #7005 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-04-24 13:23:43 +00:00
Mayukha Vadari
82abf2a849
docs: Update bug bounty information ( #7006 )
2026-04-24 13:15:12 +00:00
Mayukha Vadari
7cfa5d4610
fix: Make assorted Payments fixes ( #6585 )
2026-04-24 12:56:50 +00:00
Mayukha Vadari
248cb29681
refactor: Move LendingHelpers into libxrpl/ledger/helpers ( #6638 )
...
Co-authored-by: xrplf-ai-reviewer[bot] <266832837+xrplf-ai-reviewer[bot]@users.noreply.github.com>
2026-04-24 12:06:26 +00:00
Jingchen
7a449edebb
refactor: Clean up NetworkOPs ( #6575 )
...
Signed-off-by: JCW <a1q123456@users.noreply.github.com >
2026-04-23 17:59:49 +00:00
Alex Kremer
19da25812b
fix: Remaining clang-tidy unchecked optionals ( #6979 )
2026-04-23 16:21:01 +00:00
Jingchen
7cd503859e
refactor: Remove seq from TMGetObjectByHash ( #6976 )
2026-04-23 13:59:23 +00:00
Alex Kremer
b41cbb08c6
chore: Add pre-commit hook to fix include style ( #6995 )
...
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com >
2026-04-22 22:20:14 +00:00
pdp2121
bd1b126230
feat: Add --definitions flag and artifact ( #6858 )
...
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com >
2026-04-22 20:10:52 +00:00
Mayukha Vadari
1c6cdc653c
fix: More clang-tidy issues ( #6992 )
2026-04-22 17:42:15 +00:00
Alex Kremer
4ab20770f7
chore: Optionally run clang-tidy via pre-commit ( #6680 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com >
Co-authored-by: Bart <bthomee@users.noreply.github.com >
2026-04-22 15:06:36 +00:00
Vito Tumas
2e307329f0
refactor: Add transaction-specific invariant checking ( #6551 )
2026-04-22 14:41:19 +00:00
Ayaz Salikhov
3429845c40
style: Add bashate pre-commit hook to unify bash style ( #6994 )
2026-04-22 14:26:02 +00:00
Alex Kremer
7c7c1894b9
chore: Add -fix to clang-tidy invocation ( #6990 )
2026-04-21 19:00:00 +00:00
Jingchen
45d4aacb53
chore: Remove empty Taker.h ( #6984 )
2026-04-21 18:15:58 +00:00
Alex Kremer
ce3951bbb3
chore: Enable clang-tidy modernize checks ( #6975 )
...
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com >
Co-authored-by: Bart <bthomee@users.noreply.github.com >
2026-04-21 15:32:51 +00:00
Ayaz Salikhov
ab887f5049
ci: Upload clang-tidy git diff ( #6983 )
2026-04-21 14:22:33 +00:00
Alex Kremer
ea023121f5
fix: Add rounding to Vault invariants ( #6217 ) ( #6955 )
...
Co-authored-by: Vito Tumas <5780819+Tapanito@users.noreply.github.com >
Co-authored-by: Ed Hennis <ed@ripple.com >
2026-04-21 12:14:07 +00:00
yinyiqian1
4b198cd5bb
fix: Disallow MPTClearRequireAuth if is set ( #6712 )
...
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com >
2026-04-20 21:25:52 +00:00
Alex Kremer
726f20c8f6
feat: Add GRPC TLS support ( #6374 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-04-20 17:12:14 +00:00
Zhiyuan Wang
96643bb0fa
fix: Check for empty sfAdditionalBooks array in hybrid offer invariant ( #6716 )
2026-04-20 17:10:28 +00:00
chuanshanjida
e83818241a
chore: Remove repetitive word in multiple files ( #6978 )
...
Signed-off-by: chuanshanjida <chuanshanjida@outlook.com >
2026-04-20 16:56:03 +00:00
Ayaz Salikhov
852fbe955d
ci: Add workflow to check PR description has been filled ( #6965 )
2026-04-20 12:12:58 +00:00
dependabot[bot]
b33d0a0479
ci: [DEPENDABOT] Bump tj-actions/changed-files from 47.0.5 to 47.0.6 ( #6973 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-20 11:20:42 +00:00
Alex Kremer
653a383ff5
chore: Enable clang-tidy include cleaner ( #6947 )
2026-04-17 16:43:49 +00:00
Gregory Tsipenyuk
affe5835fe
fix: Change AMMClawback return code to tecNO_PERMISSION ( #6946 )
2026-04-17 14:19:58 +00:00
dependabot[bot]
ef2642f873
ci: [DEPENDABOT] bump actions/upload-pages-artifact from 4.0.0 to 5.0.0 ( #6927 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-17 14:02:02 +00:00
dependabot[bot]
b2038163bc
ci: [DEPENDABOT] bump actions/upload-artifact from 7.0.0 to 7.0.1 ( #6928 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-17 14:01:56 +00:00
Alex Kremer
f1a5ba43ad
chore: Enable clang-tidy readability checks ( #6930 )
...
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com >
2026-04-17 13:30:52 +00:00
Jingchen
4a73be499d
fix: Fix unity build for book step ( #6942 )
...
Co-authored-by: xrplf-ai-reviewer[bot] <266832837+xrplf-ai-reviewer[bot]@users.noreply.github.com>
2026-04-16 17:12:00 +00:00
Sergey Kuznetsov
d52d735543
chore: Move codegen venv setup into build stage ( #6617 )
...
Co-authored-by: JCW <a1q123456@users.noreply.github.com >
Co-authored-by: Bart <bthomee@users.noreply.github.com >
2026-04-15 18:50:49 +00:00
Alex Kremer
6a0ce46755
chore: Enable most clang-tidy bugprone checks ( #6929 )
...
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com >
2026-04-14 20:24:21 +00:00
Bart
2f029a2120
refactor: Improve exception handling ( #6540 ) ( #6735 )
...
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com >
2026-04-14 17:14:24 +00:00
Zhiyuan Wang
61fbde3a71
refactor: Remove unused notTooManyOffers function from NFTokenUtils ( #6737 )
2026-04-13 23:18:10 +00:00
Bart
e2e537b3bb
fix: Change Tuning::bookOffers minimum limit to 1 ( #6812 )
...
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com >
2026-04-10 14:38:46 +00:00
Ed Hennis
a873250019
chore: Make pre-commit line ending conversions work on Windows ( #6832 ) ( #6833 )
2026-04-10 10:12:52 +00:00
Gregory Tsipenyuk
56c9d1d497
fix: Add description for terLOCKED error ( #6811 )
2026-04-08 20:56:19 +00:00
yinyiqian1
d52dd29d20
fix: Address AI reviewer comments for Permission Delegation ( #6675 )
2026-04-08 20:22:19 +00:00
Mayukha Vadari
7793b5f10b
refactor: Combine AMMHelpers and AMMUtils ( #6733 )
2026-04-08 17:38:33 +00:00
Gregory Tsipenyuk
dfcad69155
feat: Add MPT support to DEX ( #5285 )
2026-04-08 16:17:37 +00:00