Skip to content

Commit e819828

Browse files
author
Edward (OpenClaw)
committed
docs(asset-leasing): fix on-chain/off-chain hyphenation
'onchain' and 'offchain' are one word, like 'online' and 'offline'. Caught while reviewing the Quasar skill PR which had the same slip.
1 parent 602823f commit e819828

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

defi/asset-leasing/anchor/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ The Quasar example in this repo's CI workflow
10251025
Token-2022 support is a type-parameter swap away.
10261026

10271027
- **State layout is the same, byte for byte.** The `Lease` discriminator
1028-
and field order match the Anchor version, so an off-chain indexer
1028+
and field order match the Anchor version, so an offchain indexer
10291029
that already decodes Anchor `Lease` accounts would also decode the
10301030
Quasar ones after adjusting for the one-byte discriminator.
10311031

@@ -1038,7 +1038,7 @@ The Quasar example in this repo's CI workflow
10381038
keys its program-derived address on `[LEASE_SEED, holder]` alone -
10391039
one active lease per holder. The `lease_id` is still stored on the
10401040
`Lease` account for book-keeping and is a caller-supplied u64 in
1041-
`create_lease`; the off-chain client just has to ensure the previous
1041+
`create_lease`; the offchain client just has to ensure the previous
10421042
lease from the same holder is `Closed` or `Liquidated` (i.e. its
10431043
program-derived address account is gone) before creating a new one.
10441044
Swapping in a multi-lease seed is a mechanical change once Quasar
@@ -1058,7 +1058,7 @@ grouped by effort:
10581058

10591059
### Easy
10601060

1061-
- **Add a `lease_view` read-only helper.** An off-chain indexer-style
1061+
- **Add a `lease_view` read-only helper.** An offchain indexer-style
10621062
struct that returns `{ collateral_value, debt_value, ratio_basis_points,
10631063
is_underwater }` given the same inputs `is_underwater` uses. Useful
10641064
for UIs that want to show "you are 15% away from liquidation".
@@ -1080,7 +1080,7 @@ grouped by effort:
10801080
- **Multiple outstanding leases per `(holder, short_seller)` pair with
10811081
the same mint pair.** Already supported via `lease_id`, but add an
10821082
instruction-level index account that lists open lease ids for a
1083-
given holder so off-chain tools don't have to `getProgramAccounts`
1083+
given holder so offchain tools don't have to `getProgramAccounts`
10841084
scan.
10851085

10861086
- **Quote asset ≠ collateral mint.** Rent and liquidation math assume

0 commit comments

Comments
 (0)