Withdrawal model
When liquidity providers leave, how much debt can the nodes repay? Change the size of the withdrawal and the sale to follow every SKY.
Set the shock
The pool opens with 1 ZAI and 1 SKY. Liquidity providers withdraw first. A holder then tries to sell ZAI into the remaining pool.
Debt repaid by nodes
Nodes inherit the liquidated loans and sell the seized ZAI together into the remaining pool.
- Loans liquidated
- 15 / 15
- Collateral seized
- 8.50 ZAI
- Debt assumed by nodes
- 3.5000 SKY
- Node debt remaining
- 3.3679 SKY
- Debt still with borrowers
- 0.0000 SKY
- Price after the holder’s sale
- 0.3091 SKY/ZAI
Who holds the SKY?
These balances account for all 3.50 SKY immediately before the nodes sell collateral. SKY held outside the pool is available for repayment only if its holder gives it up.
- Service provider
- 2.5000 SKY
- Liquidity providers’ wallets
- 0.7500 SKY
- ZAI seller
- 0.1109 SKY
- Remaining in the pool
- 0.1391 SKY
Four ways to change the outcome
These four experiments use the reference shock of 75% withdrawn and 0.20 ZAI offered. Each tests a different change to the rules or to buyers’ behaviour. At the original buyers’ valuation nobody takes the offer. Buyers with a higher holding value split their purchases between the pool and the nodes. Nodes offer 2.4286 ZAI per SKY. Seven buyers together can spend 0.40 SKY. Their assumed limits are 0.256 or 0.50 SKY per ZAI. Full retirement would require every holder to tender, including the remaining liquidity providers. Keeping the seed loans exhausts the lending allowance before any customer draw. Applying the same rule at inception also blocks the seed loans. The sensitivity caps the entire loan book at half the proceeds available within a 2% drop in the marginal bid, including the fee. The only pool is funded with borrowed SKY. Independent outside bids would require separate evidence. Nodes can retire the debt in month 12 when customers prefer the service and holders sell enough SKY. Leaving the pool intact keeps part of the debt outstanding. Customers can buy 0.40 divisible jobs per month at one SKY per job. SKY costs one outside unit, the alternative service costs 1.25 units per job and operating inputs cost 0.25. Full retirement also requires the remaining LPs to withdraw and sell. A SKY invoice creates demand for SKY, but many holders cannot pay it. Only the portion operators receive and choose to burn reduces their debt. One month of charges is fixed at the pre-invoice spot. Each payer can sell up to its assessed ZAI. In the separate withdrawal-only case those sales push all fifteen loans into liquidation.Exchange seized ZAI for SKY
Limit new credit to market depth
Earn SKY by selling computation
Collect the idle-capital charge in SKY
Reproduce the model
The simulation starts with 100 ZAI, 100 participants and ten nodes. Borrowers can pledge ZAI, mint SKY and buy more ZAI. Short sellers borrow existing ZAI against SKY. A liquidation transfers both collateral and debt to the nodes.
In this withdrawal experiment, five seed loans supply the pool and ten borrowers spend 2.50 SKY with one service provider. The pool charges 0.30% per swap. Liquidation starts when debt reaches 99% of the collateral’s value. No time elapses for interest to accrue.
To change the agents, interest or settlement rules, download the source and tests. Unzip the folder and run the following with Python 3.10 or later.
python3 -B capital_liquidity_stress.py
python3 -B -m unittest discover -qResearch simulation · 21 November 2026 · Model revision b9f946fb6