Skip to content

Commit 33f5ef7

Browse files
author
Edward (OpenClaw)
committed
docs(asset-leasing): drop 'SPL Token' qualifier, just say 'token'
Tokens are the default on Solana; no need to qualify with 'SPL'. Reserve 'SPL Token' for the rare case of contrasting with the native token (SOL). - README account table: 'SPL Token' -> 'token account' (matches what the column actually describes: an ATA, not a token type) - README prose: '6-decimal SPL tokens' -> '6-decimal tokens', 'same SPL mint' -> 'same mint' - Cargo.toml description: 'Fixed-term SPL token leasing' -> 'Fixed-term token leasing' Left SPL_TOKEN_PROGRAM_ID identifiers alone -- those are program IDs, not prose.
1 parent d2e0d4d commit 33f5ef7

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

defi/asset-leasing/anchor/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ three PDAs are created on `create_lease` and destroyed on `return_lease`
147147
| `lessee` wallet | user | `take_lease` / `top_up_collateral` / `return_lease` signer |
148148
| `keeper` wallet | user | `liquidate` signer, receives the bounty |
149149
| `payer` wallet | user | `pay_rent` signer (can be anyone, not just the lessee) |
150-
| `lessor_leased_account` | SPL Token | lessor's ATA for the leased mint; source on `create_lease`, destination on `return_lease` / `close_expired` |
151-
| `lessor_collateral_account` | SPL Token | lessor's ATA for the collateral mint; destination for rent and liquidation proceeds |
152-
| `lessee_leased_account` | SPL Token | lessee's ATA for the leased mint; destination on `take_lease`, source on `return_lease` |
153-
| `lessee_collateral_account` | SPL Token | lessee's ATA for the collateral mint; source on `take_lease` / `top_up_collateral`, destination for collateral refund on `return_lease` |
154-
| `keeper_collateral_account` | SPL Token | keeper's ATA for the collateral mint; receives the liquidation bounty |
150+
| `lessor_leased_account` | token account | lessor's ATA for the leased mint; source on `create_lease`, destination on `return_lease` / `close_expired` |
151+
| `lessor_collateral_account` | token account | lessor's ATA for the collateral mint; destination for rent and liquidation proceeds |
152+
| `lessee_leased_account` | token account | lessee's ATA for the leased mint; destination on `take_lease`, source on `return_lease` |
153+
| `lessee_collateral_account` | token account | lessee's ATA for the collateral mint; source on `take_lease` / `top_up_collateral`, destination for collateral refund on `return_lease` |
154+
| `keeper_collateral_account` | token account | keeper's ATA for the collateral mint; receives the liquidation bounty |
155155
| `price_update` | Pyth Receiver program | `PriceUpdateV2` account for the feed the lease is pinned to |
156156

157157
### Fields on `Lease`
@@ -628,7 +628,7 @@ closed; all three rent-exempt lamport refunds go to the lessor.
628628
## 4. Full-lifecycle worked examples
629629

630630
All three use the same starting numbers so the arithmetic is easy to
631-
follow. Both mints are 6-decimal SPL tokens. "LEASED" means one base
631+
follow. Both mints are 6-decimal tokens. "LEASED" means one base
632632
unit of the leased mint; "COLLA" means one base unit of the collateral
633633
mint.
634634

@@ -824,7 +824,7 @@ handler:
824824
cannot fail because the lessor spent the funds elsewhere in the
825825
meantime.
826826
827-
- **Leased mint ≠ collateral mint.** If both sides used the same SPL
827+
- **Leased mint ≠ collateral mint.** If both sides used the same
828828
mint, the two vaults would hold the same asset and the
829829
"what-do-I-owe-vs-what-do-I-hold" accounting would collapse. The
830830
guard is cheap and the error message is explicit.

defi/asset-leasing/anchor/programs/asset-leasing/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "asset-leasing"
33
version = "0.1.0"
4-
description = "Fixed-term SPL token leasing with collateral and Pyth-priced liquidation"
4+
description = "Fixed-term token leasing with collateral and Pyth-priced liquidation"
55
edition = "2021"
66

77
[lib]

0 commit comments

Comments
 (0)