Commit 6cf024f
Edward (OpenClaw)
docs(asset-leasing): clarify how the per-second lease fee actually accrues
The §1 lifecycle steps said 'a per-second lending fee accrues...
settled by pay_lease_fee' which made it sound like the short seller
needs to call pay_lease_fee every second. They don't.
Now explained correctly:
- The fee is a number that GROWS continuously against the locked
collateral, but no transactions fire automatically.
- The program computes the accrued fee ON DEMAND: every handler
multiplies (now - last_paid_timestamp) * lease_fee_per_second and
debits the result from collateral.
- The short seller doesn't have to do anything while waiting; fees
auto-settle at return_lease / liquidate / close_expired.
- pay_lease_fee is OPTIONAL - call it to settle the running balance
early so it doesn't eat into the collateral cushion.1 parent f5ebe0e commit 6cf024f
1 file changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
54 | 62 | | |
55 | 63 | | |
56 | 64 | | |
| |||
0 commit comments