CHŌBA: Credit, Owned Liquidity and Yen Markets on Solana

The Liquity–Olympus hybrid: mechanisms, product demand and participant economics

CHŌBA

2026-10-10 · Version 0.2

Abstract

We are committed to building the yen market on Solana ourselves: its credit, its liquidity, its products and the economics for the participants who support it. CHŌBA is the architecture for carrying that work through to a usable market.

CHŌBA combines Liquity-style collateralized credit with Olympus-style protocol-owned liquidity to build a market for yen-denominated products on Solana. Its thesis connects currency issuance, liquidity formation and product demand: speculative FX activity gives the initial market a use; owned liquidity supports yen-product composition; subscription, settlement and payouts can then create recurring demand for JPYdf.

The intended economic cycle includes the capital participants. KASANE-layer participants contribute assets or LP in exchange for KASANE rights. Net earnings from products built on that liquidity are intended to benefit this layer, motivating further capital and liquidity formation. This is the business direction, not a completed revenue-distribution mechanism: Turbo fees currently go to fixed Manager/Sleeve accounts, and staking distributions mint KASANE rather than distribute realized yen profits.

CHŌBA combines borrowing, a reserve and products in three books. The credit book lets a borrower lock collateral and mint JPYdf, a yen-denominated token, at an annual interest rate the borrower chooses. Any holder may redeem JPYdf at face value against the collateral of the lowest-rate loans. Loans that fall below their liquidation threshold are absorbed by a Stability Pool or redistributed to other borrowers. The design follows Liquity v2 and is adapted to Solana's account model. Its conditional avoid class gives borrowers protection from ordinary redemption after a waiting period, with capacity and interest-rate conditions; liquidation and urgent redemption still apply.

The reserve book manages the KASANE token after the reserve mechanics of NetNet: a founding sale at a fixed price, discounted bonds whose price never falls below backing, a bounded buyback at a discount to cash backing, staking distributions that depend on the market premium over backing, and premium sales when the market price exceeds twice backing. Every issuance checks the supply cap and conditions on RFV, the reserve’s book valuation (§5.1).

The product book (Yorozu) offers a USDC/JPYdf exchange on a constant-product pool, capped knock-out Turbo products on USD/JPY, gold and the Nikkei 225, direct Kamino lending, JPYdf Credit in an independent Kamino market, and JPYdf-margin perpetual futures against LP-funded house pools. Futures are a devnet prototype whose security review remains pending (§6.6). KASANE Loopback against sKASANE collateral is staged (§6; §12).

The three books are implemented by four Solana programs, a TypeScript SDK and keepers that repeatedly call maintenance instructions, with external Kamino/Scope integrations and authority exceptions described in §7. Prices enter through Pyth or Chainlink Data Streams into an on-chain cache with a separate freshness limit for each operation. The reserve's own market prices are time-weighted averages built by a rate-limited price-update process (crank) rather than read from the pool's observation ring.

This paper describes the mechanism exactly as the code computes it, including rounding direction, lists every parameter with its build-specific value and status, and states the risks. The software is under development and deployed on devnet for trials (§12).

Contents

1Introduction

Most on-chain credit is denominated in US dollars. A person who wants to hold or spend yen on-chain without selling an asset they own has few options: they can buy a yen token from an issuer who holds bank deposits, or they can borrow one against collateral. CHŌBA takes the second route. A borrower deposits SOL or USDC, borrows JPYdf into their own wallet, and repays with JPYdf to recover the collateral. JPYdf exists only as the counterpart of recorded debt: the program mints it when a position borrows or when interest accrues, and burns it when debt is repaid, redeemed or cancelled by the Stability Pool.1

A credit token needs two things beyond borrowing. The first is a floor: holders must be able to exchange it for collateral worth its face value, otherwise nothing ties its market price to the yen. Redemption provides that floor (see §9.4 for its conditions and limits on market-price support). The second is a place where the token is used and where liquidity for it is supplied. CHŌBA pairs the credit book with a reserve, the KASANE reserve, which raises JPYdf and USDC, provides protocol-owned liquidity, and can supply capital to the Stability Pool. A third book, Yorozu, holds the products that use JPYdf.

Why credit, liquidity and participant economics are one design

The credit layer supports issuance and collateral redemption. The capital layer acquires LP through Bond and LP Bond, so market formation has a protocol-owned capital base. The product layer gives that market a use. The target cycle is participant capital → owned liquidity → FX and yen-product use → net product earnings → KASANE-layer participant benefit → further capital participation. Fees and earnings must be counted after inventory losses, operating costs and reserved payouts; turnover and newly issued rewards are separate measures.

This direction has a testable boundary. The programs implement credit, LP acquisition, capital constraints and separately funded products, but do not yet implement the complete product-profit route to KASANE participants. Section 11 treats that connection and repeat product demand as central next steps. A yen label or a forced swap is insufficient: the product must give users an economic reason to use yen. The borrower opt-out is a paid choice about ordinary-redemption exposure. It concentrates ordinary redemptions on remaining eligible accept debt and reduces the debt reachable by that redemption path; it does not eliminate redemption, liquidation or liquidity risks.

The contribution of this paper is a precise account of what the programs do. Section 2 gives the overall structure. Section 3 covers the credit book, Section 4 prices, Section 5 the reserve and Section 6 the products. Section 7 describes who may call what. Section 8 lists parameters, Section 9 analyses risks, and Sections 10–11 place the work and list what remains. Formulas are written as the code evaluates them; ⌊·⌋ and ⌈·⌉ denote rounding down and up in integer arithmetic, and the endnotes name the function each formula comes from.

2Overview and design principles

Borrowers use SOL or USDC as collateral to borrow JPYdf, and holders redeem JPYdf for collateral. Reserve participants contribute assets, and the reserve supplies liquidity and capital to the Stability Pool. Product users access the exchange, Turbo, direct lending, JPYdf Credit and futures; Loopback is staged (§6). Figure 1 shows the three books and asset destinations. PIL denotes funds for protocol-incentivised liquidity.

The system consists of four programs. jpydf_core holds markets, positions, the sorted redemption list, Stability Pools, the price cache and the JPYdf mint. kasane_reserve holds the reserve, the founding sale, bonds, staking, premium sales, the capital rules that move cash into liquidity, the feed-generic Turbo desks and the asset desk. dtoken_vault issues dTokens, one-to-one receipts for an underlying asset that the vault may lend to an external venue; dSOL, the receipt for SOL, is the SOL collateral of the credit book.2 jpydf_perps implements the product book's perpetual futures, including USD/JPY, with an independent JPYdf house pool per accepted JPY-quoted feed (§6.6). It is a devnet prototype; its security review remains pending.

The product book is implemented by kasane_reserve, jpydf_perps and SDK integrations. Reserve participants’ payments enter kasane_reserve; PIL released from the minting credit book enters the allocation window, and the reserve supplies that book through Stability Pool deposits. Turbo desk cash and futures house-pool capital are separate from reserve cash. Direct USDC lending (§6.3) and the independent JPYdf Credit market (§6.4) send user assets to Kamino without passing through reserve cash. Loopback (§6.5) is staged; it would connect sKASANE collateral to JPYdf debt in that independent market. §6.4–6.6 describe the separate claims and price paths.

Four principles recur throughout the code.

  1. Separate claims. Borrower collateral, Stability Pool deposits, reserve cash, protocol-owned liquidity and reserved product payouts are distinct accounts. The reserve does not count Stability Pool principal or collateral seized by the pool in its valuation, and a product desk's reserved payouts cannot be withdrawn by its funder.3
  2. Integer arithmetic that rounds against the caller. Collateral values and borrowing limits round down; the market's aggregate interest rounds up while each position's interest rounds down, so the aggregate is never below the sum of positions; redemption payouts round down; Stability Pool divisions all round down so that deposits never sum above the pool.4
  3. Permissionless maintenance. Posting prices, accruing and distributing interest, liquidating, executing queued redemptions, cranking time-weighted prices, rebasing, premium sales and most capital moves can be called by anyone. These core and reserve paths use ordinary callers; Turbo observation recording and the staged Loopback index writer have separate authorities (§7).
  4. Bounded work per transaction. A Solana transaction has a size and account limit. The sorted list requires exact neighbour hints instead of an on-chain search, the redemption router takes at most six markets with a common per-market position budget, and staking advances at most one epoch per call.
Three books and asset destinations Credit book Reserve book Product book Borrower SOL / USDC dtoken_vault SOL → dSOL jpydf_core Collateral · debt · SP SOL dSOL USDC JPYdf JPYdf holder Redemption Collateral JPYdf Reserve participants JPYdf / USDC / LP Allocation window PIL (§5.8) kasane_reserve Reserve assets Assets PIL JPYdf → SP Raydium CPMM Reserve-owned LP Liquidity Product user Turbo desk kasane_reserve JPYdf SDK: direct lending User-owned USDC Kamino lending External program USDC
Figure 1: The three books: arrows show asset movement, the blue route is borrowed JPYdf, and only dashed boxes denote external programs. Turbo cash is separate from reserve cash, and direct lending also bypasses reserve cash. The independent Credit market, staged Loopback and futures house pools are described in §6.4–6.6 rather than drawn here. Program responsibilities and routes are described here; see §3.4 for interest allocation, §5.7–5.8 for capital and allocation windows, §6.2–6.6 for products, §3.1 for collateral and Figure 6 for prices.

3JPYdf credit

In this section: §3.1 Collateral · §3.2 Operations and limits · §3.3 Rates and fees · §3.4 Interest accounting · §3.5 Redemption · §3.6 Router and queue · §3.7 Avoid · §3.8 Liquidation · §3.9 Stability Pool · §3.10 Redistribution · §3.11 Shutdown

This section concerns the JPYdf minting credit book. The independent Kamino JPYdf Credit market in §6.4 lends existing supplied JPYdf; it does not mint JPYdf or use this book’s redemption and Stability Pool mechanisms.

Borrowers deposit collateral and borrow JPYdf; JPYdf holders receive collateral through redemption; Stability Pool depositors exchange JPYdf for collateral during liquidations. The table distinguishes these operations, and Figure 2 shows the life of a loan.

Repayment, redemption and liquidation (execution conditions are in the linked sections)
OperationWho starts itWhat they hand overWhat they receiveEffect on the borrower
RepaymentBorrowerJPYdfDebt reduction (collateral withdrawal is separate and conditional)Own debt decreases
Normal redemptionJPYdf holderJPYdfCollateral less the feeDebt and collateral decrease; the fee remains as collateral
LiquidationAnyoneThe liquidator pays no JPYdfLiquidator compensation (none with an empty pool)Debt and collateral are offset or redistributed; surplus collateral remains
Urgent redemptionAnyone after shutdownJPYdfCollateral with a bonus and no feeTarget debt and collateral decrease, including in avoid; debt without collateral is redistributed

A borrower opens a position at a chosen rate, deposits collateral and borrows JPYdf into their wallet. Repayment reduces debt; full repayment is a separate instruction, and collateral withdrawal must satisfy the applicable conditions. Rate changes and adjustments that combine repayment with withdrawal are also separate operations (§3.2).

Figure 2 is the full state diagram, including detailed conditions for the operations. On a first read, follow opening, deposit, borrowing, repayment and withdrawal; the linked sections explain R, G and shutdown conditions.

Arrows from the debt-bearing frame apply to both substates; liquidation without surplus goes straight to D = C = 0. Partial repayments leave the minimum debt. Partial redemptions preserve the current substate unless the labelled zombie transition applies.

3.1Markets and collateral

A market is created per collateral mint, and the protocol registers at most six. Collateral mints must have between 6 and 9 decimals; JPYdf has 6. Each market carries its own risk values: a borrowing loan-to-value λb, a liquidation loan-to-value λl (so the minimum collateral ratio is MCR = 1/λl), a Stability Pool penalty, a redistribution penalty, a critical collateral ratio CCR and a shutdown ratio SCR. These are fixed when the market is created, or set exactly once for a market that was reserved empty; no instruction changes them afterwards.

Risk-value validation requires the following.5

  • 0 < λb < λl,
  • λl > 50 %,
  • λl(1 + penalty) < 1,
  • a Stability Pool penalty between 5 % and 20 %,
  • a redistribution penalty between 10 % and 20 % and not below the pool penalty,
  • 102 % ≤ SCR < MCR < CCR < 200 %.

SOL enters as dSOL. The dToken vault mints one dToken per unit deposited and burns one per unit redeemed; it has no rising share price. Its only price effect is a backing ratio that can lower, never raise, the collateral price:

β=min(109,⌊A·109Λ⌋),pd=⌊p·β109⌋(1)

Here β stores the backing ratio in Appendix A scaled by 109; pd is the adjusted collateral price. A is the underlying held in the vault plus each strategy's valuation capped at its principal, Λ is dToken supply plus pending withdrawals, and p is the raw collateral price.

Deposits, redemptions and claims all require confirmed total assets, including strategies valued in the same slot, to cover liabilities Λ whenever the vault’s underlying balance is below those liabilities. Insufficient backing blocks redemptions and claims even when liquid assets remain. There is no pro-rata or haircut redemption; these exits stay closed until backing is restored by a principal write-off (writeoff key, writeoff_principal), a backstop deposit (anyone, backstop_deposit, released by gov), or both. If the vault's backing cannot be read, the market's oracle latch is set; if the backing valuation is older than 120 s the price is cleared without latching. Anyone may deposit underlying into the vault as a backstop; it counts in the assets A but not in the balance available for withdrawals, and only the vault's governance can release it. A dedicated write-off key may write off a strategy's principal once that strategy is disabled or while allocation is paused; the write-off must leave the backing ratio at or above a stated floor, and it pauses deposits, redemptions and claims.6 USDC is a raw market priced by its own USDC/USD feed; it is not assumed to be worth one dollar.

Position and market state transitions (a) Debt-bearing: frame exits apply to both states Ordinary debt-bearing zombie flag = false zombie flag = true Outside sorted list Normal redemption [0 < D < minimum] Borrow / apply pending debt [D ≥ minimum after operation] Partial repay / redeem Partial redemption Full repay [R] Redeem [D = 0] Liquidate [surplus > 0] Repaid Collateral left; D = 0 Redeemed; D = 0 Collateral left; gate [G] Liquidated Surplus left; D = 0 Withdraw all Withdraw [G] Withdraw surplus D = C = 0 Liquidate [no surplus] (b) Market Live Shutdown Shutdown [TCR < SCR]
Figure 2: Loan states: arrows denote transitions, and arrows leaving the grey frame apply to both states inside it. Zombie is a stored flag, not a continuing inequality (endnote 7). See §3.2 for R (full repayment), §3.5 for G (withdrawal after full normal redemption), §3.8 for liquidation, and §3.11 and Table 1 for shutdown.

3.2Positions and limits

A position belongs to an owner, a market and a 16-bit index, so one owner may hold several positions per market. The instructions are separate: open (with a rate), deposit, borrow, repay, repay in full, withdraw, adjust (repay and withdraw together) and set rate. Prices are stored as micro-yen per whole collateral token. The value of c collateral atoms with d decimals at price p, and the debt limit at a loan-to-value λ in basis points, are

V(c)=⌊c·p10d⌋,Lλ(c)=⌊V(c)·λ104⌋(2)

A borrow requires debt D ≤ Lλb(c); a position is liquidatable when D > Lλl(c). Both floors are conservative for the protocol. The market's total collateral ratio counts only the collateral of debt-bearing positions and the redistribution pool:

TCR=V(Cdebt+Cdef)Dagg+Ddef(3)

A borrow must also leave TCR ≥ CCR, keep the position's debt at or above the minimum debt of 100,000 JPYdf, and keep the protocol's total debt within a protocol-wide ceiling (1,000,000 JPYdf in the current code). A borrow additionally requires that the protocol is not paused, the market is live, the oracle is not latched, and the price is at most 120 s old.

Partial repayment is never blocked by pause or price, but it is silently capped so that at least the minimum debt remains.

Closing a position to zero debt uses a separate full-repayment instruction. On a live market whose oracle is not latched it needs a fresh price and TCR ≥ CCR, and it is refused when it would close the last counted position of the market (Liquity's “only one trove left” rule). The count includes positions with debt and exit-gated positions whose debt was cleared by normal redemption. On a shut-down or latched market none of these three checks applies.

In critical mode (TCR < CCR) an adjustment that withdraws collateral must repay at least ⌈w·p/10d⌉ JPYdf.7

Ordinary collateral withdrawal after repayment is distinct from G, withdrawal after normal redemption has cleared the debt. D = C = 0 does not mean that the account has been deleted.

Table 1 collects the price conditions.

3.3User-set interest rates and the upfront fee

The market has no rate of its own. Each position carries an annual rate in basis points chosen by its owner, between 0.5 % and 250 % in 1-bp steps (the localnet build also accepts 0 %). A new loan, and any increase of debt, pays an upfront fee equal to seven days of interest at the market's debt-weighted average rate after the change:

r‾=⌊W′·109D′⌋,F=⌊a·r‾·604800Y·109⌋(4)

Here, a is the new debt, D′ and W′ are the market's aggregate debt and weighted debt ΣDiri after the change (the fee itself excluded), and Y = 31,536,000 × 10,000 is a 365-day year in basis-point seconds. The borrower passes a maximum fee and the instruction fails if F exceeds it. 8 A rate can be changed at any time; a change within seven days of the previous change (or of opening) is premature and pays the same fee on the whole debt, needs a fresh price and must leave the position within its limit and the market at or above CCR.

3.4Interest accounting

Interest increases borrower debt, and operations touching the market mint JPYdf into the fee vault. The minted amount is distributed to the Stability Pool and PIL, with its destination or timing depending on whether the pool account exists and how much it holds.

Accounting implementation

Interest is simple between updates and compounds only when a position is touched. Each position records its debt and the time of its last update; the market records the aggregate debt Dagg, the weighted sum W = ΣDiri and the time of its last aggregate update. Let Δt be the interval.

The next equation calculates how much interest to add to each position and to the market over the same interval.

ai=⌊Di·ri·ΔtY⌋,I=⌈W·ΔtY⌉(5)

The aggregate interest I is minted as JPYdf into a fee vault whenever any operation touches the market, and added to Dagg and the protocol's total debt. Because the aggregate rounds up and positions round down, the aggregate never falls below the sum of position debts. Upfront fees follow the same path. Distribution is permissionless.

When the market’s Stability Pool account exists, minted interest is split 75 % to SP and 25 % to PIL as follows.

ISP=⌊I·7500104⌋,IPIL=I−ISP(6)

If the market’s Stability Pool account does not exist, the whole amount goes to the PIL vault (“protocol-incentivised liquidity”, Liquity v2's term). If the pool holds less than 1 JPYdf of deposits, its share is held as pending yield rather than diverted. Interest stops at a market's shutdown time. The supply identity Σ(Dagg + Ddef) = total debt = JPYdf supply is asserted in the local test suites.9

3.5Redemption

Any JPYdf holder may redeem JPYdf at face value for collateral. Redemption walks the market's sorted list from the lowest rate upward, reducing each position's debt and paying the redeemer the corresponding collateral, less a fee that stays with the borrower as collateral (Figure 3).

Accept is the class reached by normal redemption; avoid is excluded from it subject to a wait, a cap and other conditions (§3.7). A zombie is a position left below the minimum debt by an earlier redemption: it leaves the sorted list, and the last zombie is visited first at the next redemption.

The fee is Liquity's decaying base rate. With b the stored base rate (1 = 1018), m the whole minutes since the last fee operation and δ = 0.9980764435756288 per minute (a six-hour half-life), the next equation calculates the base rate and fee rate from elapsed time and redemption volume.

b~=⌊b·pow18(δ,m)⌋18b′=min(1,b~+BS),φ=min(1,b′+0.005)(7)

In equation (7), pow18(δ, m) uses repeated squaring and multiplication, rounding each step to the nearest unit at 1018 precision, with ties rounded up (decimal_mul). Elapsed minutes are capped at 525,600,000; only the final product with base rate b is floored to 10−18 units (⌊ ⌋18). The result φ is this redemption’s fee rate, and b′ is the updated base rate. Here B is the JPYdf actually burned by this redemption and S the JPYdf supply after this call's interest mint and before the burn (the ratio is floored at 10−18). These symbols are distinct from the Stability Pool’s running sums and reserve backing and KASANE supply.

The fee is computed on the actual fill: the program first walks a copy of the market to count what it will burn, prices the fee on that amount, and then requires the live walk to burn exactly the same. The redeemer states a maximum fee, and a fee of 100 % is refused. The base rate is initialised at 100 %, so redemption is closed at genesis until the rate has decayed.

For a lot x taken from a position, the collateral paid is

cout=⌊⌊x·10dp⌋·(1−φ)⌋(8)

Both floors favour the borrower.10 The walk visits, first, the market's last zombie (a position left with debt below the minimum by an earlier redemption), then the list from its tail. A position whose collateral is worth less than its debt at the redemption price (ICR < 100 %) is skipped.

A position whose debt falls below the minimum leaves the list and becomes the zombie. One whose debt reaches zero keeps its remaining collateral, which the owner withdraws.

On a live, unlatched market that withdrawal also needs a fresh price and TCR ≥ CCR, and it is refused for the last counted position in the market: the count includes both debt-bearing and exit-gated positions. Shutdown or latch exempts this withdrawal from the price, TCR and last-position checks.

There is no health check on redeemed positions beyond the 100 % skip, so positions between 100 % and MCR are redeemable. Redemption needs a price at most 30 s old, an FX observation less than 30 h old, no oracle latch, and TCR ≥ SCR; it is not blocked by the protocol pause.

Normal-redemption processing order Last zombie, then Lowest-rate accept tail ICR < 100 %? Redeem No Skip Yes Next Amount remains? End No Yes: next candidate avoid: outside normal redemption
Figure 3: Normal redemption visits the last zombie, if present, then the accept list from its lowest-rate tail, skipping candidates with ICR < 100 %. This is a schematic: arrows denote processing order, and the blue path is redemption. See the §3.5 text for stopping conditions involving remaining demand, account budgets and neighbours, and for unlinking.

A remaining request proceeds to the next candidate; an exhausted request ends. Processing also ends at the list/account budget or when required neighbour accounts are missing. Zero-debt linked positions may be unlinked or skipped. Avoid is outside normal redemption (§3.7) but can be reached by urgent redemption after shutdown.

The sorted list is doubly linked through the positions themselves; the market stores only head, tail, length and the last zombie. Insertion takes an exact hint — the two future neighbours, which must currently be adjacent and satisfy prev.rate ≥ rate > next.rate — so among equal rates a newer position sits nearer the tail and is redeemed first. There is no on-chain search from an approximate hint, and a stale hint fails. Liquidated positions are not unlinked at liquidation time (so no neighbour accounts are needed to liquidate); they are removed lazily by a later redemption or by a permissionless unlink.11

3.6The redemption router and queued redemptions

Allocation across markets

When more than one market is registered, a redemption must go through the router, which takes every registered market in registry order. For each eligible market (risk set, not shut down, redemption-grade price, TCR ≥ SCR) it computes a weight equal to the debt not covered by its Stability Pool, bounded by the accept-class debt, and splits the requested amount x in proportion:

wi=min(max(Di−Pi,0),Diacc)x^=min(x,∑jwj),xi=⌊x^·wi∑jwj⌋(9)

The result xi is each market’s redemption quota.

The allocation uses the accept-class debts as fallback weights when every wi is zero. Both the normal and fallback paths allocate x̂, the requested amount capped at the sum of the selected weights. If the fallback weights are also all zero, allocations are zero. Rounding dust and unfilled quotas are not re-allocated. To prevent a caller from omitting positions in one market, every market with a positive quota whose chain does not reach the end of its list must be given the same position budget. One fee is computed from the total actual fill and applied to all markets, and the base rate is updated once.12

From queueing to execution

A holder may instead queue a redemption: the request escrows at least 1,000 JPYdf with a maximum fee, a deadline and a minimum collateral output, and needs no price when it is made. Anyone may execute it later, typically a keeper that posts a fresh price in the same transaction; there is no executor reward. Fills may be partial, and each fill must satisfy the owner's minimum pro rata. The owner can cancel at any time, and a routed request stops executing if the market registry has changed since it was made.

3.7Opting out of normal redemption: the avoid class

In addition to Liquity's design, a borrower may move a debt-bearing position into an avoid class that normal redemption does not reach. The request waits (48 h on the devnet build, 3 s on localnet) and must be completed by anyone within a window (6 h on devnet); total avoid debt is capped at a share of the market's debt (default 60 %).

On completion the position leaves the sorted list and its rate is set to a floor: the time-weighted average accept-class rate (clamped between 0.5 % and a maximum) plus a premium that rises with the avoid share, capped at +5 % and at 250 %. The floor is re-applied by anyone without a fee.

Borrowing is not allowed while in the class, and the owner may leave it at no cost. The avoid class does not protect against liquidation or urgent redemption.

On every build the time-weighted accept rate updates only while accept-class debt is at least min(10 × minimum debt, debt ceiling / 10), which is 100,000 JPYdf in the current code; below that the average keeps its last value (initially zero), so the floor is that value or 0.5 %, whichever is higher, plus the premium.13

Requesting requires a non-zombie position, and completion rechecks the cap and rate limit. Zero debt or becoming a zombie also causes the request to lapse. Borrowing during a valid pending request restarts the wait. An expired request is cleared by an operation, not automatically by time passing. The owner may cancel during the completion window as well.

Avoid request and exit states are shown in Figure 4.

Avoid request and exit states accept: normal redemption applies No request Waiting Ready 6 h window avoid Outside list Request 48 h Complete Borrow: restart wait Owner cancels Expired: clear on operation Owner leaves avoid → accept
Figure 4: Arrows show state transitions from an avoid request to exit; the blue path is entry into avoid. The position remains accept during the wait and completion window, and without a completion operation in that window the request lapses without entering avoid. The times shown are devnet values; see §3.7 for conditions, Table 3 for values and endnote 13 for the relation to stored state.

3.8Liquidation

Anyone may liquidate a position whose debt, after its accrued interest and pending redistribution are applied, exceeds Lλl(c). The liquidator pays no JPYdf; the price must be at most 120 s old, and neither the pause nor the oracle latch nor a shutdown blocks liquidation. Before the offset, the market's pending interest is distributed, so savers who absorb the loss also receive it. With debt D, collateral C, spendable pool deposits A (the pool always keeps 1 JPYdf), pool penalty bSP and redistribution penalty bR, define the collateral needed to cover x JPYdf with penalty b:

Mb(x)=⌊x·10d·(104+b)p·104⌋(10)

Mb(x) is the collateral amount covering debt and its penalty, used in the split below.

The split, which follows Liquity v2's _getOffsetAndRedistributionVals, is then

Do=min(D,A),cSP=⌊C·Do/D⌋,g=min(⌊cSP/200⌋,M0(150000))cpool=min(cSP−g,MbSP(Do)),s1=cSP−g−cpoolDr=D−Do,cr=min(C−cSP+s1,MbR(Dr))(11)

The pool burns Do JPYdf from its deposits and receives cpool collateral; the liquidator receives g, 0.5 % of the pool's portion capped at the collateral worth 150,000 JPYdf; debt Dr and collateral cr are redistributed (§3.10); any remaining surplus stays on the liquidated position as debt-free collateral that the owner can withdraw. When the position's collateral is worth less than Do(1 + bSP), the pool absorbs the shortfall. When the pool is empty, liquidation is pure redistribution and pays the caller nothing. Liquidation handles one position per instruction. A liquidation that would need redistribution is refused if no other position has stake.14

3.9The Stability Pool

Depositors’ JPYdf decreases when it is burned in liquidation, while collateral gains are recorded for them. Interest distributions also accrue to depositors and compound into deposits unless claimed.

Accounting implementation

Each market has one Stability Pool of JPYdf deposits. It follows Liquity v2's product–sum scheme without epochs. The pool keeps a running product P (initially 1036), a collateral-gain sum S, a yield-gain sum B, and a scale counter. With total deposits T, an offset of Do JPYdf that brings Co collateral updates

S′=S+⌊P·CoT⌋,P′=⌊P·(T−Do)T⌋,B′=B+⌊P·yT⌋(12)

This update records the reduced deposits and accumulated gains. Here S is the collateral-gain sum and B the yield-gain sum, distinct from the same symbols in redemption and the reserve. The last update is for a yield y.

While P′ is below 1027, the numerator is multiplied by 109, the value is recalculated, and the scale counter increases, repeating as many times as necessary. The closing S and B of the old scale are stored in their own account; additional scale changes within the same call leave intermediate zero sums without accounts. A deposit d0 made at snapshot (P0, S0, scale k0) is worth

d=⌊⌊d0·P/P0⌋109(k−k0)⌋,gS=⌊d0·[(Sk0−S0)+⌊Sk0+1/109⌋+⌊Sk0+2/1018⌋]P0⌋(13)

d is the deposit remaining after offsets; gS is the depositor’s collateral gain.

The deposit is counted as zero once it is more than eight scales old, and gains are capped by the pool's balances; the yield gain uses B in the same way. All divisions round down, so compounded deposits never sum above T and gains never exceed what the pool holds. Unclaimed yield is compounded into the deposit unless the saver chooses to claim; collateral gains are kept for the saver. After each deposit the saver's withdrawals and collateral claims are locked for 32 slots; this replaces the reference implementation's same-block guard. Pool operations need no price and are not affected by the pause.15

3.10Redistribution

Debt and collateral not absorbed by the pool are shared among the remaining debt-bearing positions in proportion to stake. Their shares wait in the default pool and are applied to each position’s debt and collateral when it is next touched.

Accounting implementation

Debt and collateral that the pool does not absorb are shared among the market's debt-bearing positions in proportion to their stake, using Liquity's per-unit reward snapshots. Let Lc and Ld be the accumulated collateral and debt per unit stake at precision 1027, and e the error carries.

The next equation calculates how much collateral not absorbed by the pool is added per unit of stake.

Lc′=Lc+⌊cr·1027+ec∑σ⌋(14)

The updated Lc is the accumulated collateral allocation per unit of stake.

The same calculation applies to debt. A position's stake is its collateral scaled by the ratio of total stakes to total collateral at the last redistribution. Redistributed amounts wait in a default pool, earning no interest, until each position is next touched and takes its share. Redistributed debt enters TCR immediately.16

3.11Shutdown and urgent redemption

If a market's TCR is strictly below SCR on a price at most 60 s old (with an FX observation under 30 h), anyone may shut it down. Shutdown is irreversible. Repayment and liquidation remain possible. Interest stops at the shutdown time; borrowing, rate changes, avoid operations and normal redemption stop; the sorted list is no longer maintained. Unlike the reference design, an oracle failure never causes shutdown, so a feed outage remains recoverable. In a shut-down market anyone may redeem against any position, including avoid-class positions, without fee and at a 2 % collateral bonus:

κ=⌊V(c)·10410200⌋,xburn=min(x,κ,D)cout={cxburn≥κmin(M200(xburn),c)otherwise(15)

xburn is the JPYdf actually burned and cout is the collateral received, bounded by the collateral remaining.

Urgent redemption needs a price at most 60 s old and ignores health, pause and latches. Debt left on a position with no collateral is redistributed to the remaining stakes.17

4Prices

4.1Feeds and the price cache

External prices reach the credit book through one cache account per feed. Two vendors can fill it. A Pyth update is posted through the Pyth receiver program at full verification, checked for the configured feed identifier, a positive price, an exponent between −18 and 0, a publish time not in the future and a confidence interval of at most 0.5 % of the price, then normalised to 18 decimals; it expires 120 s after its publish time. A Chainlink Data Streams report is verified by a cross-program call to the Chainlink verifier and checked for an observation at most 60 s old and, for crypto reports, bid and ask each within 0.5 % of the price. The vendor is recognised by the feed identifier, and each cache accepts only its own vendor. An update no newer than the cache is ignored. Posting and refreshing are permissionless.18

Each market is bound once to an asset feed (for example SOL/USD), and the protocol to one yen feed with a flag for its orientation. The market price in micro-yen is composed in 256-bit arithmetic with a single final floor:

p=⌊a·f10da+df−6⌋(JPY per USD),p=⌊a·10df+6f·10da⌋(USD per JPY)(16)

The result p is the market’s micro-yen price per collateral token. Here, a and f are the asset and FX prices with da and df decimals.

When the FX leg is fresh the two observations must be within 30 s of each other. For dToken markets the result is then multiplied by the backing ratio (1). The market records the price, the time it was last updated (the older of the two legs while FX is fresh) and an expiry.19

Turbo uses a separate price cache for each underlying Pyth feed. Its one-feed posters can set --max-age and --market-schedule; a scheduled closure idles posting rather than treating the last quote as current. Turbo freshness and reopened-market settlement are in §6.2 and endnote 38. Credit uses the distinct Scope spot/EMA composition in §6.4, not the minting book’s yen conversion.

4.2Freshness by operation

Different operations accept different price ages (Table 1). Operations that add risk accept the trading limit; normal redemption, which transfers collateral at the oracle price, requires a tighter one; shutdown and urgent redemption sit between. Operations that only reduce a user's own risk need no price.

Table 1: Minting credit book: price conditions per operation (same in the localnet and devnet builds).
OperationMax. price ageFX observationBlocked by latch
Borrow, withdraw with debt, adjust, premature rate change120 s< 96 h (via expiry)yes
Closing repayment; withdrawal from a position whose debt a normal redemption brought to zero120 s< 96 h (via expiry)no (no price check while latched or after shutdown)
Liquidation120 s< 96 h (via expiry)no
Normal redemption (direct, routed, queued execution)30 s< 30 hyes
Shutdown trigger60 s< 30 hyes
Urgent redemption; administrator resume60 s—no
Deposit, partial repayment, any other debt-free withdrawal, Stability Poolnone—no

Foreign-exchange markets close at weekends. The yen leg is therefore allowed to age: while it is not fresh but less than 96 h old (72 h of closure plus a 24 h soft freeze) the market uses the last mid, with its expiry bounded by that limit; beyond 96 h the market price is cleared and a protocol-wide FX latch is set, which only the administrator can clear with a fresh FX price. An asset feed that has been silent for 24 h can be latched by anyone. There is no fallback source and no deviation breaker on ordinary updates; switching a feed requires a proposal, a delay (12 h on the devnet build) and a price within 1 % of the old feed unless declared an emergency.20 Because anyone may post any newer signed update within an operation's window, a caller can choose among recent prices; the windows above bound that choice.

4.3Reserve prices: the KASANE and FX cranks

The reserve needs two market prices: KASANE in JPYdf, and USDC in JPYdf. Both are pools on Raydium's constant-product program.

KASANE/JPYdf (τ, kasane_oracle) and USDC/JPYdf (τFX, fx_oracle) each have independent spot, stored-value, accumulation and average checks. Only τFX enters USDC valuation. Accumulation in equation (17) uses the previous stored value; the stored value is first clamped to ±5 % of its previous value and, if the published average is positive, then clamped to ±10 % of that average. These limits apply to the stored value, not movements of the observed spot itself.

The reserve keeps its own accumulator, fed by a permissionless crank that must be a top-level instruction preceded only by compute-budget instructions. On each crank at time tk with observed spot ŝ (vault balances net of accrued pool fees):

Σk=Σk−1+sk−1·(tk−tk−1)uk=clamp(s^,sk−1±⌊0.05·sk−1⌋)sk={clamp(uk,τpub±⌊0.1·τpub⌋)τpub>0ukτpub=0τ=⌊Σk−Σjtk−tj⌋,|s^−τ|≤0.1·τ(17)

Here uk is the value after the first clamp, and τpub is the published average before this crank updates it (zero when unpublished or invalidated). Clamp widths are floored to integers. The accumulator Σ is a u128 integer; its addition and differences wrap modulo 2128, and τ uses integer division rounded down. The result τ is the reserve’s time-weighted average price, also subject to the divergence condition against the current spot. Here checkpoint j is the newest one at least one window old, taken from a ring of 16 buckets of half a window.

On the devnet build the window is 30 minutes and a formed average stays usable for 5 minutes. A crank closer than 30 s (1 s on localnet) to the previous one does not sample or advance the accumulator, ring or sample time, but if a published average exists and the current spot differs from it by more than 10 %, it still invalidates that average (twap set to 0, price_until capped at now), so cranking first cannot keep a diverged price live. This applies to both reserve averages (KASANE and FX pool). A gap longer than 5 minutes (CRANK_STALE) since the previous crank restarts the accumulator (localnet: a 15 s window, 1 s minimum sampling interval, and 60 s validity and restart threshold). The checkpoint ring spans 4 h (112 s on localnet); that span is not the restart threshold.

Paths that use the price — bonds, premium sales, the asset desk — do not sample; they re-read the pool and refuse to run if the current spot is more than 10 % from the average. Because the spot at crank time is sampled, separate transactions bundled as swap → crank → reverse the swap can put a transient price into the stored value, which the next crank accrues. Holding the pool away for most of the window is not required (see §9.7 for the residual risk). The keeper cranks every 60 s. Figure 6 shows both price paths.22

The reserve’s USDC rate compares the haircut oracle value with the FX pool average:

ρFX=min(⌊o·(104−h)/104⌋,τFX)(18)

The result ρFX is the rate at which the reserve counts USDC in JPYdf terms. Here, o is JPY per USDC from the USDC/USD and yen feeds and h a haircut of 100 bp when both legs are fresh and within 30 s of each other, or 300 bp for a degraded yen quote at most 72 h old; otherwise there is no rate.

With no FX pool bound, or during initial warm-up, the oracle term alone is used. If divergence invalidates the first window, or a formed average expires or is invalidated, the USDC side counts as zero rather than falling back to the oracle. Priced paths reject unavailable FX valuation when USDC assets are held.23

An earlier implementation read the pool's own observation ring. That ring advances only on swaps, so in quiet periods no average could form; worse, the pool prices from its vault balances times the elapsed time, so a direct token transfer into a vault followed by one swap back-dates the transferred price over the whole quiet gap.21

Credit and reserve price paths Credit: collateral price Asset / FX feeds Pyth · Chainlink Verified cache Yen price eq. (16) dToken: apply β USDC: own feed Operation checks Reserve: independent updates and averages per pool CPMM spot ŝ Stored value s Update: ±5 % Time accumulation Previous s × Δt KASANE/JPYdf: τ USDC/JPYdf: τFX Freshness / divergence |ŝ − τ| ≤ 10 % × τ USDC valuation: eq. (18) USDC / FX oracle feed Haircut oracle_rate min(oracle, τFX) Valuation rate ρFX τFX
Figure 6: Schematic price paths for credit collateral and the reserve: arrows show data flow and processing order, the blue route computes collateral prices, dashed frames are external inputs and solid frames are internal processing or guards. The reserve’s two averages are independent, and only the FX average enters USDC valuation. Accumulation restarts after a gap longer than 5 minutes (60 s on localnet) since the previous crank; 4 h / 112 s is the checkpoint ring span. See §3.1 for collateral adjustment, §4.1 and equation (16) for yen conversion and FX direction, §4.3 and equations (17)–(18) for freshness, accumulation, haircuts, warm-up and invalidation, and Table 4 for devnet and localnet durations.

5The KASANE reserve

In this section: §5.1 Valuation and issuance · §5.2 Founding sale · §5.3 Bonds · §5.4 Buybacks · §5.5 Staking and distributions · §5.6 Premium sales · §5.7 Capital rules · §5.8 Allocation windows · §5.9 Team option and asset desk

KASANE is the reserve's token; sKASANE is a plain token whose units are shares of staked KASANE. All three tokens, and USDC, use 6 decimals. The reserve's accounting unit is JPYdf, counted one for one; nothing in the reserve asserts that JPYdf trades at one yen. The unnumbered table Changes in reserve assets and KASANE supply shows the flows described in this section.

Price, valuation and payout compared
MeasureWhat it isWhere it is used
Market price (average τ)The crank’s time-weighted market price in JPYdfPrice formation, distributions, premium sales
Discounted-sale reference price psalemax(τ, ŝ), where ŝ is the KASANE/JPYdf pool spot from the same instruction’s priced pool readBonds, asset desk
RFVThe book valuation of reserve cash, liquidity positions and other counted assetsBacking and issuance limits
Backing per KASANE (RFV / supply)Reserve valuation divided by total KASANE supplyBond price floor, distribution rate, premium-sale condition, asset-desk price conditions
Cash per KASANEBook JPYdf cash / total KASANE supplyBuyback pricing basis
Buyback payout98.5 % of the cash backing corresponding to the KASANE sold, rounded down in integer arithmeticBuybacks subject to budget and execution conditions

Backing per KASANE is a book measure, not a right to redeem (§9.6).

5.1Reserve value and backing

The reserve's value (RFV, after the reference design's “risk-free value”) is the sum of four terms, recomputed from live accounts on every priced or issuing instruction:

RFV=cash+VLP(KASANE/JPYdf)+⌊(cashUSDC+qdUSDC)·ρFX⌋+VLP(USDC/JPYdf)VLP=⌊2⌊xy⌋·ℓΛ⌋(19)

Here cash is the book JPYdf balance changed only by program flows; x, y are the pool's vault balances net of fees (for the FX pool, the USDC side is first converted at ρFX), ℓ the LP tokens the reserve owns and Λ the pool's LP supply.

In the ideal fee-free constant-product model, 2√(xy) is unchanged by a swap that moves the pool price. In the implementation, fees left in the pool and rounding can raise it. This valuation credits the KASANE side of the reserve's own pool at a value derived from the product of the balances. LP counts only if it is withdrawable.

dUSDC held in the dToken vault counts as qdUSDC = its amount times min(β, 1) less a 2 % haircut, and only while the vault's valuation is under 60 s old.

Stability Pool deposits and collateral the pool has seized are not counted.24

Backing per KASANE, with S the total KASANE supply (nothing excluded — unvested notes, staked KASANE and KASANE inside the pool all count), is

B=⌊RFV·106S⌋Strict:S+Δ≤min(RFV,Smax)Paid:S+Δ≤SmaxRFVpost≥{RFVpre+Δ(RFVpre<S)S+Δ(RFVpre≥S)(20)

Here B is backing per KASANE, S is KASANE supply before issuance, and Δ is the amount newly minted. RFV is the valuation at the check; RFVpre and RFVpost are the valuations before and after payment. B and S are distinct from the same symbols in redemption and the Stability Pool.

Smax = 30,000,000 KASANE applies to every issuance path. The strict condition applies to the founding sale and staking distributions, requiring backing of at least 1 JPYdf per KASANE after issuance. It does not keep it any higher. JPYdf, USDC and LP bonds, the team option and premium sales use the paid condition. If RFV before payment is below supply, RFV after payment must exceed its prior value by at least the amount minted, Δ. Otherwise, post-issuance supply must not exceed RFV after payment. Paid issuance from an under-backed state can pass while backing remains below 1 JPYdf.25

5.2The founding sale (Genesis)

Asset accepted

It accepts JPYdf only (the SDK can swap USDC to JPYdf in the same transaction).

Minted or burned

KASANE is minted for buyers and for the pool’s initial liquidity. Of the raise R, ⌊0.7R⌋ becomes reserve cash and the rest, with ⌊(R − ⌊0.7R⌋)/3⌋ newly minted KASANE, seeds the KASANE/JPYdf pool at the sale price given below. A separate permissionless instruction creates that pool at an address derived from the reserve, so it cannot be created first by someone else, and all LP goes to the reserve.

Price

The price is fixed at 3 JPYdf per KASANE, computed on each wallet's running total as ⌊total/3⌋, so splitting a contribution loses nothing.

Budget

A contribution that would exceed the wallet cap or the hard cap is rejected whole.

The absolute amounts in the code are development values: the source states that they are “not approved launch terms”. The localnet build uses a hard cap of 3,000 JPYdf, a wallet cap of 120 JPYdf and a minimum of 900 JPYdf; the devnet build uses a hard cap of 1 JPYdf with no separate wallet share, so one contribution fills the sale.

When it can be claimed

The sale opens when the reserve is initialised and lasts seven days. Anyone may finalise the sale once it reaches its hard cap, or after the deadline if it has raised at least the minimum (30 % of the cap). Buyers' KASANE vests linearly over five days from finalisation. If the minimum is not reached by the deadline, each buyer can reclaim their full contribution without anyone's approval, even while the reserve is paused.26

5.3Bonds

Asset accepted

A bond sells KASANE, vesting linearly, for JPYdf, USDC, or LP tokens of the reserve's own KASANE/JPYdf pool. Bonded LP becomes protocol-owned liquidity and is never counted as cash.

Minted or burned

KASANE is issued for the buyer’s note, subject to the paid issuance condition.

Price

With τ the live KASANE average, ŝ the KASANE/JPYdf pool spot from the same instruction’s priced pool read, and v the JPYdf value of what is paid (USDC at ρFX, LP at its share of 2√(xy)), and backing B computed before the payment is added, the next equation gives the bond price and KASANE payout.

psale=max(τ,ŝ)π=max(⌊psale·970010000⌋,B)k=⌊v·106π⌋(21)

The result π is the bond price and k is the note’s KASANE amount. The buyer sets a minimum payout.

Budget

Bonds share a budget per eight-hour period of max(1,000 KASANE, S/400); the code labels this a localnet budget.

When it can be claimed

Vesting lasts two days on the devnet build (3 s on localnet). The note is a separate account the owner claims from; claims continue while the reserve is paused.27

LP Bond transfers ownership of existing LP to the protocol; it does not by itself add assets to the AMM.

5.4Buyback (inverse bond)

Asset accepted

A holder may sell k KASANE back to the reserve.

Minted or burned

The reserve burns the KASANE it receives.

Price

The JPYdf payout is calculated from cash backing as follows.

y=⌊⌊k·cashS⌋·0.985⌋(22)

The payout is 98.5 % of cash backing, not of RFV: liquidity positions and USDC do not enter the price. A live KASANE average is required, but only as a condition; it does not enter the price, and there is no requirement that the market trade below backing.

Budget

Payouts in an eight-hour period are limited to 1 % of book cash, fixed at the first capital operation of the period. The unused part is kept as an addition to the cash floor (§5.7).

When it can be claimed

The buyback pays JPYdf against the KASANE burned. Buyback is blocked while the reserve is paused.28

5.5Staking and distributions

Asset accepted

KASANE is staked in exchange for sKASANE shares.

Minted or burned

  • Distributions are newly minted KASANE, not income earned from outside.
  • The base is total KASANE supply, not the amount staked.
  • A share goes to a market-making account; not all of it goes to stakers.

Price

Staking converts KASANE into sKASANE shares against the book amount staked K, the distribution already reserved for the current epoch E, and a virtual share of 1 KASANE on both sides that defeats share-price inflation:

s=⌊a·(N+106)K+E+106⌋,a=⌊s·(K+106)N+106⌋(23)

The left-hand result is the sKASANE shares received on staking; the right-hand result is the KASANE received for shares on unstaking. Here N is the share supply (the first stake is one to one).

Budget

The next equation gives the epoch distribution rate and the amount that fits within the issuance limit.

r=min(rmax·τ−B0.75B,rmax),rmax=0.45%R=min(⌊S·r⌋,max(min(RFV,Smax)−S,0))(24)

r is the epoch distribution rate and R the newly minted distribution bounded by issuance room. Here too, B is backing and S is total KASANE supply. The φ below is the allocation window’s payout rate, distinct from the redemption fee rate. With rounding omitted, r is 0 up to τ / B = 1, reaches 0.45 % at 1.75 and then stays flat.

After strict valuation succeeds, for each epoch r is computed at 10−9 precision and rounded down, and R = 0 when the reserve is paused, when no KASANE average price is live, when τ ≤ B, or when sKASANE supply, the staked amount or total KASANE supply is zero. The base is total KASANE supply, not the amount staked, and the full rate is reached when the average is at least 1.75 times backing; at that rate the distribution is up to 1.35 % of supply per day (derived). Distributions are bounded by the issuance condition (20). A share σ of each distribution goes to a market-making account: initially 25 %, later ⌊25 % · (1 − φ)⌋ where φ is the payout rate of the last confirmed allocation window (§5.8). That share is minted only while an allocation window is measuring (the window is active and start ≤ now < end); outside a window, the rebase mints only the staking share and the market share is not accrued anywhere.29

When it can be claimed

Unstaking has no lock and works while paused. Epochs last eight hours from seeding. When a due epoch passes strict valuation, the reserved distribution becomes staked principal and the next distribution is minted in advance; a permissionless rebase advances at most one epoch per call, and missed epochs are skipped, not replayed. Strict valuation runs before the distribution calculation. If it fails, rebase and stake fail. For valuation-unavailable errors, unstake defers the epoch update and computes the payout from the staked amount, without adding the pending distribution to principal; other errors still fail.

The shape of the rate in equation (24) is shown in Figure 7.

Epoch distribution rate in equation (24) Epoch distribution rate r (%) 0.45 % 0 0 1 1.75 r = 0 r Price / backing τ / B
Figure 7: The blue curve shows the epoch distribution rate in equation (24), with rounding omitted. Arrowheads indicate increasing coordinate axes, not asset movement. Actual minting is subject to equation (20) and the zero-distribution conditions in §5.5; this rate is not a return to stakers.

KASANE and sKASANE are not deployed borrowing collateral in the minting credit book. The staged Loopback path would deposit sKASANE in the independent Credit market; it first needs normally vested and claimed Bond inventory, seeded pools and formed Scope averages (§6.5).

5.6Premium sales

Asset accepted

KASANE is sold into the pool and JPYdf proceeds enter reserve cash.

Minted or burned

The reserve mints ⌊⌊Kpool · ℓ / Λ⌋ · 25 / 104⌋ KASANE. Kpool is the pool’s KASANE balance net of fees, ℓ the LP held by the reserve (counted only when withdrawable), and Λ the pool’s LP supply. The reserve’s share of KASANE is rounded down, then 0.25 % of that amount is rounded down again.

Price

When the KASANE average τ exceeds twice backing, the reserve sells KASANE into the pool with a minimum output of 99 % of its value at the average. The trigger and minimum still use the average, not the discounted-sale reference price.

Budget

Anyone may trigger a premium sale at most once an hour (16 s on localnet). The paid issuance condition is checked after the swap, with the pool balances re-read.

When it can be claimed

The sale proceeds enter reserve cash in the swap.30

Changes in reserve assets and KASANE supply
OperationReserve inflow / outflowSupply changeIssuance condition
Founding saleJPYdf in; cash and KASANE/JPYdf LP remainMint +Strict
BondJPYdf, USDC or LP inMint +Paid
Premium saleJPYdf inMint +Paid
BuybackJPYdf outBurn −—
Staking distributionNo asset inflowMint +Strict
Team optionJPYdf inMint +Paid

See §5.1, equations (19)–(20), for valuation and issuance conditions; §5.2–5.7 and §5.9 for operation conditions; and §5.7 and Figure 8 for deployment and recalls.

5.7Protocol-owned liquidity and capital rules

These rules determine when reserve cash can be deployed and when it must be recalled.

The reserve holds all LP of the KASANE/JPYdf pool created at the founding sale, plus any LP bonded to it; no instruction withdraws that liquidity. The USDC/JPYdf pool is bound once by the administrator.

Reserve cash is protected by a cash floor per currency: a minimum L and a refill target T ≥ L (T > L for a positive configured base floor; T = L = 0 is allowed), with an epoch limit on gross movement and the unused buyback budget added to both JPYdf base thresholds. When cash falls below L the reserve enters a refilling state until it reaches T. Equal zero base thresholds therefore remain equal after that addition.

While refilling it cannot deploy cash and permissionless rules recall it — burning FX pool LP, withdrawing from the Stability Pool, or redeeming dUSDC — until the target is met. Recalls run even while the reserve is paused and stop only on a separate administrator switch.

Deposits run only while unpaused and only from cash above T, and not at all after a floor-refill recall in that epoch, even with cash above T. An FX pool rule recall always records this closure; Stability Pool and dUSDC recalls record it only when the refill need is positive (need > 0). Cash can also return when Stability Pool holdings exceed a lowered target or dUSDC holdings exceed the configured ratio (including full recall at a zero ratio). These returns do not close the epoch when no floor refill is needed. The administrator's separate FX liquidity withdrawal is distinct from the rule recall.

FX pool, Stability Pool and dUSDC vault deposits must also leave RFV ≥ S(1 + margin). In integer arithmetic this is RFV ≥ S + ⌊S · margin⌋, with margin expressed as a ratio. A dUSDC deposit reloads the vault state and valuation after the CPI and checks RFV after the haircut. FX pool deposits additionally require the pool's spot, its average and the oracle mid to agree within an administrator-set bound of at most 5 %. Deposits into the Stability Pool follow an administrator policy (target, maximum move and margin) and are not counted in RFV.31

Cash-floor and refill states are shown in Figure 8.

Cash-floor refill states C: cash balance L: floor / T: refill target Normal Not refilling Refilling No deployment C < L C ≥ T Deploy [C > T; guards] L ≤ C < T: keep state Positive base floor: T > L Zero base floor: T ≥ L
Figure 8: UML cash-floor states: cash C below floor L enters refilling, and reaching target T returns it to normal. Arrows show state transitions and deployment that preserves normal state; the blue transition starts refilling. See the §5.7 text for threshold settings, pause, post-recall restrictions and exceptions, movement budgets, RFV and destination checks, and addition of the buyback budget.

5.8Allocation windows

Market-making rewards are paid in windows. The administrator opens a window and moves released PIL JPYdf (§3.4) into escrow; the KASANE budget is the market-making share σ of distributions accrued during the window. After the window, the administrator publishes a Merkle root whose totals may not exceed the budgets times the measured payout rate φ. The measurement — time-weighted in-range depth against targets on each side — is computed off-chain by the SDK. Claims open after a delay from publication (ALLOC_DELAY, one day on devnet). There is no on-chain objection or cancellation instruction; claims and vested withdrawals continue while the reserve is paused. JPYdf is paid at claim, KASANE vests linearly over the window's length. After the claim period, anyone may expire the window, which burns unclaimed KASANE and returns unclaimed JPYdf to the PIL vault; expiry also burns any market-side KASANE that earlier builds minted outside a window (market_owed above the open windows' budgets), leaving other windows' budgets and vested claims untouched.32

5.9Team option and asset desk

Team option

A single holder, initially set by the administrator, may buy KASANE from the reserve at a strike of 1 JPYdf per KASANE — the code calls this a development strike — up to a cumulative 15 % of circulating supply (circulating = supply − bond_vault.amount − market_vault.amount), vesting over 30 days from the founding sale's finalisation. Already exercised KASANE is included in circulating supply, so the maximum corresponds to 15/85 ≈ 17.65 % of non-team circulating supply. Both vault balances are excluded in full, including vested KASANE that remains unclaimed in the bond vault. The payment is added to cash and the paid issuance condition applies. Transferring the holder requires signatures from both the current and the new holder.33

Asset desk

The asset desk, after NetNet's RWA desk, sells KASANE inventory deposited in advance (it never mints).

The price is discounted by at most 7.5 % from the discounted-sale reference price psale = max(τ, ŝ). With H = max(recorded backing high-water mark, current backing B), price = ⌊psale × (1 − discount)⌋ and must be positive and at least ⌊1.2 × H⌋. For payment value v in JPYdf, the KASANE payout is k = ⌊v / price⌋, and fee = ⌈k × max(H − 1, 0)⌉ in JPYdf goes to reserve cash. Prices are JPYdf per KASANE; amounts and prices are rounded to their smallest on-chain units.

For USDC payment, its JPYdf value is rounded down using the reserve FX rate, and the fee is converted back to USDC rounded up.

The remaining payment goes to the registered recipient (sleeve) for that currency, outside RFV. The current manager alone may replace both the JPYdf and USDC recipients. After a sale, supply must be ≤ Smax and RFV must not fall below its pre-sale value. Only the administrator may reset the high-water mark to current backing. Anyone may call poke_asset_desk_hwm to raise the mark when current backing exceeds it. The current manager or the administrator may replace the manager. KASANE sent to the desk account beyond its inventory plus what is owed to buyers may be burned by anyone (skim). With their own signature, the manager may set discount and tilt (sum ≤ 7.5 %), the target USDC ratio and the inventory limit up to the hard cap, and halt or resume sales. The desk starts halted.34

6Yorozu products and the exchange

In this section: §6.1 Exchange · §6.2 Turbo · §6.3 Kamino lending · §6.4 JPYdf Credit · §6.5 Staged Loopback · §6.6 Futures

Yorozu (萬屋, “the general store”) groups Turbo, direct USDC lending, JPYdf Credit and futures, with the staged KASANE Loopback path. The USDC/JPYdf exchange that borrowers and the reserve rely on is described with them.

6.1The USDC/JPYdf exchange

The exchange is a Raydium constant-product (CPMM) pool; users swap directly against it, and the SDK builds the swap instructions and quotes them with the pool's fee rounded up. The reserve provides liquidity to it only through the capital rules of §5.7; there is no administrator deposit. Because swaps and CDP instructions can share a Solana transaction, the SDK can deposit USDC collateral, borrow JPYdf and sell it for USDC atomically, and in reverse buy only the JPYdf shortfall, repay in full and withdraw collateral. The SDK marks this combined path as a prototype whose production configuration is not implemented; direct borrowing and repayment do not depend on the pool.35

6.2Turbo

Purchase

Turbo desks are feed-generic: seeds = [b"turbo", price, inverse] binds each desk to a price-cache account and price orientation. The 2026-10-05 devnet desks use USD/JPY, Metal.XAU/USD (gold) and Equity.Index.JP225/JPY (Nikkei 225). A series fixes a direction, a strike K that is also the barrier, units per card u, a cap per card, a premium not above the cap, a maximum number of cards, a start and an expiry at most 30 days after the start. Series terms and card capacity are desk-specific devnet configuration, not universal product parameters.

Cards are sold before the start. A buyer of q cards pays V = premium · q, plus ⌈V/100⌉ spread to the desk and ⌈V/20⌉ fee; the desk must reserve cap · q of its cash at sale, so every card's maximum payout is funded before it is sold, and the buyer's loss is limited to what they paid.

Each desk uses its own administrator-funded capital; reserve cash does not fund it. Maximum series liability is cap × max cards. The planner’s default initial prefund is (cap − premium) × max cards, with premiums credited to desk cash as cards are bought; the program enforces reserved ≤ cash at each sale, not full-series prefunding at creation. Only unreserved desk cash can be withdrawn.

Observation and knock-out

A call is knocked out when an observed price is at or below the strike; a put when it is at or above. A permissionless checkpoint consumes archived observations in strict predecessor order; closed-market Chainlink v8 observations advance the cursor without pricing. On devnet, the operator-observations path lets the designated operator archive fully verified Pyth observations with record_pyth. It rejects publication ages above 120 s. Series creation requires price.last_observation > 0 and inherits that cursor; each checkpoint requires previous_observed_at to match, so a recorded predecessor cannot be skipped.

At an open observation at or after expiry, the barrier check precedes expiry settlement at that same observation. The barrier is x ≤ K for calls and x ≥ K for puts; hitting it knocks out the series.

A purchase needs an open, unexpired price whose publication age is at most 60 s (including exactly 60 s). Pyth observations are available only while the feed publishes. Scheduled closures idle observation attempts; a barrier crossing or expiry during closure is resolved at the first valid recorded observation after reopening, including its price gap. The devnet observation configuration is 300 s normally and 30 s near the barrier, expiry or pending exits; these are sampling intervals, not a promise to capture every market tick (§7).

Exit

If a card survives to expiry, it pays

I=min(cap,⌊max(x−K,0)·u109⌋)(25)

This is for a call (K − x for a put), with x and K scaled by RATE_SCALE = 1_000_000_000 and u in micro-JPYdf per quote-unit move. Gold is a fixed-rate quanto: the capped JPYdf intrinsic value is Δprice × units / RATE_SCALE, rounded down. No USD/JPY price enters this payout; the desk carries gold/yen correlation risk, bounded by the payout cap. JP225 is yen-native; USD/JPY and its inverse use their own feed/direction.

Holders may request an early exit, settled at the first open observation at or after the request’s 2-second delay at 99 % of intrinsic value; at expiry the 1 % spread is waived. The desk's pause stops new series and sales but not settlement, exits or payouts.

In a knocked-out series, only an exit effective at or after KO has payout 0 under the KO rule. An exit effective before KO is calculated separately using its corresponding settlement observation price (fixing).

Fees

On any exit a fee of 5 % of the profit over the holder's cost is taken:

g={⌊0.99I⌋earlyIat expiry,paid=g−⌊max(g−cost,0)20⌋(26)

The result “paid” is what the holder receives at exit, after the 1 % early-exit spread and the fee on profit.

Fees are split equally between two fixed accounts by a permissionless instruction.36

Turbo observations and exits are shown in Figure 9.

Turbo observations and settlement (a) Exit Exit request First open observation at / after effective time Exit settlement 2 s delay Exit effective time < KO time: corresponding fixing Exit effective time ≥ KO time: payout 0 (b) Expiry: cards still held Expiry First open observation at / after expiry Barrier hit? KO: payout 0 Expiry settlement Yes No (c) Barrier after start Open observation after start Barrier hit KO: payout 0
Figure 9: Turbo’s early-exit, expiry-settlement and KO paths: boxes are processing stages, arrows show processing order, blue marks requested exit, and the expiry portion concerns cards still held. Spacing is schematic; only the exit delay specifies a duration, with exit fixed at the first open observation at or after 2 s from the request, while closed observations do not fix a price. For Pyth desks, an expiry or barrier crossing during closure is resolved by the first valid observation after reopening, including the gap. Exits effective before KO retain their corresponding fixing calculation; see §6.2 for observation and precedence conditions and endnote 36 for implementation.

6.3Lending through Kamino

Who holds the underlying and the cTokens
RouteWhere the underlying is heldWho holds the cTokens
Direct to KaminoThe user supplies USDC to the Kamino reserve; CHŌBA holds nothingThe user’s own account
Through the dToken vaultThe vault holds underlying assets and supplies part to the Kamino reserveThe vault’s strategy account (the user holds dTokens)

Direct lending

Lend USDC builds Kamino's plain deposit and redeem instructions for a pinned Kamino USDC reserve, so that the user supplies USDC and holds the resulting cTokens in their own account; CHŌBA holds nothing in this path. Kamino's instructions carry no minimum-output argument, so the quoted output is an estimate until execution.

Lending through the vault

Separately, the dToken vault can place part of its underlying in the same Kamino reserve through an adapter that uses the same cToken path, caps each withdrawal at the reserve's available liquidity, and values its position from the reserve's recorded state without refreshing it; the value counted toward backing is capped at principal, and yield is swept to a treasury rather than to dToken holders.37

6.4JPYdf Credit

JPYdf Credit is an independent Kamino klend lending market, separate from the minting credit book (§3), direct USDC lending (§6.3), the Stability Pools and reserve cash. Users supply existing JPYdf to its JPYdf reserve; borrowers deposit test USDC as collateral in a klend obligation and borrow that supplied JPYdf. Repayment returns JPYdf to the reserve; withdrawal depends on reserve cash and obligation health. The SDK refreshes reserves and the obligation immediately before the native lending operation.

Scope prices the reserves in USD. JPYdf spot price composes the Raydium CLMM’s USDC per JPYdf spot (entry 511) with Pyth USDC/USD (510); its comparison chain uses the one-hour EMA of that CLMM spot (509) × USDC/USD (510). The test-USDC reserve uses entry 510. These are distinct from the reserve book’s CPMM cranks. Devnet price and TWAP maximum ages are 300 s and the spot/TWAP divergence limit is 10 %. A seeded pool and an EMA are price inputs, not a guaranteed yen peg.

As configured on devnet on 2026-10-05, the JPYdf deposit limit is 10,000 JPYdf, the borrow limit and outside-elevation-group limit are each 5,000 JPYdf, and net debt withdrawals are capped at 5,000 JPYdf per 3,600-second interval. JPYdf has 0 % collateral LTV and liquidation threshold. The test-USDC reserve has a 1,000 test-USDC deposit limit, no USDC borrowing, 50 % collateral LTV and a 60 % liquidation threshold. Limits are aggregate reserve configuration; actual borrowing also needs available cash, current prices and health headroom. They are devnet trial values, not production limits or individual allocations.

The credit price keeper refreshes the CLMM, USDC/USD and EMA entries and updates the Pyth USDC/USD push when needed. Failure or stale source publication can close new credit operations; a successful refresh does not make an old publisher timestamp new. Native klend liquidation and liquidation bonuses apply to unhealthy obligations, separately from the minting book’s offset/redistribution rules.40

6.5KASANE Loopback (staged)

KASANE Loopback is staged, not live on devnet as of 2026-10-05. It would use sKASANE as collateral in the same independent Credit market, borrow JPYdf, buy KASANE through the reserve’s CPMM and stake it, then deposit the resulting shares for another bounded loop. It uses its own vanilla klend obligation (tag 0, id 1), separate from JPYdf Credit (id 0), so the two desks do not mix the wallet’s collateral and debt. Transaction size can split a loop into steps; quoted swaps, staking and additional credit remain conditional on execution.

The planned USD price chain is KASANE CLMM spot (JPYdf per KASANE, entry 508) × staking redemption index (KASANE per sKASANE, 506) × USDC per JPYdf (511) × USDC/USD (510). The TWAP comparison chain substitutes the one-hour EMAs 507 and 509 for the two CLMM spots. Entry 506 is keeper-written Scope FixedPrice, not an independently observed market price: its ratio is (staked + 1,000,000)/(share supply + 1,000,000) in raw units, floored to 12 decimals. Pending undistributed emissions do not count as redeemable collateral.

The staged sKASANE reserve configuration is 30 % LTV, a 40 % liquidation threshold, a 20 sKASANE deposit limit and no sKASANE borrowing; its planned liquidation bonus range is 2–8 %. The SDK further caps target LTV at 25 %. These are staging values, not deployed collateral availability, and the JPYdf debt side still shares the Credit reserve’s caps and liquidity. Bond inventory must vest and be claimed normally (two-day devnet vesting), before seeding, staking and forming the Scope averages; rehearsal fixtures do not remove that wait on devnet.

The loop is reflexive: KASANE price supports borrowing, while borrowed JPYdf can buy KASANE and affect that price; falling prices can force sales into thin seeded pools. Both price chains depend on the keeper-written staking index, its feed-admin authority and timely refresh. Separate obligations do not isolate these common price and liquidity risks.41

6.6House-pool perpetual futures

jpydf_perps offers long and short perpetual futures with JPYdf margin. Each accepted JPY-quoted feed has one independent house pool, JPYdf vault, LP share mint and market. The house takes the other side of every position; its capital is separate from the KASANE reserve and other feeds' pools. Anyone may deposit JPYdf for LP shares. LP NAV is vault cash minus the sum of positive trader equities, including capped PnL and unpaid fees; share issuance and redemption use this NAV and round down. LP pricing requires every active position to be supplied, with at most 16 positions per market.

Leverage and fees

Opening, increasing a position or removing margin requires positive equity, max(entry notional, current notional) ≤ equity × maximum leverage, and equity strictly above maintenance margin. The code accepts maximum leverage up to 20× and requires maintenance_bps × max_leverage < 10,000. The devnet staging settings use USD/JPY 10×, Nikkei 225 5× and Toyota 7203 3×, with maintenance margins of 5 %, 10 % and 15 % respectively. Each position's entry notional is capped at 2,000 JPYdf; new entry-notional open interest on each side is limited to 20 % of that pool's cash capital (vault balance minus trader margin).

Entry prices apply a spread above the oracle for longs and below it for shorts: 10, 50 and 100 bps for the respective devnet feeds. A 10-bp trade fee applies to added entry notional on opening/increasing and to current notional on closing; the closing fee cannot exceed equity remaining after any liquidation reward. Both sides accrue an hourly fee index on entry notional: 1 bp per hour base, plus 2 bps per hour × |long OI − short OI|/(long OI + short OI) on the heavier side only (zero skew when total OI is zero). Index increments scale with elapsed seconds and round down at 1012 precision; charged fees round down to micro-JPYdf. Accrual continues through closures and pauses. These fees accrue to the house pool's LPs, rather than being funding transfers between traders.

Liquidation, capped profit and LP exits

Equity is margin plus signed PnL capped at the profit limit, minus accrued fees. Anyone may liquidate when equity is nonpositive or at or below maintenance margin on current notional. Settlement floors gross equity at zero: a trader's loss is limited to posted margin, with no debt beyond it; uncollectible gap deficits fall on LP NAV. On devnet, an underwater permissionless close pays the caller 5 % of positive remaining equity, rounded down; exhausted equity pays no reward. The profit cap is 25 % of entry notional. Anyone may also close a position when raw profit reaches that cap; the cap applies even before such a close.

LP withdrawals cannot take trader margin and must leave cash capital at least equal to the greater of total reserved profit caps and 25 % of gross entry-notional OI on devnet. Admission also requires total profit caps to be funded. LPs therefore bear trading losses and can face locked withdrawals even with positive NAV.

Prices, authority and status

The program accepts the JPY-quoted USD/JPY, Nikkei 225 and Toyota feeds through the core-owned price cache; it has no USD-feed or quanto conversion. Price-dependent operations require a matching feed, positive price normalized to 18 decimals, an open market, an unexpired cache, publication age strictly below 60 s, and no future publication or observation timestamp. Closures or stale prices block opens, increases, closes, liquidations, margin removal and LP valuation; reopening gaps enter settlement at the next usable price. Adding margin and accruing indexes need no fresh price.

The pool administrator can pause/unpause; changing validated risk parameters requires no open positions. Pause blocks opens, increases, margin removal and LP deposits; fresh-price closes, liquidations and LP withdrawals remain available, as do margin additions and accrual. USD/JPY futures are deployed on devnet as a prototype. The settings above are devnet staging values, not production commitments. The futures security review has not been done yet.43

7Keepers, roles and operations

Core and reserve keepers call maintenance instructions, with signed transactions journalled before sending so uncertain outcomes can be reconciled by signature. Most of these instructions are permissionless. Vault claims beyond liquid buffers still need an allocator or guardian recall. Turbo Pyth archives are recorded by the designated operator; checkpoints and fee distribution remain permissionless. Each desk has its own Turbo keeper and feed poster. One-feed posters support --max-age and --market-schedule; a closed schedule idles posting/observation attempts while existing checkpoints drain. The devnet Turbo cadence is configured at 300 s normally and 30 s near barriers, expiry or pending exits; the keeper planner’s code default without that configuration is 60 s. The credit price keeper separately refreshes Scope and Pyth USDC/USD. The staged Loopback index writer additionally needs Scope feed-admin authority. These paths cannot all be described as unprivileged or as using the same journal.38

Health distinguishes intentional market-closed idling and reopening grace from the health reasons source_stale, stale_market, physical_work and needs_reconciliation. Turbo reports archive/series cursors, historyCaughtUp, history age and scheduled reopening; Credit health includes Scope source age and keeper errors. A healthy idle process alone does not prove that purchases, credit or settlement can execute. Endnote 38 names the health implementation.

Table 2: Who may do what.
RoleBook / scopePowers
AnyoneCredit book
  • post and refresh prices;
  • accrue and distribute interest;
  • liquidate;
  • redeem and execute queued redemptions;
  • JPYdf holders may request queued redemptions and cancel their own requests (no Position required);
  • shut down a market below SCR and redeem urgently;
  • complete avoid requests and apply floors;
  • latch a silent feed;
AnyoneReserve book
  • crank reserve prices;
  • finalise and seed the founding sale;
  • bond;
  • stake and unstake;
  • buy back;
  • rebase;
  • premium sale;
  • capital rule deposits and recalls;
  • expire allocation windows;
  • burn excess KASANE in the asset desk (skim);
  • raise the high-water mark to current backing with poke_asset_desk_hwm;
AnyoneProduct book (Turbo)
  • Turbo checkpoints and fee distribution;
AnyoneProduct book (futures)deposit liquidity and withdraw owned LP shares within locks; accrue fee indexes; liquidate unhealthy positions or close positions at the profit cap
Position ownerProduct book (futures)open, increase, add/remove margin and close, subject to the price, risk and pause checks in §6.6
Pool administratorProduct book (futures)create the market; pause/unpause; change validated risk parameters only with no open positions
AnyonedToken vault
  • refresh vault backing
Position ownerCredit book
  • open,
  • deposit,
  • borrow,
  • repay,
  • withdraw,
  • adjust,
  • set rate,
  • request or leave avoid,
GuardianShared
  • pause the credit book or the reserve (cannot unpause);
GuardiandToken vault
  • in the dToken vault, pause flows, disable a strategy and return funds from it;
  • sign strategy recalls, as the allocator can
Administrator (gov)dToken vault
  • configuration (buffer target and floor, allocation step, allocator cooldown, valuation max age, withdrawal delay), mint cap, treasury, role assignment and adding strategies;
  • unpause (pausing requires the guardian role);
  • release the backstop
AllocatordToken vault
  • allocate to strategies (allocate) and return funds to the vault (send_to_vault); the guardian may also sign send_to_vault
Write-off authority (writeoff)dToken vault
  • write off principal after disabling the strategy or pausing allocation, subject to a backing-ratio floor
AdministratorCredit book
  • create markets (risk values then fixed);
  • clear oracle and FX latches with a fresh price;
  • propose and confirm feed switches after a delay;
  • set avoid parameters within bounds;
  • withdraw fees in excess of undistributed interest and release PIL;
AdministratorShared
  • unpause;
AdministratorReserve book
  • configure the reserve's FX feeds, pool binding, cash floor, capital policies and haircut exclusions;
  • open and publish allocation windows;
  • withdraw FX pool liquidity;
  • set the initial team holder;
  • reset the asset-desk high-water mark to current backing;
  • replace the asset-desk manager
Current and new team-option holdersReserve book
  • transfer the holder with both signatures
Asset-desk managerReserve book
  • set discount and tilt (sum ≤ 7.5 %), the target USDC ratio and the inventory limit up to the hard cap;
  • halt and resume sales;
  • replace the asset-desk manager;
  • replace both the JPYdf and USDC sale recipients (sleeves) with the current manager's signature alone
Desk administratorProduct book (Turbo)
  • create Turbo series,
  • fund the desk and withdraw unreserved cash,
  • pause sales,
  • set fee recipients once
Designated observation operatorTurbo / core oraclerecord verified Pyth observations on the operator-observations path
Market owner / feed adminIndependent Credit; staged Loopbackconfigure klend reserves / Scope mappings; the staged index writer updates FixedPrice with feed-admin authority

In the dToken vault, gov controls configuration, caps, role assignment, unpausing and backstop release; the allocator allocates to strategies and recalls funds. The guardian can sign recalls as well as pause flows and take emergency action, while writeoff can write off principal subject to conditions. The gov key alone cannot pause flows; the guardian role is required.

The pause of the credit book blocks only borrowing, withdrawals that leave debt, adjustments and avoid requests; repayment, redemption, liquidation and Stability Pool operations continue. The reserve's pause blocks new issuance (sale contributions, bonds, premium sales, the team option), buybacks, staking, deposits of capital and distributions, while claims, unstaking, refunds, rebases and recalls continue. The programs themselves enforce no timelock on administrator actions other than feed switches; the project's documents describe the administrator as a multisig with a time lock, which is an operational arrangement. Initialisation of the credit book and of the dToken vault must be signed by the program's upgrade authority, and the reserve's first administrator must be the credit book's administrator; the programs are deployed as upgradeable programs.39

8Parameters

The tables below list program/build parameters. Independent Credit limits are the dated devnet reserve configuration in §6.4; staged Loopback limits are in §6.5; futures code limits and devnet staging settings are in §6.6. Turbo series terms are read per desk and series rather than inferred from planner examples.

The programs are built with exactly one of two features, localnet or devnet; a build with neither does not compile, and there is no separate production feature. The tables give each value as implemented. The status column uses four terms: code — a constant with no stated qualification; development — the source or project documents call it a development or localnet value; rehearsal — set by the devnet bootstrap script and described there as not a production parameter; proposed — the project documents propose a different production value pending approval. Every value may change.

Table 3: Credit book.
Parameterlocalnetdevnet buildStatus
Markets registered, at most66code
Borrower rate range0–250 %0.5–250 %code
Upfront fee period7 d7 dcode
Rate-change cooldown7 d7 dcode
Minimum debt per position100,000 JPYdf100,000 JPYdfcode
Protocol debt ceiling1,000,000 JPYdf1,000,000 JPYdfcode; proposed
Interest share to Stability Pool75 %75 %code
Redemption fee floor0.5 %0.5 %code
Redemption base-rate half-life6 h6 hcode
Initial redemption base rate100 %100 %code
Minimum queued redemption1,000 JPYdf1,000 JPYdfcode
Avoid: wait3 s48 hcode
Avoid: completion window5 s6 hcode
Avoid default: cap60 %60 %code (administrator-settable within bounds)
Avoid default: premium2 %2 %code (administrator-settable within bounds)
Avoid default: average-rate ceiling15 %15 %code (administrator-settable within bounds)
Accept-rate average starts at accept debt of100,000 JPYdf100,000 JPYdfcode
Liquidator compensation: rate0.5 %0.5 %code
Liquidator compensation: cap≤ 150,000 JPYdf≤ 150,000 JPYdfcode
Allowed Stability Pool penalty5–20 %5–20 %code
Allowed redistribution penalty10–20 %10–20 %code
Stability Pool minimum1 JPYdf1 JPYdfcode
Stability Pool deposit lock32 slots32 slotscode
Urgent redemption bonus2 %2 %code
dSOL market: λb60 %rehearsal
dSOL market: λl75 %rehearsal
dSOL market: SP penalty5 %rehearsal
dSOL market: redistribution penalty10 %rehearsal
dSOL market: SCR110 %rehearsal
dSOL market: CCR133.34 %rehearsal
Test-USDC market: λb80 %rehearsal
Test-USDC market: λl90 %rehearsal
Test-USDC market: SP penalty5 %rehearsal
Test-USDC market: redistribution penalty10 %rehearsal
Test-USDC market: SCR110 %rehearsal
Test-USDC market: CCR111.12 %rehearsal
Table 4: Prices.
Parameterlocalnetdevnet buildStatus
Max. price age: trading120 s120 scode
Max. price age: redemption30 s30 scode
Max. price age: shutdown and posting60 s60 scode
Pyth confidence≤ 0.5 %≤ 0.5 %development
Chainlink bid/ask band≤ 0.5 %≤ 0.5 %development
Asset/FX observation skew30 s30 scode
FX closure72 h72 hdevelopment
FX soft freeze24 h24 hdevelopment
FX latch at96 h96 hdevelopment
FX age for normal redemption and shutdown30 h30 hcode
Silent feed latch24 h24 hcode
Feed switch delay2 s12 hcode
Feed switch continuity bound1 %1 %code; development
Reserve average: window15 s30 mincode
Reserve average: min. sampling interval (early cranks still invalidate divergence)1 s30 scode
Reserve average: validity60 s5 mincode
Reserve average: restart gap (strictly exceeded)60 s5 mincode
Reserve average: checkpoint ring span112 s4 hcode
First stored-value clamp: band around previous value5 %5 %code
Spot–average divergence10 %10 %code
FX haircut: fresh1 %1 %development
FX haircut: closed3 %3 %development
Minimum pool depth: base10.01development
Minimum pool depth: JPYdf100.1development
Table 5: Reserve and products.
Parameterlocalnetdevnet buildStatus
KASANE supply cap Smax30,000,00030,000,000proposed (draft)
Epoch8 h8 hcode
Founding sale: price3 JPYdf3 JPYdfdevelopment
Founding sale: duration7 d7 ddevelopment
Founding sale: vesting5 d5 ddevelopment
Founding sale: cash/LP split70/3070/30development
Founding sale: hard cap (JPYdf)3,0001development
Founding sale: wallet cap (JPYdf)1201development
Founding sale: minimum raise900 JPYdf0.3 JPYdfdevelopment
Bond discount3 %3 %code
Bond vesting3 s2 dcode
Bond budget per 8 hmax(1,000, S/400)max(1,000, S/400)development
Buyback: share of cash backing98.5 %98.5 %code
Buyback: budget per 8 h1 % of cash1 % of cashcode
Distribution: max. rate per epoch0.45 %0.45 %code
Distribution: full atτ ≥ 1.75 Bτ ≥ 1.75 Bcode
Market-making share σ, at most25 %25 %development
Premium sale: threshold2 B2 Bcode
Premium sale: clip0.25 %0.25 %code
Premium sale: floor99 %99 %code
Premium sale: interval16 s1 hcode
Team option: strike1 JPYdf1 JPYdfdevelopment
Team option: cap15 %15 %development
Team option: vesting16 s30 ddevelopment
dUSDC haircut in RFV2 %2 %development
Allocation: delay before claims open2 s1 ddevelopment
Allocation: window16 s8 hdevelopment
Allocation: claim period16 s30 ddevelopment
Asset desk: max. discount7.5 %7.5 %code
Asset desk: price floor1.2 × peak B1.2 × peak Bcode
Asset desk: vesting3 s2 dcode
Turbo: max. tenor30 d30 dcode
Turbo: exit delay2 s2 scode
Turbo: fee5 %5 %code
Turbo: spread1 %1 %code
Turbo: early-exit spread1 %1 %code
Turbo: profit fee5 %5 %code
dToken vault default: buffer20 %20 %code (governance-settable)
dToken vault default: valuation age1 d1 dcode (governance-settable)
dToken vault default: withdrawal delay1 d1 dcode (governance-settable)

9Risk analysis

In this section: §9.1 Collateral and liquidation · §9.2 Oracles · §9.3 Redemption · §9.4 JPYdf price · §9.5 Stability Pool · §9.6 RFV and KASANE price · §9.7 Pool manipulation · §9.8 Liquidity · §9.9 Software and administration · §9.10 Operations · §9.11 Regulation

This section states the risks a user or observer should consider. It is not exhaustive.

9.1Collateral price and liquidation

A borrower whose collateral falls in yen terms until debt exceeds the liquidation limit loses the collateral beyond what the penalty allows to be left as surplus. A fall in SOL/USD or a rise of the yen against the dollar both lower the yen price of SOL. Prices move between keeper updates; the 120 s limit means a liquidation may act on a price up to two minutes old.

When the Stability Pool is empty, liquidation redistributes debt and collateral to other borrowers, raising their debt without their action; it pays the liquidator nothing, so it relies on keepers running. A liquidation that needs redistribution is refused if no other position has stake, which can leave an unhealthy position in place in a small market. The debt ceiling and minimum debt make a market with few positions likely in early operation.

JPYdf Credit uses klend’s collateral LTV and liquidation threshold, not the minting book’s Stability Pool. Interest, JPYdf’s pool-derived USD price and collateral value can erode health; liquidation bonuses reduce what a borrower recovers. The dated limits in §6.4 bound admission, not losses.

9.2Oracle failure and staleness

There is one feed per leg and no fallback. If the asset feed stops, borrowing and redemption stop after their windows; if it is silent for 24 h it can be latched, and only the administrator can resume it. If the yen feed is closed, the last mid is used for up to 96 h, with a wider haircut in the reserve, and then the protocol-wide FX latch halts price-dependent operations. With a frozen yen feed, borrowing can continue for up to 96 h if asset-feed freshness and other conditions hold, whereas normal redemption stops at 30 h (Table 1); this deliberate asymmetry is inherited from jpydf-core's oracle rules for parity with the reference design, and borrowing during that window still requires a crypto (asset-leg) price at most 120 s old, so only the yen leg may be stale.

Pyth updates carry no market-status flag, so a market closure appears only as ageing. A confidence bound of 0.5 % and a feed-switch continuity check are the only deviation checks; a wrong but well-formed price within those bounds would be accepted. Any caller may choose among recent signed prices within an operation's window.

On the devnet deployment prices come from Pyth; the Chainlink verifier is the devnet program and the code states that mainnet remains disabled.

Turbo on closed gold or index markets has gap risk: no observation prices the closed interval, and the first valid observation after reopening can knock out or fix an expired card at a discontinuous price. Sampling can miss intermediate barrier touches. Gold’s fixed-rate JPYdf quanto does not convert the USD gold move at current USD/JPY; the desk carries gold/yen correlation risk within its payout cap. Index-data access and licensing are dependencies: indices require a separate Pyth entitlement. A schedule or a working currency feed does not establish that entitlement or future feed availability. §6.2; endnote 36.

9.3Redemption of low-rate loans

A borrower who sets a low rate is among the first to be redeemed. Redemption reduces their debt at face value and removes collateral at the oracle price less the fee, which remains with them; they lose their exposure to that collateral at a moment they did not choose, and a partly redeemed position may be left below the minimum debt as a zombie.

The avoid class removes a position from normal redemption only after a waiting period, at a rate set by the protocol, within a cap, and not from liquidation or urgent redemption.

9.4JPYdf's market price

Nothing guarantees that JPYdf trades at one yen. Redemption supports the price only when it is open: the base rate starts at 100 %, so redemption is closed at launch until it decays; it requires a price at most 30 s old and TCR ≥ SCR; its fee rises with redemption volume; it pays in collateral, not yen; and it cannot reach avoid-class debt.

JPYdf cannot be redeemed for yen in a bank account. Liquidity for exchanging JPYdf is limited to the pools that exist.

9.5Stability Pool deposits

Depositors give up JPYdf in liquidations in exchange for collateral. When a liquidated position's collateral is worth less than its debt, depositors receive less value than they lose. Collateral received is exposed to its price.

A deposit that absorbs very large losses shrinks and is counted as zero once more than eight rescalings have passed since it was made. Interest income depends on borrowers' chosen rates and on market debt.

9.6Reserve valuation and the KASANE price

Backing per KASANE is a book measure, not a redemption right. The founding sale and staking distributions require backing of at least 1 JPYdf after issuance. Bonds, the team option and premium sales require RFV to increase by at least the amount minted when RFV before payment is below supply; otherwise, post-issuance supply must not exceed RFV. In the former case, a backing deficit can remain after issuance (equation (20)). RFV counts the reserve's own KASANE/JPYdf liquidity at 2√(xy), which includes a KASANE component, and counts USDC at a haircut rate. Immediately after the founding sale, backing is below the sale price (§5.2).

Buybacks pay 98.5 % of cash backing, not of RFV, and are limited to 1 % of cash per eight hours.

Staking distributions and the team option (at a strike of 1 JPYdf) mint new KASANE and dilute holders who do not stake; distributions are not revenue. Premium sales add supply into the pool. KASANE's market price can fall below backing and can move quickly in a thin pool.

Staged Loopback would add reflexivity between KASANE’s market price, sKASANE collateral value and JPYdf borrowing. Borrow-funded buys can move the same thin markets that support collateral prices; falling prices, liquidation and unwind selling can reinforce each other. Staking issuance is not outside revenue and does not remove this risk (§6.5).

9.7Pool manipulation

The reserve's prices come from thin pools. The crank first clamps the stored value to ±5 % of its previous value and then, if the published average is positive, to ±10 % of that average, requires a window of 30 minutes (devnet), refuses averages more than 10 % from the current spot, and requires priced paths to re-check the spot.

Separate transactions bundled as swap → crank → reverse the swap can store a transient spot and accrue it over the time until the next crank. Repeatedly winning the sampling race can move the average without holding the price away for most of the window. If divergence clears the published average to zero, the ±10 % clamp no longer applies and only the ±5 % limit remains. The owner accepted this residual risk because priced operations remain closed while the average is unpublished, and publication requires the spot to return within ±10 % of the average. Storing a clamp reference separately from the published average and defining recovery conditions are deferred to D5.

The FX rate takes the lower of the haircut oracle rate and the pool average, and fails closed once the average lapses, which can make USDC-denominated backing count as zero and stop priced reserve operations.

Credit and staged Loopback also depend on separately seeded CLMM pools and Scope’s spot/EMA composition. Thin liquidity can make those prices manipulable; a one-hour EMA and the configured divergence gate do not prove fair value. The reserve’s CPMM crank clamps do not protect these CLMM inputs (§6.4–6.5).

9.8Liquidity

Exits depend on liquidity that may not be there: pool depth for swaps, Stability Pool deposits whose recall follows floor-refill or policy-target rules, the dToken vault's buffer (a withdrawal beyond it waits a delay of one day by default), and Kamino's available liquidity.

dToken backing below one lowers the collateral price of dToken markets. Vault redemptions and claims require confirmed total assets, including strategy valuations from the same slot, to be ≥ liabilities whenever the underlying buffer balance is below liabilities. Insufficient backing closes these exits even when liquid assets remain. There is no pro-rata or haircut redemption; these exits stay closed until backing is restored by a principal write-off (writeoff key, writeoff_principal), a backstop deposit (anyone, backstop_deposit, released by gov), or both.

Credit supply is a claim on lending inventory, not guaranteed immediate withdrawal; borrow caps are not funded liquidity. Staged Loopback additionally needs KASANE/JPYdf swap depth for entry, repayment and liquidation-driven exits. Separate obligations share the same JPYdf reserve cash (§6.4–6.5).

Futures LP exits require fresh prices and leave the profit/exposure lock funded. Trader losses beyond margin cannot be collected; reopening gaps can reduce LP NAV, while stale or closed feeds delay liquidation and settlement (§6.6).

9.9Software, upgrades and administration

The programs are new software. They are upgradeable, and administrators can pause, configure feeds and capital policies, release PIL funds, publish allocation roots, reset the asset-desk high-water mark and replace its manager; the programs enforce no timelock on these beyond feed switches. The repository records no independent security audit of these programs.

They depend on external programs — Raydium's CPMM (whose devnet program identifier is fixed in the code), Kamino, the Pyth receiver and the Chainlink verifier — whose behaviour and upgrades are outside the project's control. Allocation measurements are computed off-chain and published by the administrator.

Credit adds Raydium CLMM and Scope dependencies and market-owner/feed-admin configuration risk. In staged Loopback the staking index is keeper-written FixedPrice; either an incorrect value or an outdated redemption ratio can misprice collateral even when the entry has been refreshed (§6.5).

The futures program's security review has not been done yet. Its pool administrator controls pause and may change validated parameters only with no open positions (§6.6).

9.10Operations

Freshness windows, liquidations, queued redemptions, reserve averages, Turbo settlement and Credit Scope prices depend on keeper progress and source availability. An outage can stop purchases and credit or delay settlement. Permissionless checkpoints do not replace the authorized Turbo observation recorder or the staged staking-index writer; journals protect their covered sends against duplicates, not downtime. Health must distinguish scheduled closures from stale sources and stalled work.

9.11Regulation

The legal and regulatory treatment of yen-denominated tokens, collateralised lending, reserve tokens and FX products differs across jurisdictions and may change. This paper does not assess it.

Gold, equity and index-linked Turbo also raise commodity/equity/index derivatives, distribution and data-licensing questions, especially when offered to Japanese residents. Whether the product, operator and proposed access require particular authorisations or restrictions must be confirmed with counsel before broader use; no legal classification or conclusion is made here. Endnote 36 records the repository’s feed-expansion risk analysis.

10Related work

Liquidity formation and historical stress. IRON's official June 2021 report describes LP withdrawal followed by a destabilizing redemption feedback loop; it is not evidence of a liquidity-only failure. Incident report [15]. Liquity's Chicken Bonds [16] pursue permanent POL, and V2 PIL [17] uses interest revenue to subsidize liquidity. Olympus liquidity bonds [18] acquire LP tokens. These precedents motivate KASANE's integrated approach; its contribution is the yen credit, conditional borrower protection, capital and product design on Solana, not the invention of POL. Owning LP still leaves capital and inventory risk.

Liquity v2. The credit book follows Liquity v2 [1–4]: borrower-chosen interest rates with an upfront fee of seven days of average interest, a debt-weighted aggregate interest account, redemption against the lowest-rate positions with a decaying base rate and a 0.5 % floor, zombie positions below the minimum debt, liquidation that offsets against a Stability Pool with a product–sum accounting and redistributes the remainder, critical and shutdown collateral ratios, urgent redemption, and a router that splits redemptions across collateral branches by debt not covered by each Stability Pool. The code cites the reference functions it follows, via an EVM implementation it names jpydf-v2. The adaptations are Solana-specific (exact sorted-list hints, lazy unlinking, a fixed per-market position budget in the router, a slot-based deposit lock, surplus left on the position), or deliberate changes: shutdown does not follow oracle failure, liquidation compensation is value-capped, and the avoid class is added.

NetNet and Olympus-style reserves. The reserve follows the mechanics of NetNet [5–9], which its documentation describes as Olympus v1-style treasury, bond and staking mechanics with its own buyback, issuance and fee rules [5]. The project reviewed NetNet's verified contracts [9] and adopted the founding sale with a 70/30 cash and liquidity split and five-day vesting, bond pricing (now max(⌊0.97 × max(τ, ŝ)⌋, backing)), buyback at 98.5 % of backing with a 1 % budget, a distribution rate that rises with the premium to backing up to 0.45 % per eight hours at 1.75×, premium sales above twice backing, a team option and an RWA-style asset desk. Its changes include share-based staking instead of a rebasing token, buyback on cash backing only, an absolute supply cap and separate strict and paid RFV conditions for issuance, per-note accounts instead of scanning a user's history, a price crank in place of a pool oracle, and the exclusion of KASANE and sKASANE from the minting credit book’s deployed collateral; staged sKASANE collateral in independent Credit is described in §6.5. Turbo takes its product shape from NetNet's Turbo [8].

Infrastructure. Swaps and protocol-owned liquidity use Raydium's constant-product program [10]. Prices come from Pyth [11] or Chainlink Data Streams [12]. Credit’s price inputs additionally use Raydium CLMM and Scope (§6.4). Lending uses Kamino's klend [13]. The reserve's price accumulator uses the cumulative-price construction of Uniswap v2; the top-level-only crank and the per-sample growth limit follow Kamino's Scope oracle and Mango v4, as recorded in the project's design notes. Atomic composition across these programs relies on Solana's transaction model [14].

11Future work

The primary business objective is to complete and validate the cycle from participant capital to liquidity, yen-product demand and participant benefit. It requires an explicit route for realized product earnings to reach the KASANE layer, with recipient rights, loss allocation, reinvestment and distribution rules. Current staking issuance is not evidence of that route.

Validation must measure executable depth on both sides, slippage, liquidity acquisition and maintenance cost, repeat product use, inventory losses and net earnings attributable to participants. Product settlement reserves and borrower collateral cannot be counted as free distribution capital.

The following deployment and production work remains; implemented staging code is not a live release.

  • Trials with users on the public devnet deployment, and external alert delivery.
  • Production oracle configuration: mainnet Chainlink verification, feed entitlements, a second yen source, and production values for freshness and haircut parameters.
  • Production parameters for markets, the debt ceiling, the founding sale, the supply cap, bonds, the team option and market-making measurement, which the project lists as awaiting approval.
  • Real-world assets (tokenised equities and treasury products): only read-only SDK checks exist; no on-chain holding, valuation or trading.
  • Staged KASANE Loopback: normal Bond vesting/claim, sufficient seeded CLMM depth and lending inventory, formed Scope EMAs and keeper-maintained staking index, then devnet validation of the collateral/borrow/unwind path (§6.5). JPYdf Credit supply/borrow is already connected on devnet (§6.4).
  • Further currencies and FX demand, which the project treats as hypotheses to test.
  • Reserve underwriting of Turbo desks and routing Turbo fees to the reserve; a withdrawal-request path for reserve-held dUSDC; Stability Pool deposits during FX closure and a guardian emergency recall.

12Status and disclaimers

Snapshot: 2026-10-05. CHŌBA is software under development, deployed on Solana devnet for trials, not a public release. The minting credit book, KASANE reserve and dToken vault are deployed; JPYdf Credit supply/borrow is connected in its independent klend market. Turbo has USD/JPY, gold (fixed-rate quanto) and Nikkei 225 (yen-native) desks. The reviewer funding drip supplies trial assets on devnet only. KASANE Loopback remains staged, awaiting normal Bond vesting/claim and the remaining pool/oracle preparation; no live sKASANE borrowing collateral is claimed. Desk terms and Credit caps are dated devnet configuration, not production commitments.42

Futures update, 2026-10-10: USD/JPY perpetual futures are part of the product book and deployed on devnet as a prototype (§6.6). Their security review remains pending.

Devnet tokens have no value. Local validator and SVM tests are controlled tests and do not establish public-market operation or production readiness. The parameters in Section 8 and the devnet/staging values in §6 are subject to change. This paper describes a mechanism; it is not an offer or solicitation of any financial product, token or service, does not promise a return, and is not investment, legal or tax advice.

Notes

Paths are relative to the repository root; core is programs/jpydf_core/src, reserve is programs/kasane_reserve/src and vault is programs/dtoken_vault/src.

  1. JPYdf mint authority is the protocol account: core/lib.rs (Initialize); mint on borrow and interest: core/lib.rs borrow → core/position.rs borrow, core/interest.rs mint_agg_interest; burn: core/position.rs collect_signed_payment. ↩
  2. dToken 1:1 mint and burn: vault/lib.rs deposit, redeem. ↩
  3. Reserve excludes Stability Pool principal and seized collateral: reserve/capital.rs (module comment); Turbo reserved cash: reserve/lib.rs withdraw_turbo_capital → reserve/turbo.rs capital. ↩
  4. core/math.rs collateral_value, debt_limit; core/debt.rs accrued, agg_interest; core/sp_math.rs (module comment). ↩
  5. core/lib.rs RiskParams::validate, create_market, finalize_market_risk; core/router.rs MAX_MARKETS, register_market. ↩
  6. vault/backing.rs (backing ratio, assets, liabilities); core/math.rs backed_price; core/lib.rs apply_vault_backing. Backstop: vault/lib.rs backstop_deposit, release_backstop (counted in assets, excluded from the withdrawable balance). Write-off: vault/lib.rs writeoff_principal → vault/allocate.rs run_writeoff. ↩
  7. core/lib.rs borrow → core/position.rs borrow, core/lib.rs withdraw → core/position.rs withdraw, core/lib.rs repay → core/position.rs repay_position, core/lib.rs repay_full → core/position.rs repay_position, core/lib.rs adjust_position → core/position.rs adjust_position; core/lib.rs require_not_last_close, Booked::counted, DEBT_CEILING; core/redemption.rs MIN_DEBT; core/liquidation.rs tcr_collateral_value. Figure 2’s R and withdrawal use repay_position and withdraw above. Zombie is a stored flag, not a continuing inequality. In core/position.rs, touch_at does not clear it; borrow or apply_pending_debt clears it when the resulting debt reaches the minimum. ↩
  8. core/debt.rs upfront_fee and its tests; core/lib.rs MIN_ANNUAL_BPS, MAX_ANNUAL_BPS, RATE_ADJ_COOLDOWN; core/lib.rs set_rate → core/position.rs set_rate. ↩
  9. core/debt.rs accrued, agg_interest; core/interest.rs mint_agg_interest, distribute_market; core/lib.rs SP_YIELD_BPS, interest_time; core/sp_math.rs trigger_yield. ↩
  10. core/redemption.rs decayed_rate, fee_quote, step; core/router.rs route; core/position.rs preview_redemption, walk_redemption; core/math.rs redemption_payout; core/lib.rs initialize (base rate). Figure 2’s normal redemption and G correspond to core/position.rs walk_redemption and withdraw; Figure 3’s walk, preview and step correspond to walk_redemption, preview_redemption and core/redemption.rs step above. ↩
  11. core/sorted.rs insert, remove; core/position.rs sync_list, core/lib.rs unlink_position → core/position.rs unlink_position. ↩
  12. core/router.rs allocation, require_uniform_budget, actual_fee, core/lib.rs redeem_routed → core/router.rs redeem_routed; queued requests: core/lib.rs request_redeem_routed → core/router.rs request_redeem_routed, core/lib.rs execute_redeem_routed → core/router.rs execute_redeem_routed, core/lib.rs cancel_redeem_routed_request → core/router.rs cancel_redeem_routed_request, core/redeem_request.rs MIN_REDEEM_REQUEST. ↩
  13. core/lib.rs request_avoid → core/position.rs request_avoid, core/lib.rs complete_avoid → core/position.rs complete_avoid, core/lib.rs leave_avoid → core/position.rs leave_avoid, core/lib.rs apply_avoid_floor → core/position.rs apply_avoid_floor; core/lib.rs avoid_floor, update_accept_rate, AVOID_WAIT, ACCEPT_TWA_MIN_DEBT. Figure 4’s waiting and ready stages are derived from time, not separate stored enums. Lapse handling uses core/position.rs request_expired; request, completion and exit use request_avoid, complete_avoid and leave_avoid above. ↩
  14. core/liquidation.rs split, max_collateral, book_liquidation, COLL_GAS_COMPENSATION_DIVISOR, COLL_GAS_COMPENSATION_CAP_JPY; core/lib.rs liquidate → core/position.rs liquidate. The worked example is the test vector in core/liquidation.rs. ↩
  15. core/sp_math.rs offset, trigger_yield, compounded deposit and gain functions, P_PRECISION, SCALE_FACTOR, MAX_SCALE_FACTOR_EXPONENT; core/lib.rs stability_deposit → core/stability.rs deposit_into_pool, STABILITY_LOCK_SLOTS. ↩
  16. core/liquidation.rs redistribute, compute_stake, pending_redistribution, apply_redistribution, L_PRECISION. ↩
  17. core/lib.rs shutdown_market → core/shutdown.rs shutdown_market, urgent redemption quote, core/lib.rs urgent_redeem → core/shutdown.rs urgent_redeem, redistribute_residual, URGENT_REDEMPTION_BONUS_BPS. Figure 2’s shutdown conditions correspond to core/shutdown.rs shutdown_market above. ↩
  18. core/lib.rs post_pyth_price → core/oracle.rs post_pyth, Chainlink report decoding and verification, CHAINLINK_VERIFIER. ↩
  19. core/oracle.rs compose_price, update_price, MAX_SOURCE_SKEW. ↩
  20. core/lib.rs MAX_TRADE_PRICE_AGE, MAX_REDEMPTION_PRICE_AGE, MAX_PRICE_AGE, FX_STALE_MAX_AGE, FX_SOFT_FREEZE, FX_MAX_DEGRADED_AGE, ORACLE_SILENCE; core/oracle.rs update_price, core/lib.rs latch_silent_oracle → core/oracle.rs latch_silent, feed switch (FEED_SWITCH_DELAY, FEED_SWITCH_MAX_JUMP_BPS); docs/price-freshness.md. ↩
  21. docs/kasane-twap.md; reserve/market.rs (module comment). ↩
  22. reserve/market.rs KasaneOracle::crank, top_level_only, read_pool, diverged, constants WINDOW, MIN_CRANK_INTERVAL, CRANK_STALE, MAX_SPOT_STEP_BPS, MAX_DIVERGENCE_BPS; keeper/reserve.mjs. Restart occurs after a gap exceeding CRANK_STALE (5 minutes / 60 s); the ring span is KASANE_MAX_WINDOW = RING × (WINDOW / 2) (integer division, 4 h / 112 s). Accepted residual risk and D5 follow-up: the residual-risk section of docs/kasane-twap.md and docs/d5-production-parameters.md (commit 4a75a3c). ↩
  23. reserve/fx.rs oracle_rate, checkpoint_fx, FX_HAIRCUT_BPS, FX_STALE_HAIRCUT_BPS. ↩
  24. reserve/lib.rs Reserve::rfv; reserve/market.rs pol_rfv, read_pool; reserve/fx.rs checkpoint_fx; reserve/vault.rs (dUSDC counting, VAULT_HAIRCUT_BPS). ↩
  25. reserve/lib.rs check_issuance, check_paid_issuance, MAX_SUPPLY; backing: reserve/bond.rs issue_bond, reserve/market.rs next_reward. ↩
  26. reserve/lib.rs contribute_genesis → reserve/genesis.rs contribute, can_finalize, split, reserve/lib.rs finalize_genesis → reserve/genesis.rs finalize, reserve/lib.rs refund_genesis → reserve/genesis.rs refund, reserve/lib.rs claim_genesis → reserve/genesis.rs claim_vested, reserve/lib.rs seed_market → reserve/genesis.rs seed; constants GENESIS_HARD_CAP, GENESIS_WALLET_CAP, GENESIS_MIN_RAISE, GENESIS_SALE_SECONDS, GENESIS_VEST_SECONDS and the file's opening comment. ↩
  27. reserve/bond.rs issue_bond, reserve/lib.rs bond → reserve/bond.rs bond, reserve/lib.rs claim → reserve/bond.rs claim; reserve/lib.rs bond_usdc → reserve/fx.rs bond_in_usdc; reserve/lib.rs bond_lp → reserve/lp_bond.rs purchase; reserve/lib.rs VEST_SECONDS; reserve/market.rs checkpoint_sale; reserve/lib.rs check_paid_issuance. ↩
  28. reserve/lib.rs buyback → reserve/bond.rs buyback; reserve/rebalance.rs unused_buyback; reserve/cash_floor.rs thresholds. ↩
  29. reserve/staking.rs (share conversion, reserve/lib.rs stake → reserve/staking.rs stake, reserve/lib.rs unstake → reserve/staking.rs unstake, priced_or_deferred, split_emission, emission_sigma_bps, reserve/lib.rs rebase → reserve/staking.rs rebase_if_due); reserve/market.rs next_reward; reserve/lib.rs advance_epoch, EPOCH_SECONDS, SIGMA_MAX_BPS. ↩
  30. reserve/lib.rs sell_premium → reserve/premium.rs sell, premium_clip, PREMIUM_INTERVAL; reserve/market.rs read_pool; reserve/lib.rs check_paid_issuance. ↩
  31. reserve/cash_floor.rs thresholds, deposit_room, require_backing; reserve/lib.rs rebalance_fx_liquidity → reserve/rebalance.rs rebalance; reserve/capital.rs plan_sp, reserve/lib.rs allocate_stability → reserve/capital.rs allocate; reserve/lib.rs rebalance_to_vault → reserve/vault.rs to_vault, reserve/lib.rs rebalance_from_vault → reserve/vault.rs from_vault. ↩
  32. reserve/lib.rs open_allocation → reserve/allocation.rs open_window, reserve/lib.rs publish_allocation → reserve/allocation.rs publish_window, reserve/lib.rs claim_allocation → reserve/allocation.rs claim_window, reserve/lib.rs record_window_payout → reserve/allocation.rs record_payout, reserve/lib.rs expire_allocation → reserve/allocation.rs expire_window, ALLOC_DELAY, ALLOC_WINDOW, ALLOC_TTL; sdk/liquidity.ts, sdk/allocation.ts. ↩
  33. reserve/team.rs (reserve/lib.rs exercise_team → reserve/team.rs exercise, TEAM_VEST, TEAM_CAP_BPS, development strike comment). reserve/lib.rs transfer_team_holder, check_paid_issuance; reserve/team.rs TransferTeamHolder. ↩
  34. reserve/desk.rs fill, desk_quote, check_backing, ResetDeskHwm, SetDeskManager, SetDeskSleeves, DESK_MAX_DISCOUNT_BPS, DESK_MIN_PREMIUM_BPS, DESK_VEST; reserve/market.rs checkpoint_sale; reserve/lib.rs reset_asset_desk_hwm → reserve/desk.rs run_reset_hwm, reserve/lib.rs set_asset_desk_manager → reserve/desk.rs run_set_manager, reserve/lib.rs set_asset_desk_sleeves → reserve/desk.rs run_set_sleeves, reserve/lib.rs asset_desk_skim → reserve/desk.rs run_skim (no signer). ↩
  35. sdk/fx.ts quoteFx, createFxInstructions and its docstring; reserve/lib.rs bind_fx_market → reserve/fx.rs bind_market and the note that there is no administrator deposit. ↩
  36. reserve/turbo.rs terms validation, breached, intrinsic value, entry_quote, exit quote, reserve/lib.rs checkpoint_turbo → reserve/turbo.rs checkpoint, reserve/lib.rs request_turbo_exit → reserve/turbo.rs request_exit, reserve/lib.rs cash_out_turbo → reserve/turbo.rs cash_out, reserve/lib.rs distribute_turbo_fees → reserve/turbo.rs distribute_fees, MAX_TENOR, EXIT_DELAY; the worked example is from docs/fx-leverage.md. Figure 9’s observation order, precedence at or after expiry and treatment of pre-KO exits correspond to reserve/turbo.rs checkpoint, request_exit and cash_out above. reserve/turbo.rs valid_feed, read_price, InitializeTurbo, buy; core/oracle.rs record_pyth; scripts/plan-turbo-desk.mjs FEEDS, seriesTerms; scripts/devnet-turbo-desk.mjs; keeper/turbo.mjs, keeper/market-hours.mjs; docs/archive/turbo-new-feeds-20261005.md (feed semantics, quanto, market-gap, entitlement and counsel risks; its simulations are not deployment evidence). ↩
  37. sdk/lending.ts lendingInstruction, quoteLending; vault/adapters/klend.rs; vault/lib.rs refresh_strategy → vault/strategy.rs refresh; vault/allocate.rs. ↩
  38. keeper/tasks.mjs, keeper/pyth.mjs, keeper/reserve.mjs, keeper/journal.mjs; docs/keeper.md; docs/price-freshness.md. keeper/pyth-cli.mjs, keeper/pyth-cycle.mjs, keeper/pyth-health.mjs; keeper/turbo.mjs turboPlan, turboMarket; keeper/market-hours.mjs; scripts/credit-price-keeper.mjs; keeper/health.mjs, keeper/health-snapshot.mjs; docs/archive/turbo-new-feeds-20261005.md (300 s devnet configuration, 30 s fast cadence). ↩
  39. Pause checks: core/lib.rs borrow → core/position.rs borrow, core/lib.rs withdraw → core/position.rs withdraw, core/lib.rs adjust_position → core/position.rs adjust_position, core/lib.rs request_avoid → core/position.rs request_avoid; reserve pause checks in reserve/genesis.rs, reserve/bond.rs, reserve/staking.rs, reserve/premium.rs, reserve/team.rs; guardian: core/lib.rs guardian_pause, reserve/lib.rs guardian_pause; upgrade authority: core/lib.rs Initialize, docs/build-profiles.md. ↩
  40. sdk/credit.ts creditAddresses, creditInstructions, readCreditReserve, creditHealth, maxCreditBorrowable, maxCreditWithdrawable; web/credit-jpydf.mjs; scripts/devnet-credit-stage.mjs (Scope 511/510/509, chains and freshness); scripts/devnet-credit-open-supply.mjs; scripts/devnet-credit-open-borrow.mjs guardBorrowKeys, borrowConfigPlan; scripts/credit-price-keeper.mjs; docs/archive/credit/credit-borrow-20261004.md (native ABI and local diagnostic, not current devnet liquidity). ↩
  41. sdk/loopback.ts stakingRedemptionIndex, loopbackTerms, loopbackBorrowAmount, buildLoopbackStep, buildLoopbackUnwind; web/credit-loopback.mjs LOOPBACK_OBLIGATION_ID, loopbackSet; scripts/loopback-scope.mjs stakingIndexPrice, loopbackConfigUpdates; scripts/credit-price-keeper.mjs; reserve/lib.rs VEST_SECONDS; docs/archive/loopback-20261004.md (staging, inventory, price-chain and reflexivity risks). ↩
  42. web/workspace.mjs, web/credit-jpydf.mjs, web/turbo.mjs, web/drip.mjs; public deployment identities and reserve configuration: scripts/devnet-credit-open-borrow.mjs guardBorrowKeys, borrowConfigPlan; read-only account checks: scripts/check-review-readiness.mjs. The 2026-10-05 snapshot distinguishes connected devnet desks from the earlier simulations in docs/archive/credit/credit-borrow-20261004.md and docs/archive/turbo-new-feeds-20261005.md; Loopback staging follows docs/archive/loopback-20261004.md. ↩
  43. programs/jpydf_perps/src/lib.rs initialize_pool, create_market, lp_deposit, lp_withdraw, nav, open_position, increase_position, risk_position, risk_oi, settle, jpy_feed, read_price, accrue_market, set_paused, set_params, validate_params; programs/jpydf_perps/src/math.rs entry_price, pnl, fees, fee_index, equity; sdk/perps.ts createPerpsClient, DEFAULT_PERPS_PARAMS; scripts/devnet-perps-stage.mjs marketParams. Historical localnet defaults and deferred review: docs/archive/perps-poc-20261005.md; devnet topology, staging settings and dated deployment update: docs/archive/perps-devnet-20261005.md. Staging settings are distinct from the SDK's illustrative defaults and do not certify current on-chain parameters. ↩

References

  1. Liquity. Liquity v2 FAQ: Borrowing and liquidations. https://docs.liquity.org/v2-faq/borrowing-and-liquidations
  2. Liquity. Liquity v2 FAQ: Redemptions and delegation. https://docs.liquity.org/v2-faq/redemptions-and-delegation
  3. Liquity. Liquity v2 FAQ: BOLD and Earn. https://docs.liquity.org/v2-faq/bold-and-earn
  4. Liquity. bold contracts repository, CollateralRegistry.sol. https://github.com/liquity/bold/blob/main/contracts/src/CollateralRegistry.sol
  5. NetNet. Mechanism. https://docs.netnet.capital/mechanism
  6. NetNet. Official channels (contract addresses). https://docs.netnet.capital/official-channels
  7. NetNet. Lending. https://docs.netnet.capital/lending
  8. NetNet. Turbo. https://docs.netnet.capital/turbo
  9. NetNet contracts on Robinhood Chain (chain ID 4663), verified sources on Sourcify; for example Treasury: https://sourcify.dev/server/v2/contract/4663/0x04822Ea321A0DEE6F40656172F29312104855d66?fields=all
  10. Raydium. raydium-cp-swap, commit 59fb845a9e5bb569c8b2f3415f13b0c0ebcc6b92, curve/constant_product.rs. https://raw.githubusercontent.com/raydium-io/raydium-cp-swap/59fb845a9e5bb569c8b2f3415f13b0c0ebcc6b92/programs/cp-swap/src/curve/constant_product.rs
  11. Pyth Network. Pull integration on Solana. https://docs.pyth.network/price-feeds/core/use-real-time-data/pull-integration/solana
  12. Chainlink. Data Streams: report schema v8 and on-chain report verification on Solana. https://docs.chain.link/data-streams/reference/report-schema-v8 ; https://docs.chain.link/data-streams/tutorials/solana-onchain-report-verification
  13. Kamino Finance. klend repository. https://github.com/Kamino-Finance/klend
  14. Solana. Transactions. https://solana.com/docs/core/transactions
  15. Iron Finance. Post-Mortem 17 June 2021. June 17, 2021.
  16. Liquity. LUSD Chicken Bonds — Technical Readme.
  17. Liquity. Liquity V2: Improving DeFi with BOLD Innovation. September 4, 2024.
  18. Olympus. Bonds: Liquidity Bonds.

Appendix A. Notation

⌊·⌋, ⌈·⌉
integer rounding down, up
p
collateral price, micro-JPY per whole token; d collateral decimals
λb, λl
borrowing and liquidation loan-to-value, basis points; MCR = 1/λl
D, C
debt and collateral of a position; Dagg, W market aggregate debt and ΣDiri
Y
31,536,000 × 10,000, a year in basis-point seconds
b, φ
redemption base rate and fee, fractions of 1 (stored at 1018)
B, S (§3.5)
JPYdf actually burned by this redemption and JPYdf supply after the same call’s interest mint and before the burn
P, S, B (§3.9)
Stability Pool product, collateral-gain sum and yield-gain sum
φ (§5.5, §5.8)
Allocation-window payout rate; §5.5 uses the last confirmed window’s value. This is distinct from the redemption fee rate
β
dToken backing ratio, at most 1
τ
reserve time-weighted average price (KASANE or USDC in JPYdf)
ρFX
reserve JPYdf-per-USDC rate
RFV, B (§5)
reserve value; backing per KASANE
S (§5)
total KASANE supply; Smax the supply cap

Appendix B. Formulas and their sources

Equation (25) also applies to gold’s fixed-rate quanto and yen-native JP225. The unnumbered Credit and staged Loopback price chains and health limits are described in §6.4–6.5 with sources in endnote 40 and 41; they are separate from equations (16)–(18).

Table 6: Each numbered equation and the function that computes it.
Eq.QuantityFunction
(1)dToken backing ratio and pricedtoken_vault backing; jpydf_core backed_price
(2)collateral value, debt limitcollateral_value, debt_limit
(3)total collateral ratiotcr_collateral_value, entire_debt
(4)upfront feeupfront_fee
(5)position and aggregate interestaccrued, agg_interest
(6)interest splitdistribute_market
(7)redemption base rate and feedecayed_rate, fee_quote
(8)redemption payoutredemption_payout
(9)router weights and quotasallocation
(10)–(11)liquidation splitmax_collateral, split
(12)–(13)Stability Pooloffset, trigger_yield, compounded deposit and gains
(14)redistributionredistribute
(15)urgent redemptionshutdown.rs urgent quote
(16)yen price compositioncompose_price
(17)reserve averageKasaneOracle::crank
(18)reserve FX rateoracle_rate, checkpoint_fx
(19)–(20)RFV, backing, strict and paid issuance conditionsReserve::rfv, pol_rfv, check_issuance, check_paid_issuance
(21)discounted-sale reference price, bond price and payoutcheckpoint_sale, issue_bond
(22)buyback payoutbuyback
(23)staking sharesstaking.rs share conversion
(24)distribution rate and amountnext_reward
(25)–(26)Turbo payoff and exitturbo.rs intrinsic value and exit quote