Skip to content

Commit 114eb7a

Browse files
author
Edward (OpenClaw)
committed
docs(asset-leasing): drop the README-previews-itself paragraph
The 'every instruction handler is walked through... background sections below define X before code walks happen' paragraph is redundant filler — the table of contents and section headlines already tell the reader what's coming. Deleted. Moved the inline solana.com/docs/terminology link for 'instruction handler' to its first occurrence in section 3, where the term is also explained in prose.
1 parent 35afc7d commit 114eb7a

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

defi/asset-leasing/anchor/README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ need to sell short. The program is written in
1919
[Anchor](https://solana.com/docs/terminology); a parallel
2020
[Quasar port](#7-quasar-port) implements the same onchain behaviour.
2121

22-
Every [instruction handler](https://solana.com/docs/terminology) is
23-
walked through with the exact token movements it causes. The
24-
background sections below define the financial concepts (collateral,
25-
maintenance margin, oracles) and the onchain wiring before any code
26-
walks happen.
27-
2822
---
2923

3024
## Table of contents
@@ -293,9 +287,10 @@ record the terminal state, but the account disappears at the end.
293287

294288
An instruction on Solana is the input sent in a transaction — a
295289
program id, a list of accounts, and a byte payload. The Rust function
296-
that runs when an instruction arrives is the *instruction handler*.
297-
This program has seven instruction handlers. The natural order a
298-
user encounters them — the order below — is:
290+
that runs when an instruction arrives is the
291+
[instruction handler](https://solana.com/docs/terminology). This
292+
program has seven instruction handlers. The natural order a user
293+
encounters them — the order below — is:
299294

300295
1. `create_lease` (holder)
301296
2. `take_lease` (short seller)

0 commit comments

Comments
 (0)