Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions finance/lending/anchor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ crosses the liquidation threshold and a liquidator can close part of the positio
### Accounts

- **`LendingMarket`** — top-level config (owner, quote-currency mint). PDA seeds
`["lending_market", owner, market_id]`, where `market_id` is a per-owner `u64`
index. Seeding by an index (not the owner alone) lets one owner run several
independent, risk-isolated markets — their market 0, 1, 2 … — with no
cross-owner collisions.
`["lending_market", market_id]`, where `market_id` is a `u64` index. Seeding by
an index alone (owner is stored as a field for authorization, not baked into the
address) lets one owner run several independent, risk-isolated markets — their
market 0, 1, 2 … — with no cross-owner collisions and no individual's key in a
shared struct's address.
- **`Reserve`** — one per asset. Owns a program-controlled liquidity vault and a
share-token mint, and stores the interest-rate config, the cumulative borrow-
rate index, available liquidity, and scaled total debt. PDA seeds
Expand Down
6 changes: 4 additions & 2 deletions finance/lending/quasar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ Everything else mirrors the Anchor version.
## Major concepts

- **`LendingMarket`** — market config (owner, quote-currency mint). PDA:
`["lending_market", owner, market_id]`, where `market_id` is a per-owner `u64`
index, so one owner can run several isolated markets (their market 0, 1, 2 …).
`["lending_market", market_id]`, where `market_id` is a `u64` index. Owner is
stored as a field for authorization, not baked into the address, so one owner
can run several isolated markets (their market 0, 1, 2 …) with no individual's
key in a shared struct's address.
- **`Reserve`** — one asset's pool. Owns a program-controlled liquidity vault and
a share-token mint (both PDAs, authority = the reserve), and stores the
interest-rate config, the cumulative borrow-rate index, available liquidity, and
Expand Down
Loading