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): replace bare \u00a73.x section references with named anchor links
Bare '\u00a73.4' or 'See \u00a74' references force the reader to scroll back
through the doc to find the section. Lawyer-style cross-references
should always be clickable links to a named anchor.
Replaced all 12 bare \u00a7-references with markdown links to the
corresponding GitHub-auto-generated heading anchors. Verified each
anchor slug against the heading text manually.
- If the vault did not have enough collateral to cover the full
389
389
`lease_fee_due`, the residual is silently left as a debt the next
390
-
`liquidate` or `close_expired` call cleans up. (See §4 for the
391
-
rationale on this trade-off.)
390
+
`liquidate` or `close_expired` call cleans up. (See
391
+
[Section 4 (Safety and edge cases)](#4-safety-and-edge-cases) for
392
+
the rationale on this trade-off.)
392
393
-**Errors:**
393
394
-`InvalidLeaseStatus` if the lease is not `Active`
394
395
-`MathOverflow` if `elapsed * lease_fee_per_second` overflows `u64`
@@ -614,7 +615,7 @@ Shared starting parameters:
614
615
The holder starts with 1 000 000 000 leased units; the short seller
615
616
starts with 1 000 000 000 collateral units. Each scenario opens with
616
617
`create_lease` and (where relevant) `take_lease` running as described
617
-
in §3.1 and §3.2. Lease fees use the formula in §3.3.
618
+
in [§3.1](#31-the-holder-lists-the-tokens---create_lease) and [§3.2](#32-the-short-seller-takes-the-offer---take_lease). Lease fees use the formula in [§3.3](#33-the-lease-fee-streams---pay_lease_fee).
618
619
619
620
#### 3.8.1 Liquidation - leased asset rallies
620
621
@@ -629,7 +630,7 @@ pot of ~200 000 000 - maintenance ratio is `200/400 = 50%`, far below
629
630
the required 120%. The keeper does not need to call `pay_lease_fee`
630
631
first; `liquidate` settles accrued fees itself.
631
632
632
-
The keeper calls `liquidate` (mechanics in §3.6). At `T + 300`:
633
+
The keeper calls `liquidate` (mechanics in [§3.6](#36-branch-position-underwater---liquidate)). At `T + 300`:
0 commit comments