Documentation
¶
Overview ¶
nolint revive
Index ¶
Constants ¶
const UpgradeName = "v2.2.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EscrowRepairResult ¶
type EscrowRepairResult struct {
ClosedPayments uint64
}
EscrowRepairResult reports containment, not reimbursement. Missing leases do not establish that a payment should be closed and require separate review.
func RepairEscrowPayments ¶
func RepairEscrowPayments(ctx sdk.Context, escrow ekeeper.Keeper, market mkeeper.IKeeper) (EscrowRepairResult, error)
RepairEscrowPayments closes open payments whose leases are already terminal. It changes only the payment state and index: balances, debt, prior withdrawals, account settlement heights and bank balances remain untouched. Held balances may include both legitimate earnings and invalid accrual, so paying or refunding them requires historical reconciliation rather than another settlement.