Bundled fixes: guardian multi-sig recovery + multi-asset reserves (#1153, #1152) - #1202
Merged
ONEONUORA merged 2 commits intoAug 31, 2026
Conversation
Allow owners to register up to 5 guardians during plan creation and add guardian_emergency_trigger, which enforces the configured quorum threshold and triggers plan recovery when guardians collectively authorize it. Refs Fracverse#1153
Add per-token reserves (XLM, USDC, EURC, ...) with isolated LTV, liquidation threshold, total_borrowed and total_collateral tracking. add_reserve registers a reserve and whitelists the token as collateral; reserve tallies are updated on borrow and repay. Refs Fracverse#1152
|
@favvy994 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
ONEONUORA
approved these changes
Aug 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bundles fixes for both issues assigned to me into a single PR.
#1153 — Contract: Implement Guardian Multi-Sig Emergency Plan Recovery
CreateInheritancePlanParams.guardians/guardian_threshold.guardian_emergency_triggerwhich enforces the registered quorum threshold (each guardian signature is cryptographically validated at the ledger layer viarequire_auth), then triggers the plan's inheritance recovery flow (freezes loans, unlocks payout) mirroringtrigger_inheritance.set_guardians.#1152 — Contract: Implement Multi-Asset Reserve Management in Lending Contract
ReserveConfigtracking (XLM, USDC, EURC, ...) with isolatedltv_bps,liquidation_threshold_bps,total_borrowedandtotal_collateral.add_reserve(admin) which registers a reserve and whitelists the token as collateral, plusget_reserve_configquery.Validation
cargo build -p inheritance-contract,cargo clippy -p inheritance-contract,cargo fmt --check: passcargo build -p lending-contract,cargo clippy -p lending-contract,cargo fmt --check: passcargo test -p lending-contract: 136 passedCloses #1153
Closes #1152