Skip to content

Commit 25f5f8b

Browse files
author
Edward (OpenClaw)
committed
docs(asset-leasing): remove ASCII-art lifecycle diagram
ASCII art renders inconsistently across viewers (different fonts, different terminal widths) and looks bad even when it works. Kept the prose paragraph that follows it explaining the Closed/Liquidated states aren't directly observable onchain — that's the useful bit. State transitions are already covered narratively in section 3 (per-instruction walkthrough) and section 4 (full-lifecycle worked examples). A diagram on top is redundant.
1 parent 114eb7a commit 25f5f8b

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

defi/asset-leasing/anchor/README.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -252,28 +252,6 @@ pub struct Lease {
252252
}
253253
```
254254

255-
### Lifecycle diagram
256-
257-
```
258-
create_lease
259-
+---------------+
260-
(no lease) -> | Listed |
261-
+---------------+
262-
| |
263-
take_lease | | close_expired (holder cancels)
264-
v v
265-
+---------------+ +--------+
266-
| Active | ----> | Closed |
267-
+---------------+ +--------+
268-
| | |
269-
return_lease| | | close_expired (after end_timestamp)
270-
| | liquidate
271-
v v v
272-
+--------+ +-----------+
273-
| Closed | | Liquidated|
274-
+--------+ +-----------+
275-
```
276-
277255
The `Closed` and `Liquidated` states are not directly observable
278256
onchain: all three of `return_lease`, `liquidate` and `close_expired`
279257
close the `Lease` account in the same transaction (`close = holder`),

0 commit comments

Comments
 (0)