You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
|`keeper` wallet | user |`liquidate` signer, receives the bounty |
149
149
|`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 |
155
155
|`price_update`| Pyth Receiver program |`PriceUpdateV2` account for the feed the lease is pinned to |
156
156
157
157
### Fields on `Lease`
@@ -628,7 +628,7 @@ closed; all three rent-exempt lamport refunds go to the lessor.
628
628
## 4. Full-lifecycle worked examples
629
629
630
630
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
632
632
unit of the leased mint; "COLLA" means one base unit of the collateral
633
633
mint.
634
634
@@ -824,7 +824,7 @@ handler:
824
824
cannot fail because the lessor spent the funds elsewhere in the
825
825
meantime.
826
826
827
-
- **Leased mint ≠ collateral mint.** If both sides used the same SPL
827
+
- **Leased mint ≠ collateral mint.** If both sides used the same
828
828
mint, the two vaults would hold the same asset and the
829
829
"what-do-I-owe-vs-what-do-I-hold" accounting would collapse. The
0 commit comments