Repository navigation
Fixed
-
Loan indexer URL repointed to the r12 worker.
src/chains/loan.tshard-coded the legacy v1 indexer URL, which only contains pre-r12 loans created via the retired LoanCoordinator. Loan contract addresses were already on r12, so consumers were reading r12 contract state but querying the wrong indexer — they would see archived loans and miss every r12 RFQ / offer / loan. The v1 worker stays alive at its own URL/KV for archaeology of historical loans. -
r12 indexer backfill in
LoanModule. The r12 indexer'sstate.optionsentries omitstrike,expiryTimestamp,buyer, andseller. Without a backfill,getLendingOpportunities()rejected every r12 row (theexpiryTimestamp <= nowfilter tripped on zero) andgetUserLoans()returned rows with empty fields, leaving downstream UIs to render "—" for strike, expiry, and lender. Both methods now run a privatebackfillFromOptionInfo()pass that reads the missing fields from the deployed option contract viagetOptionInfo(), usingPromise.allSettledso a single RPC blip doesn't kill the batch.LoanIndexerLoangains optionalbuyer/sellerfields. Role-swap mapping: option.seller → loan.buyer (lender); option.buyer → loan.seller (borrower).
Added
- Public type surface for
client.collar. Re-exported 9 collar types from the barrel (CollarUnderlying,CollarEstimate,CollarCapStrike,CollarCapStrikeGroup,CollarStrikeFilter,CollarLoanRequest,CollarLoanResult,CollarSettings,CollarAssetConfig). The 0.2.4 release shippedCollarModulefiles but didn't export them or any of their types — meaning consumers couldn't reach the module from the package's public API at all.
Docs
- Chain config + ABI READMEs refreshed to r12.
src/chains/README.mdandsrc/abis/README.mdstill documented the pre-r12 OptionBook (0xd58b81…69A1) and OptionFactory (0x1aDcD3…86e5) in their example blocks. Runtime config insrc/chains/index.tswas already on r12; these were docs-only inconsistencies.
Full Changelog: v0.2.4...v0.2.5