Skip to main content

Post-Trade Elasticity: The Complete Multiswap Model

· 33 min read
Eric Forgy
Founder of CavalRe

Multiswap is a multi-asset exchange built from three native quantities: reserve, scale, and marginal price. The Post-Trade Elasticity Model specifies how those quantities change under an atomic swap, how LP Token liquidity actions extend the same state space, and which internal safety properties follow from the resulting coefficient dynamics.

The model has one central distinction:

  • a token can move along a fixed elastic curve because its reserve changes;
  • an operation can move the token to a different elastic curve because its coefficient changes.

This distinction unifies the reserve-to-price homomorphism with the complete price law. Swaps keep every Reserve Asset coefficient fixed. Liquidity actions can change the coefficients of nonparticipating Reserve Assets through one common multiplier. The complete transformation remains multiplicative. The reserve ratio describes the fixed-coefficient case, while the coefficient ratio extends the same structure to liquidity actions.

This article develops the complete framework from first principles. It covers atomic mm-to-nn swaps, finite-step divergence, market depth, user-controlled splitting, LP Token liquidity, the exact liquidity-dispersion boundary, gauge-invariant safety, a qualified value-flow entropy, parameter changes, deposit phases, and the current implementation boundary.

Status: Exact-arithmetic research model, August 2026. The swap equations assume positive reserves and scales, one fixed homogeneous elasticity 0es<10\le e_s<1, fee-free post-trade settlement, and exact enforcement of the equations below. The liquidity-dispersion and projective safety theorems use 0<es<10<e_s<1; the constant-weight boundary es=0e_s=0 has its own exact swap and liquidity identities. The Solidity branch now implements Reserve Asset swaps, proportional LP Token liquidity, receive fees, Surplus settlement, and oracle-valued deposit phases using FloatLib. The updated model is deployed on Robinhood Testnet. General unequal liquidity actions discussed below remain mathematical analysis rather than supported contract operations; security review remains a separate obligation.

1. Native Multiswap state

Let a pool contain nn Reserve Assets. Reserve Asset ii has reserve

ai>0,\boxed{a_i>0,}

scale

si>0,\boxed{s_i>0,}

and marginal price

Pi=siai.\boxed{P_i=\frac{s_i}{a_i}.}

Scale is the market-value magnitude assigned to the Reserve Asset in the pool's internal numeraire. Marginal price is scale per unit of reserve.

The LP Token has reserve a0a_0, scale s0s_0, and marginal price

P0=s0a0.\boxed{P_0=\frac{s_0}{a_0}.}

Its scale is total Reserve Asset scale:

s0=i=1nsi.\boxed{s_0=\sum_{i=1}^{n}s_i.}

This identity is fundamental. Reserve Asset scales are the components; LP Token scale is their sum. Weights are derived market-value ratios,

wi=sis0,\boxed{w_i=\frac{s_i}{s_0},}

whose values follow from reserve and scale.

For a signed reserve change daida_i, define

ri=daiai,ri>1.\boxed{ r_i=\frac{da_i}{a_i}, \qquad r_i>-1. }

The sign is from the pool's perspective:

  • dai>0da_i>0 means the pool receives the token;
  • dai<0da_i<0 means the pool sends the token.

The final reserve is

ai=ai(1+ri).\boxed{a_i'=a_i(1+r_i).}

Every supported operation must leave every reserve and scale strictly positive.

2. Elasticity and the coefficient

Choose one homogeneous scale elasticity

0es<1\boxed{0\le e_s<1}

and define price elasticity by

eP=1es.\boxed{e_P=1-e_s.}

When a token stays on the same elastic curve, its scale changes as

sisi=(aiai)es=(1+ri)es.\boxed{ \frac{s_i'}{s_i} = \left(\frac{a_i'}{a_i}\right)^{e_s} = (1+r_i)^{e_s}. }

Because Pi=si/aiP_i=s_i/a_i,

PiPi=(aiai)eP=(1+ri)eP.\boxed{ \frac{P_i'}{P_i} = \left(\frac{a_i'}{a_i}\right)^{-e_P} = (1+r_i)^{-e_P}. }

Define the token's elasticity coefficient by

ci=siaies.\boxed{c_i=\frac{s_i}{a_i^{e_s}}.}

Then

si=ciaies\boxed{s_i=c_i a_i^{e_s}}

and

Pi=ciaieP.\boxed{P_i=c_i a_i^{-e_P}.}

The coefficient identifies the elastic curve. Changing aia_i with fixed cic_i moves the token along that curve. Changing cic_i moves the token to another curve.

2.1 The constant-weight boundary

At

es=0,eP=1,\boxed{e_s=0,\qquad e_P=1,}

the fixed-coefficient scale law becomes

si=si.\boxed{s_i'=s_i.}

Every Reserve Asset scale and LP Token scale remain constant during a swap, so every derived market-value weight remains constant:

wi=sis0=sis0=wi.\boxed{ w_i' = \frac{s_i'}{s_0'} = \frac{s_i}{s_0} = w_i. }

The coefficient, price law, and normalized value flow reduce to

ci=si,PiPi=11+ri,σ(ri)=ri1+ri.\boxed{ c_i=s_i, \qquad \frac{P_i'}{P_i}=\frac{1}{1+r_i}, \qquad \sigma(r_i)=\frac{r_i}{1+r_i}. }

Thus es=0e_s=0 is the constant-weight boundary of Post-Trade Elasticity.

2.2 The reserve-only homomorphism

When ci=cic_i'=c_i,

PiPi=(aiai)eP.\frac{P_i'}{P_i} = \left(\frac{a_i'}{a_i}\right)^{-e_P}.

For successive reserve ratios,

(aiaiaiai)eP=(aiai)eP(aiai)eP.\left( \frac{a_i''}{a_i'} \frac{a_i'}{a_i} \right)^{-e_P} = \left(\frac{a_i''}{a_i'}\right)^{-e_P} \left(\frac{a_i'}{a_i}\right)^{-e_P}.

Thus

aiaiPiPi\boxed{ \frac{a_i'}{a_i} \longmapsto \frac{P_i'}{P_i} }

is a homomorphism while the coefficient and elasticity remain fixed.

2.3 The complete homomorphism

For a general coefficient change,

PiPi=cici(aiai)eP.\boxed{ \frac{P_i'}{P_i} = \frac{c_i'}{c_i} \left(\frac{a_i'}{a_i}\right)^{-e_P}. }

The reserve ratio and coefficient ratio together determine the price ratio. The complete map is

(cici,aiai)PiPi.\boxed{ \left( \frac{c_i'}{c_i}, \frac{a_i'}{a_i} \right) \longmapsto \frac{P_i'}{P_i}. }

This larger map is also a homomorphism. Over two consecutive operations, both coefficient ratios and reserve ratios multiply and telescope:

PiPi=cici(aiai)eP.\frac{P_i''}{P_i} = \frac{c_i''}{c_i} \left(\frac{a_i''}{a_i}\right)^{-e_P}.

The fixed-coefficient reserve homomorphism is therefore a restriction of the coefficient-and-reserve homomorphism. A complete protocol specification states how every operation changes cic_i alongside the price equation.

For two tokens,

Pi/PjPi/Pj=ci/cicj/cj(ai/aiaj/aj)eP.\boxed{ \frac{P_i'/P_j'}{P_i/P_j} = \frac{c_i'/c_i}{c_j'/c_j} \left( \frac{a_i'/a_i}{a_j'/a_j} \right)^{-e_P}. }

This equation separates relative reserve motion from relative coefficient motion exactly.

2.4 Why the homomorphism matters

The homomorphism gives marginal-price state a finite path-independence property. Consider two successive states

aiaiaia_i \longrightarrow a_i' \longrightarrow a_i''

along one fixed elastic curve. The cumulative reserve ratio is

aiai=aiaiaiai,\frac{a_i''}{a_i} = \frac{a_i''}{a_i'} \frac{a_i'}{a_i},

and the cumulative price response is

PiPi=(aiai)eP=(aiai)eP(aiai)eP=PiPiPiPi.\begin{aligned} \frac{P_i''}{P_i} &= \left(\frac{a_i''}{a_i}\right)^{-e_P}\\ &= \left(\frac{a_i''}{a_i'}\right)^{-e_P} \left(\frac{a_i'}{a_i}\right)^{-e_P}\\ &= \frac{P_i''}{P_i'} \frac{P_i'}{P_i}. \end{aligned}

Given fixed cic_i and ePe_P, the final marginal price depends exclusively on the cumulative reserve ratio. A reserve change executed in one step or divided into many steps reaches the same final marginal price whenever it reaches the same final reserve.

The complete homomorphism extends this endpoint consistency to coefficient motion. For successive operations,

cici=cicicici\frac{c_i''}{c_i} = \frac{c_i''}{c_i'} \frac{c_i'}{c_i}

and therefore

PiPi=cici(aiai)eP=[cici(aiai)eP][cici(aiai)eP]=PiPiPiPi.\begin{aligned} \frac{P_i''}{P_i} &= \frac{c_i''}{c_i} \left(\frac{a_i''}{a_i}\right)^{-e_P}\\ &= \left[ \frac{c_i''}{c_i'} \left(\frac{a_i''}{a_i'}\right)^{-e_P} \right] \left[ \frac{c_i'}{c_i} \left(\frac{a_i'}{a_i}\right)^{-e_P} \right]\\ &= \frac{P_i''}{P_i'} \frac{P_i'}{P_i}. \end{aligned}

Given fixed ePe_P, any sequence reaching the same final reserve and coefficient reaches the same final marginal price. A closed state loop satisfies

aiai=1,cici=1,\frac{a_i'}{a_i}=1, \qquad \frac{c_i'}{c_i}=1,

and therefore

PiPi=1.\boxed{\frac{P_i'}{P_i}=1.}

This is exact price-state round-trip closure.

The path-independence statement applies to marginal-price state in the complete (ai,ci)(a_i,c_i) state space. Finite settlement and scale accretion carry additional execution information. Dividing one reserve change into several swaps preserves its final marginal price and changes the accumulated finite-step divergence. Liquidity-action ordering can also produce different final coefficients because each λ\lambda is calculated from the state at which its action executes. The complete homomorphism then maps each realized final pair (ai,ci)(a_i',c_i') to one final price.

This structure matters for four practical reasons:

  1. Splitting consistency: one-step and multi-step reserve paths share the same price endpoint at fixed coefficient.
  2. Composability: reserve ratios and coefficient ratios multiply cleanly across operations.
  3. Round-trip analysis: a closed reserve-and-coefficient loop closes the marginal price exactly.
  4. Auditability: the final marginal price can be reconstructed from the initial price and the two cumulative state ratios.

3. Post-trade value flow

Post-Trade Elasticity settles a complete finite token change at the token's final marginal price:

Σi=daiPi.\boxed{\Sigma_i=da_iP_i'.}

For a fixed-coefficient swap leg,

Σi=airiPi(1+ri)eP=siri(1+ri)eP.\begin{aligned} \Sigma_i &=a_ir_i\frac{P_i}{(1+r_i)^{e_P}}\\ &=s_i\frac{r_i}{(1+r_i)^{e_P}}. \end{aligned}

Therefore

Σi=siri(1+ri)eP.\boxed{ \Sigma_i = s_i\frac{r_i}{(1+r_i)^{e_P}}. }

Define normalized value flow by

σ(ri)=Σisi=ri(1+ri)eP.\boxed{ \sigma(r_i) = \frac{\Sigma_i}{s_i} = \frac{r_i}{(1+r_i)^{e_P}}. }

Its derivative is

dσdr=1+esr(1+r)1+eP>0\frac{d\sigma}{dr} = \frac{1+e_sr}{(1+r)^{1+e_P}} >0

for every r>1r>-1. Each admissible normalized value flow therefore determines exactly one relative reserve change.

The normalized function has the useful identity

σ(r)=(1+r)es(1+r)eP.\boxed{ \sigma(r) = (1+r)^{e_s}-(1+r)^{-e_P}. }

4. Atomic multi-asset swaps

An atomic Multiswap transaction can receive mm distinct pay assets and send nn distinct receive assets. It executes directly as one multi-asset swap.

Each token appears at most once in the transaction. A leg depends only on that token's own pre-swap reserve, scale, and assigned value flow. The legs are coupled only by transaction-level value-flow conservation.

For every specified pay leg,

ri>0r_i>0

determines

Σi=siσ(ri)>0.\Sigma_i = s_i\sigma(r_i)>0.

Total pay value flow is

Σpay=i=1mΣi.\boxed{ \Sigma_{\mathrm{pay}} = \sum_{i=1}^{m}\Sigma_i. }

For receive leg jj, let πj\pi_j be its positive value-flow allocation, with

j=1nπj=1.\boxed{\sum_{j=1}^{n}\pi_j=1.}

Assign

Σj=πjΣpay.\boxed{ \Sigma_j = -\pi_j\Sigma_{\mathrm{pay}}. }

The receive change is the unique rj(1,0)r_j\in(-1,0) satisfying

sjrj(1+rj)eP=πjΣpay.\boxed{ s_j\frac{r_j}{(1+r_j)^{e_P}} = -\pi_j\Sigma_{\mathrm{pay}}. }

Summing all legs gives

iΣi=0.\boxed{\sum_i\Sigma_i=0.}

This is the complete atomic mm-to-nn swap rule. It requires one normalized-flow evaluation for each pay leg and one monotone inversion for each receive leg.

All swap legs preserve their Reserve Asset coefficients:

ci=ci.\boxed{c_i'=c_i.}

Consequently, the reserve-only homomorphism applies to every swap leg.

5. Finite-step divergence and scale accretion

Scale satisfies the exact discrete product rule. Define

dPi=PiPi.\boxed{dP_i=P_i'-P_i.}

Then

dsi=aiPiaiPi=daiPi+aidPi.\begin{aligned} ds_i &=a_i'P_i'-a_iP_i\\ &=da_iP_i'+a_i dP_i. \end{aligned}

The first term is the leg's post-trade value flow,

Σi=daiPi,\boxed{\Sigma_i=da_iP_i',}

and the second term is the revaluation of its opening reserve,

Γi=aidPi.\boxed{\Gamma_i=a_i dP_i.}

Therefore

dsi=Σi+Γi.\boxed{ds_i=\Sigma_i+\Gamma_i.}

For a fixed-coefficient leg, Post-Trade Elasticity gives

Σi=siri(1+ri)eP\boxed{ \Sigma_i = s_i\frac{r_i}{(1+r_i)^{e_P}} }

and

Γi=si[(1+ri)eP1].\boxed{ \Gamma_i = s_i\left[(1+r_i)^{-e_P}-1\right]. }

Their sum is

dsi=si[(1+ri)es1].\boxed{ ds_i = s_i\left[(1+r_i)^{e_s}-1\right]. }

A second exact decomposition separates the linear elastic response from finite-step curvature:

dsi=esΣi+Di,\boxed{ds_i=e_s\Sigma_i+\mathcal D_i,}

where

Di=si[(1+ri)es1esri(1+ri)es1].\boxed{ \mathcal D_i = s_i\left[ (1+r_i)^{e_s}-1 -e_sr_i(1+r_i)^{e_s-1} \right]. }

Comparing the two decompositions gives

Di=Γi+ePΣi.\boxed{ \mathcal D_i = \Gamma_i+e_P\Sigma_i. }

Equivalently,

Γi=ePΣi+Di.\boxed{ \Gamma_i = -e_P\Sigma_i+\mathcal D_i. }

For 0<es<10<e_s<1, the function ciaiesc_i a_i^{e_s} is strictly concave, so

Di0,\boxed{\mathcal D_i\ge0,}

with strict inequality for every nonzero finite leg.

Locally,

Di=12siesePri2+O(ri3).\boxed{ \mathcal D_i = \frac12s_ie_se_Pr_i^2+O(r_i^3). }

For a swap,

s0s0=idsi=iΣi+iΓi=iΓi=esiΣi+iDi=iDi.\begin{aligned} s_0'-s_0 &=\sum_i ds_i\\ &=\sum_i\Sigma_i+\sum_i\Gamma_i\\ &=\sum_i\Gamma_i\\ &=e_s\sum_i\Sigma_i+\sum_i\mathcal D_i\\ &=\sum_i\mathcal D_i. \end{aligned}

Therefore

s0s0=iΓi=iDi>0\boxed{ s_0'-s_0 = \sum_i\Gamma_i = \sum_i\mathcal D_i >0 }

for every nontrivial finite swap with 0<es<10<e_s<1.

At the constant-weight boundary es=0e_s=0,

dsi=0,Di=0,Γi=Σi.\boxed{ ds_i=0, \qquad \mathcal D_i=0, \qquad \Gamma_i=-\Sigma_i. }

Transaction-level value-flow conservation then gives

s0s0=iΓi=iDi=0.\boxed{ s_0'-s_0 = \sum_i\Gamma_i = \sum_i\mathcal D_i = 0. }

5.1 Connection to value leakage

The value-leakage accounting identity measures the change in Reserve Asset value after subtracting the consideration exchanged through the trade:

NIi=dsidaiPeff,i=ai(PiPi)+dai(PiPeff,i).\begin{aligned} NI_i &=ds_i-da_iP_{\mathrm{eff},i}\\ &=a_i(P_i'-P_i) +da_i(P_i'-P_{\mathrm{eff},i}). \end{aligned}

Post-trade settlement sets

Peff,i=Pi,\boxed{P_{\mathrm{eff},i}=P_i',}

which gives

NIi=dsiΣi=ai(PiPi)=Γi.\boxed{ \begin{aligned} NI_i &=ds_i-\Sigma_i\\ &=a_i(P_i'-P_i)\\ &=\Gamma_i. \end{aligned} }

The acquired-reserve term

dai(PiPeff,i)=0\boxed{ da_i(P_i'-P_{\mathrm{eff},i})=0 }

expresses zero value leakage. The opening-reserve revaluation remains as the leg's net income.

The three quantities have distinct accounting roles:

  • Σi\Sigma_i is consideration exchanged at the post-trade marginal price;
  • Γi\Gamma_i is revaluation of the opening reserve;
  • Di\mathcal D_i is finite-step curvature in the elastic scale law.

Transaction-level value-flow conservation then gives

iNIi=iΓi=iDi=s0s00.\boxed{ \sum_i NI_i = \sum_i\Gamma_i = \sum_i\mathcal D_i = s_0'-s_0 \ge0. }

Equality holds at es=0e_s=0. Every nontrivial finite swap with 0<es<10<e_s<1 gives strict inequality. Thus post-trade settlement gives acquired reserves their post-trade value at execution. LP Token scale accretion can be read equivalently as aggregate opening-reserve revaluation, aggregate swap net income, or aggregate finite-step curvature.

A swap keeps LP Token reserve a0a_0 fixed. Define

c0=s0a0es.\boxed{c_0=\frac{s_0}{a_0^{e_s}}.}

For every nontrivial finite swap with 0<es<10<e_s<1, s0s_0 increases while a0a_0 remains fixed, so

c0>c0.\boxed{c_0'>c_0.}

Swap divergence therefore accumulates in the LP Token coefficient while every Reserve Asset coefficient remains fixed.

At es=0e_s=0, both s0s_0 and c0c_0 remain fixed during swaps.

6. Two-asset price impact and market depth

For an ABA\to B swap,

rA>0,1<rB<0,r_A>0, \qquad -1<r_B<0,

and

rB(1+rB)eP=sAsBrA(1+rA)eP.\boxed{ \frac{r_B}{(1+r_B)^{e_P}} = -\frac{s_A}{s_B} \frac{r_A}{(1+r_A)^{e_P}}. }

Gross relative price impact is

PB,APB,A=PB/PAPB/PA=(1+rA1+rB)eP.\boxed{ \frac{P_{B,A}'}{P_{B,A}} = \frac{P_B'/P_A'}{P_B/P_A} = \left(\frac{1+r_A}{1+r_B}\right)^{e_P}. }

Value-flow conservation also gives the exact identity

PB,APB,A=sAsBrArB.\boxed{ \frac{P_{B,A}'}{P_{B,A}} = -\frac{s_A}{s_B}\frac{r_A}{r_B}. }

The initial slope is

ddrAPB,APB,ArA=0=eP(1+sAsB).\boxed{ \left. \frac{d}{dr_A} \frac{P_{B,A}'}{P_{B,A}} \right|_{r_A=0} = e_P\left(1+\frac{s_A}{s_B}\right). }

For equal scales, the initial slope is 2eP2e_P.

6.1 The balanced midpoint

When

sA=sB,es=eP=12,s_A=s_B, \qquad e_s=e_P=\frac12,

the receive change has the exact solution

rB=rA1+rA.\boxed{r_B=-\frac{r_A}{1+r_A}.}

The gross relative price curve is exactly linear:

PB,APB,A=1+rA.\boxed{ \frac{P_{B,A}'}{P_{B,A}} = 1+r_A. }

6.2 Small scale elasticity

At the exact constant-weight boundary es=0e_s=0, normalized value flow is

σ(r)=r1+r,\sigma(r)=\frac{r}{1+r},

with inverse

r=σ1σ.\boxed{r=\frac{\sigma}{1-\sigma}.}

For an ABA\to B swap,

σ(rB)=sAsBσ(rA).\sigma(r_B) = -\frac{s_A}{s_B}\sigma(r_A).

As rAr_A\to\infty,

σ(rA)1,\sigma(r_A)\longrightarrow1,

so

rBsAsA+sB.\boxed{ r_B \longrightarrow -\frac{s_A}{s_A+s_B}. }

For equal scales, the limiting receive change is rB=1/2r_B=-1/2.

For 0<es<10<e_s<1,

1+rB(sBsA)1/ePrAes/eP\boxed{ 1+r_B \sim \left(\frac{s_B}{s_A}\right)^{1/e_P} r_A^{-e_s/e_P} }

as rAr_A\to\infty.

When ese_s is small and positive, the receive reserve approaches depletion extraordinarily slowly. The limit es0+e_s\to0^+ therefore gives a strong soft reserve barrier, while the exact boundary es=0e_s=0 gives the finite capacity above.

For a balanced pair, the large-input estimate needed to reach rB=0.9r_B=-0.9 is

rA91/es10.\boxed{r_A\approx\frac{9^{1/e_s}}{10}.}

6.3 The capacity limit

As es1e_s\to1^- and eP0+e_P\to0^+,

PB,APB,Amax(1,sAsBrA).\boxed{ \frac{P_{B,A}'}{P_{B,A}} \longrightarrow \max\left(1,\frac{s_A}{s_B}r_A\right). }

For a balanced pair, this becomes

PB,APB,A{1,0rA1,rA,rA1.\boxed{ \frac{P_{B,A}'}{P_{B,A}} \longrightarrow \begin{cases} 1, & 0\le r_A\le1,\\ r_A, & r_A\ge1. \end{cases} }

The price curve approaches a hockey stick at the pool's capacity boundary.

6.4 Normalized depth

A dimensionless market-depth curve plots cumulative output fraction rB-r_B against gross relative price impact. It depends only on:

  • scale ratio sA/sBs_A/s_B;
  • scale elasticity ese_s;
  • normalized input rAr_A.

This makes normalized depth a natural basis for comparing capital efficiency across pools while keeping token units distinct from economic depth.

7. Splitting a finite swap

The divergence of a small step is second order:

D=O(r2).\mathcal D=O(r^2).

If a fixed economic action is divided into NN comparable sequential swaps, each step is approximately O(1/N)O(1/N) and the accumulated divergence is approximately

NO(1N2)=O(1N).N\,O\left(\frac1{N^2}\right) = O\left(\frac1N\right).

Finer splitting therefore reduces the LP Token scale accretion generated by post-trade settlement. In the continuously divided limit, the finite-step contribution vanishes.

This is an execution property of the state equations. Every subtrade remains an ordinary safe post-trade swap. A permissionless protocol accommodates splitting across transactions, addresses, routes, and blocks. Fees, rounding, and external execution policy must be evaluated with that behavior in mind.

8. LP Token liquidity actions

A liquidity action includes the LP Token and one or more Reserve Assets in one atomic transaction. It is distinct from a Reserve Asset swap, although it uses the same post-trade value-flow function for its participating legs.

Suppose the action includes the LP Token and mm of the pool's nn Reserve Assets. For every participating token,

ri=daiai.r_i=\frac{da_i}{a_i}.

Transaction-level value-flow balance is

s0σ(r0)=i=1msiσ(ri).\boxed{ s_0\sigma(r_0) = \sum_{i=1}^{m}s_i\sigma(r_i). }

The participating Reserve Asset legs determine exactly one LP Token leg because σ\sigma is strictly increasing.

The LP Token and participating Reserve Assets remain on their elastic curves:

s0=s0(1+r0)es\boxed{s_0'=s_0(1+r_0)^{e_s}}

and

si=si(1+ri)es.\boxed{s_i'=s_i(1+r_i)^{e_s}.}

Thus

c0=c0\boxed{c_0'=c_0}

and

ci=ci\boxed{c_i'=c_i}

for every participating Reserve Asset.

When m<nm<n, every nonparticipating Reserve Asset keeps the same reserve and receives the same scale multiplier:

aj=aj,sj=λsj.\boxed{ a_j'=a_j, \qquad s_j'=\lambda s_j. }

The aggregate identity s0=isis_0'=\sum_i s_i' determines

λ=s0(1+r0)esi=1msi(1+ri)ess0i=1msi.\boxed{ \lambda = \frac{ s_0(1+r_0)^{e_s} -\displaystyle\sum_{i=1}^{m}s_i(1+r_i)^{e_s} }{ s_0-\displaystyle\sum_{i=1}^{m}s_i }. }

Therefore every nonparticipating Reserve Asset coefficient changes by

cj=λcj.\boxed{c_j'=\lambda c_j.}

Its reserve remains fixed, and its price changes by the same factor:

Pj=λPj.\boxed{P_j'=\lambda P_j.}

This is exactly where the coefficient-and-reserve homomorphism is required. The reserve-only homomorphism remains valid for participating tokens, while the coefficient factor describes the complement transformation.

8.1 Constant-weight liquidity

At es=0e_s=0, every participating scale and the LP Token scale remain fixed:

s0=s0,si=si.\boxed{ s_0'=s_0, \qquad s_i'=s_i. }

For m<nm<n, the complement multiplier becomes

λ=s0i=1msis0i=1msi=1.\begin{aligned} \lambda &= \frac{ s_0-\displaystyle\sum_{i=1}^{m}s_i }{ s_0-\displaystyle\sum_{i=1}^{m}s_i }\\ &=1. \end{aligned}

Therefore every Reserve Asset scale, LP Token scale, derived weight, and coefficient remains fixed during the liquidity action. The value-flow equation

s0r01+r0=i=1msiri1+ri\boxed{ s_0\frac{r_0}{1+r_0} = \sum_{i=1}^{m}s_i\frac{r_i}{1+r_i} }

determines the LP Token leg from the participating Reserve Asset legs.

For m=nm=n, the complement is empty and λ\lambda disappears from the state transition. The scale identity holds automatically because every scale remains fixed.

Each participating price follows

PiPi=11+ri.\boxed{ \frac{P_i'}{P_i} = \frac{1}{1+r_i}. }

Thus heterogeneous liquidity legs can change relative prices, while proportional legs preserve every relative price.

The constant-weight boundary therefore has well-defined liquidity equations for every participating set. The projective LP-backing proof in Section 10 uses concavity for 0<es<10<e_s<1. The es=0e_s=0 liquidity system therefore requires its own extraction-safety proof.

8.2 Gauge-coordinate liquidity updates

The physical liquidity equations place λ\lambda on every nonparticipating Reserve Asset. A scale accumulator factors that common transformation into one constant-time update.

Represent every effective Reserve Asset scale and the LP Token scale as

si=Lsˉi,s0=Lsˉ0,\boxed{ s_i=L\bar s_i, \qquad s_0=L\bar s_0, }

with

sˉ0=i=1nsˉi.\boxed{ \bar s_0 = \sum_{i=1}^{n}\bar s_i. }

Here LL is the common scale accumulator and sˉi\bar s_i is the stored scale coordinate. Apply the gauge transformation

L=λL.\boxed{L'=\lambda L.}

For every nonparticipating Reserve Asset jj, keep the stored scale coordinate fixed:

sˉj=sˉj.\boxed{\bar s_j'=\bar s_j.}

Its effective scale then receives the required physical transformation:

sj=Lsˉj=λLsˉj=λsj.s_j' = L'\bar s_j' = \lambda L\bar s_j = \lambda s_j.

Every participating Reserve Asset ii receives an inverse gauge compensation:

sˉi=(1+ri)esλsˉi.\boxed{ \bar s_i' = \frac{(1+r_i)^{e_s}}{\lambda}\bar s_i. }

Reconstructing its effective scale gives

si=Lsˉi=λL(1+ri)esλsˉi=si(1+ri)es.\begin{aligned} s_i' &=L'\bar s_i'\\ &=\lambda L \frac{(1+r_i)^{e_s}}{\lambda}\bar s_i\\ &=s_i(1+r_i)^{e_s}. \end{aligned}

The LP Token receives the same inverse compensation:

sˉ0=(1+r0)esλsˉ0.\boxed{ \bar s_0' = \frac{(1+r_0)^{e_s}}{\lambda}\bar s_0. }

Therefore

s0=Lsˉ0=λL(1+r0)esλsˉ0=s0(1+r0)es.\begin{aligned} s_0' &=L'\bar s_0'\\ &=\lambda L \frac{(1+r_0)^{e_s}}{\lambda}\bar s_0\\ &=s_0(1+r_0)^{e_s}. \end{aligned}

The definition of λ\lambda guarantees

sˉ0=i=1nsˉi.\boxed{ \bar s_0' = \sum_{i=1}^{n}\bar s_i'. }

The ledger can derive sˉ0\bar s_0' from the Reserve Asset children. An explicitly cached root scale uses the same expression above.

For a single-Reserve-Asset liquidity action LPALP\leftrightarrow A, the complete stored update is therefore

L=λL,sˉ0=(1+r0)esλsˉ0,sˉA=(1+rA)esλsˉA,sˉj=sˉj(jA).\boxed{ \begin{aligned} L'&=\lambda L,\\ \bar s_0'&=\frac{(1+r_0)^{e_s}}{\lambda}\bar s_0,\\ \bar s_A'&=\frac{(1+r_A)^{e_s}}{\lambda}\bar s_A,\\ \bar s_j'&=\bar s_j\qquad(j\ne A). \end{aligned} }

Thus λ\lambda moves from an update over the full Reserve Asset complement into one accumulator update plus inverse-λ\lambda updates for the LP Token and participating Reserve Asset.

8.3 Gauge coefficients and the complete homomorphism

Define stored coefficient coordinates by

cˉi=sˉiaies,ci=Lcˉi.\boxed{ \bar c_i = \frac{\bar s_i}{a_i^{e_s}}, \qquad c_i=L\bar c_i. }

For a nonparticipating Reserve Asset,

cˉj=cˉj,cj=Lcˉj=λcj.\boxed{ \bar c_j'=\bar c_j, \qquad c_j'=L'\bar c_j'=\lambda c_j. }

For every participating Reserve Asset,

cˉi=1λcˉi,ci=Lcˉi=ci.\boxed{ \bar c_i' = \frac{1}{\lambda}\bar c_i, \qquad c_i'=L'\bar c_i'=c_i. }

The LP Token follows the same rule:

cˉ0=1λcˉ0,c0=Lcˉ0=c0.\boxed{ \bar c_0' = \frac{1}{\lambda}\bar c_0, \qquad c_0'=L'\bar c_0'=c_0. }

The complete homomorphism makes the physical price effects explicit. For a participating Reserve Asset,

PiPi=LLcˉicˉi(aiai)eP=λ1λ(1+ri)eP=(1+ri)eP.\begin{aligned} \frac{P_i'}{P_i} &= \frac{L'}{L} \frac{\bar c_i'}{\bar c_i} \left(\frac{a_i'}{a_i}\right)^{-e_P}\\ &= \lambda \frac{1}{\lambda} (1+r_i)^{-e_P}\\ &= (1+r_i)^{-e_P}. \end{aligned}

For the LP Token,

P0P0=(1+r0)eP.\boxed{ \frac{P_0'}{P_0} = (1+r_0)^{-e_P}. }

For a nonparticipating Reserve Asset,

PjPj=λ.\boxed{ \frac{P_j'}{P_j} = \lambda. }

The gauge transformation changes the coordinate representation while preserving the physical liquidity action. The complete homomorphism connects the accumulator update, the inverse participant compensations, and the resulting effective prices in one multiplicative law.

9. Liquidity admissibility and dispersion

This section assumes 0<es<10<e_s<1. Section 8.1 gives the exact es=0e_s=0 boundary equations.

For m<nm<n, an action is admissible only when

λ>0.\boxed{\lambda>0.}

Using value-flow balance to eliminate r0r_0, the exact condition is

[i=1msis0(1+ri)es]eP/es[i=1msis0(1+ri)eP]<1.\boxed{ \left[ \sum_{i=1}^{m} \frac{s_i}{s_0}(1+r_i)^{e_s} \right]^{e_P/e_s} \left[ \sum_{i=1}^{m} \frac{s_i}{s_0}(1+r_i)^{-e_P} \right] <1. }

Equality gives λ=0\lambda=0; a value above one gives λ<0\lambda<0.

The condition is invariant when every participating multiplier 1+ri1+r_i is multiplied by the same positive factor. It therefore measures relative dispersion among the participating Reserve Asset changes independently of their common level.

The weighted power-mean inequality gives

[i=1msis0(1+ri)es]eP/es[i=1msis0(1+ri)eP](i=1msis0)1/es.\boxed{ \left[ \sum_{i=1}^{m} \frac{s_i}{s_0}(1+r_i)^{e_s} \right]^{e_P/e_s} \left[ \sum_{i=1}^{m} \frac{s_i}{s_0}(1+r_i)^{-e_P} \right] \ge \left( \sum_{i=1}^{m}\frac{s_i}{s_0} \right)^{1/e_s}. }

Equality holds exactly when

r1=r2==rm.r_1=r_2=\cdots=r_m.

9.1 Single-asset liquidity

For m=1m=1, the dispersion expression reduces to

(s1s0)1/es<1.\left(\frac{s_1}{s_0}\right)^{1/e_s}<1.

The action is admissible for every finite r1>1r_1>-1. Every nontrivial single-Reserve-Asset liquidity action satisfies

0<λ<1.\boxed{0<\lambda<1.}

Its state-independent lower bound is zero. Every finite action has positive λ\lambda, with λ\lambda approaching zero near an action boundary.

It has price impact because the active Reserve Asset and LP Token change reserves while the complement coefficients contract.

9.2 All-Reserve-Asset liquidity

For m=nm=n with 0<es<10<e_s<1, every Reserve Asset participates, the complement is empty, and λ\lambda disappears from the equations. The aggregate scale identity is possible exactly when

ri=r0\boxed{r_i=r_0}

for every Reserve Asset.

This is proportional all-Reserve-Asset liquidity. Every Reserve Asset price receives the same multiplicative response, so Reserve Asset relative prices remain constant. The action has zero relative price impact.

9.3 Partial multi-asset liquidity

For 1<m<n1<m<n, admissibility depends on the exact dispersion inequality above. Participating scales and relative dispersion determine the sign of λ\lambda.

Proportional partial liquidity has

r1=r2==rm.\boxed{r_1=r_2=\cdots=r_m.}

For a proper participating subset,

0<i=1msis0<1.0< \sum_{i=1}^{m}\frac{s_i}{s_0} <1.

Substitution into the dispersion expression gives

(i=1msis0)1/es<1,\left( \sum_{i=1}^{m}\frac{s_i}{s_0} \right)^{1/e_s} <1,

so every finite proportional m1m\leftrightarrow1 action with m<nm<n is admissible. More general unequal partial liquidity is admissible exactly when its dispersion expression is below one. In either case, the projective proof in Section 10 applies whenever λ>0\lambda>0.

9.4 The exact two-Reserve-Asset boundary

For two participating Reserve Assets, λ=0\lambda=0 exactly when

[s1s0+s2s0(1+r21+r1)es]eP/es[s1s0+s2s0(1+r21+r1)eP]=1.\boxed{ \left[ \frac{s_1}{s_0} + \frac{s_2}{s_0} \left(\frac{1+r_2}{1+r_1}\right)^{e_s} \right]^{e_P/e_s} \left[ \frac{s_1}{s_0} + \frac{s_2}{s_0} \left(\frac{1+r_2}{1+r_1}\right)^{-e_P} \right] =1. }

The boundary depends only on

1+r21+r1,\frac{1+r_2}{1+r_1},

and is invariant under a common scaling of the two changes. When r2=r1+drr_2=r_1+dr, the admissible interval for drdr therefore scales with 1+r11+r_1.

At

es=eP=12,e_s=e_P=\frac12,

the two boundaries are

1+r21+r1=[s02s12s22±(s02s12s22)24s12s222s1s2]2.\boxed{ \frac{1+r_2}{1+r_1} = \left[ \frac{ s_0^2-s_1^2-s_2^2 \pm \sqrt{ (s_0^2-s_1^2-s_2^2)^2 -4s_1^2s_2^2 } }{2s_1s_2} \right]^2. }

Between the two boundaries λ>0\lambda>0. At either boundary λ=0\lambda=0; beyond the interval λ<0\lambda<0. This closed form makes the dispersion boundary explicit.

10. Gauge-invariant safety

The balance identity

s0=isis_0=\sum_i s_i

and the elastic state equations imply

sis0=cic0(aia0)es.\boxed{ \frac{s_i}{s_0} = \frac{c_i}{c_0} \left(\frac{a_i}{a_0}\right)^{e_s}. }

Summing over Reserve Assets gives

icic0(aia0)es=1.\boxed{ \sum_i \frac{c_i}{c_0} \left(\frac{a_i}{a_0}\right)^{e_s} =1. }

The normalized identity alone does not yet choose a direction of safe motion. It only says that the Reserve Asset terms must add to one. The direction comes from asking what part of the state is physical and what part is only a common scale gauge.

Why ratios?

Multiplying every scale by the same positive factor multiplies every price and every coefficient by that factor. It does not change any reserve amount, scale share, or relative price. In particular,

PiPj\frac{P_i}{P_j}

and

sis0\frac{s_i}{s_0}

do not change. A safety test based on an absolute coefficient would therefore depend on the chosen common scale representation.

The corresponding gauge-invariant coefficient coordinate is

cic0=sis0(a0ai)es.\boxed{ \frac{c_i}{c_0} = \frac{s_i}{s_0} \left(\frac{a_0}{a_i}\right)^{e_s}. }

The LP Token coefficient belongs in the denominator because the LP Token is the derived claim on the complete Reserve. The ratio compares Reserve Asset ii's elastic curve with the elastic curve of one unit of the pool claim. It removes both the common scale gauge and the raw reserve-size effect.

Why must the ratios not increase?

At the endpoint,

1=icic0(aia0)es.1 = \sum_i \frac{c_i'}{c_0'} \left(\frac{a_i'}{a_0'}\right)^{e_s}.

There are two ways an endpoint could make a Reserve Asset term larger:

  1. the Reserve amount per LP Token can increase; or
  2. the Reserve coefficient can be written up relative to the LP Token coefficient.

Only the first is additional quantity backing. The second changes the relative valuation curve.

Multiswap therefore uses the componentwise projective condition

cic0cic0for every Reserve Asset i.\boxed{ \frac{c_i'}{c_0'} \le \frac{c_i}{c_0} \quad\text{for every Reserve Asset }i. }

Under this condition, the endpoint cannot rely on a relative coefficient increase. Replacing each endpoint coefficient ratio by its opening ratio can only increase the left side:

1icic0(aia0)es.1 \le \sum_i \frac{c_i}{c_0} \left(\frac{a_i'}{a_0'}\right)^{e_s}.

That is the exact inequality needed for the LP-backing theorem below.

The condition is componentwise rather than aggregate. One Reserve Asset cannot receive a relative coefficient write-up merely because another Reserve Asset supplies enough value to conceal it in a scalar total. This separability is also what makes the certificate persist through later actions.

10.1 LP-backing theorem

Apply the endpoint balance identity and the projective inequalities:

1icic0(aia0)es.1 \le \sum_i \frac{c_i}{c_0} \left(\frac{a_i'}{a_0'}\right)^{e_s}.

Using the opening identity,

1isis0(ai/a0ai/a0)es.1 \le \sum_i \frac{s_i}{s_0} \left( \frac{a_i'/a_0'}{a_i/a_0} \right)^{e_s}.

Because xesx^{e_s} is concave for 0<es<10<e_s<1, Jensen's inequality gives

iPiaia0iPiaia0.\boxed{ \frac{\sum_i P_i a_i'}{a_0'} \ge \frac{\sum_i P_i a_i}{a_0}. }

The endpoint Reserve basket per LP Token cannot be worth less at the opening Reserve prices.

This implication explains the direction of the projective inequality. A nonincrease in every ci/c0c_i/c_0 forces sufficient quantity backing at the opening prices. An increase in one ratio would break this proof, although it would not by itself prove that the endpoint fails every possible aggregate safety test.

10.2 Composition

The ratios compose directly. If every primitive action satisfies

ci(k+1)c0(k+1)ci(k)c0(k),\frac{c_i^{(k+1)}}{c_0^{(k+1)}} \le \frac{c_i^{(k)}}{c_0^{(k)}},

then every finite sequence satisfies

cifinalc0finalciinitialc0initial.\boxed{ \frac{c_i^{\mathrm{final}}}{c_0^{\mathrm{final}}} \le \frac{c_i^{\mathrm{initial}}}{c_0^{\mathrm{initial}}}. }

This is the round-trip-plus-subsequent-action theorem for the closed Reserve--LP system. A scalar one-action backing inequality does not supply this componentwise state certificate. The ratio order does: each later action starts from ratios that are no larger than those before it.

Status of the criterion

Within this article, “projectively safe” means exactly that every Reserve Asset ratio ci/c0c_i/c_0 is nonincreasing. The condition is therefore necessary and sufficient for membership in this projective partial order.

The LP-backing theorem proves that the order is an economically meaningful sufficient safety certificate. It does not prove that every endpoint outside the order is economically unsafe. Establishing a necessary-and-sufficient criterion over every possible protocol action would require showing that any relative coefficient increase can be converted into a harmful admissible sequence. That stronger converse remains open.

10.3 Supported operation classes

For an atomic mm-to-nn swap, Reserve coefficients remain fixed, LP Token supply remains fixed, and post-trade value flow plus concavity makes the derived LP scale nondecreasing. Every ratio ci/c0c_i/c_0 therefore satisfies the projective condition.

For an admissible m1m\leftrightarrow1 liquidity action with m<nm<n, participating Reserve coefficients and the LP Token coefficient remain fixed. Each nonparticipating Reserve coefficient receives the multiplier 0<λ<10<\lambda<1. Participating ratios remain unchanged and complement ratios decrease.

For proportional N1N\leftrightarrow1 liquidity, every Reserve and the LP Token changes by the same reserve factor. Every ai/a0a_i/a_0 and ci/c0c_i/c_0 remains unchanged. Absolute P0P_0 may decrease on provision, but every PiP_i receives the same factor, so every relative LP Token price

P0,i=P0PiP_{0,i}=\frac{P_0}{P_i}

is unchanged.

Thus, under exact arithmetic and the stated admissibility conditions:

  1. atomic mm-to-nn swaps with m+nNm+n\le N are safe;
  2. proportional m1m\leftrightarrow1 liquidity with mNm\le N is safe; and
  3. unequal partial m1m\leftrightarrow1 liquidity is safe whenever its exact dispersion condition gives λ>0\lambda>0.

11. Value-flow entropy

For 0<es<10<e_s<1, the projective order admits one useful dimensionless summary. Fix positive reference coefficients c0,c_{0,*} and ci,c_{i,*} and define

H=logc0c0,1n1i=1nlogcici,.\boxed{ \mathcal H = \log\frac{c_0}{c_{0,*}} - \frac1{n-1} \sum_{i=1}^{n} \log\frac{c_i}{c_{i,*}}. }

This quantity is called value-flow entropy. It is an additive logarithmic measure of the model's one-sided coefficient evolution. Shannon entropy uses probability distributions; physical entropy uses thermodynamic state variables; value-flow entropy uses coefficient ratios.

For a swap,

ΔHswap=logc0c0>0.\boxed{ \Delta\mathcal H_{\mathrm{swap}} = \log\frac{c_0'}{c_0} >0. }

For single-asset liquidity, n1n-1 complement coefficients receive the same multiplier λ\lambda:

ΔHliquidity=logλ>0.\boxed{ \Delta\mathcal H_{\mathrm{liquidity}} = -\log\lambda >0. }

For proportional all-Reserve-Asset liquidity, every coefficient is preserved, so

ΔH=0.\boxed{\Delta\mathcal H=0.}

For an LP Token burn, c0c_0 increases and therefore H\mathcal H increases.

Every supported finite sequence satisfies

ΔH0.\boxed{\Delta\mathcal H\ge0.}

At es=0e_s=0, swaps, liquidity actions, and LP Token burns preserve every coefficient. Value-flow entropy is therefore constant across these operations:

ΔH=0.\boxed{\Delta\mathcal H=0.}

The name “entropy” is justified by three exact properties:

  1. it is additive under composition because coefficient ratios multiply;
  2. it is nondecreasing under every supported operation;
  3. its finite-step production vanishes in the continuously divided limit.

The word entropy applies here through additive monotonicity under state composition. In this model, the essential structure is an additive monotone on state transitions.

12. Externally owned Surplus

Surplus is an open-system extension, not another Reserve account. CavalRe-owned CAV is posted as an exact same-token asset--liability pair:

DebitCredit
Surplus CAVCavalRe Payable CAV

The two balances inherit the same CAV price and cancel under every repricing. A pure Surplus sale changes no Reserve or LP Token coordinate and is projectively neutral.

A mixed sale may route independent pay and receive fractions through Reserve. Its external matched journals remain neutral; its complete Reserve endpoint must satisfy

ciSc0Scic0i.\frac{c_i^S}{c_0^S} \le \frac{c_i}{c_0} \quad\forall i.

The detailed journals, general endpoint test, safe equal-fraction subfamily, and round-trip interpretation are developed in Externally Owned Surplus.

13. Elasticity changes

The equations above assume one fixed ese_s and ePe_P. If elasticity changes from ePe_P to ePe_P', then

Pi=ciaieP,Pi=ci(ai)eP,P_i=c_i a_i^{-e_P}, \qquad P_i'=c_i'(a_i')^{-e_P'},

so the complete transition is

PiPi=cici(ai)ePaieP.\boxed{ \frac{P_i'}{P_i} = \frac{c_i'}{c_i} \frac{(a_i')^{-e_P'}}{a_i^{-e_P}}. }

The complete expression retains both exponents:

cici(aiai)eP.\frac{c_i'}{c_i} \left(\frac{a_i'}{a_i}\right)^{-e_P}.

An elasticity change is therefore a distinct parameter transition.

One policy holds aia_i and cic_i fixed, allowing the new elasticity to change sis_i and PiP_i according to the state equations. A second policy holds aia_i, sis_i, and PiP_i fixed by changing cic_i. Each policy defines a distinct protocol action with distinct economic consequences.

The production candidate keeps elasticity fixed during trading. Any future elasticity transition uses a paused, explicitly specified process analyzed together with its coefficient rule. A dedicated transition theorem governs that boundary.

14. Deposit phases and other protocol actions

A deposit phase uses an independent capitalization and distribution specification. Its rules govern reserve, scale, ownership, and distribution accounting.

Fees, reward distributions, Treasury transfers, oracle updates, and administrative state changes each carry an explicit reserve, scale, and coefficient rule.

The Post-Trade Elasticity Model governs swaps and supported LP Token liquidity actions; adjacent protocol modules carry their own specifications.

15. Solidity implementation and boundaries

The existing Multiswap ledger representation already provides the native state required by the model:

  • every Reserve Asset has reserve and scale;
  • the LP Token has reserve and scale;
  • the ledger tree enforces s0=isis_0=\sum_i s_i.

The coefficient is derived directly:

ci=siaies.c_i=\frac{s_i}{a_i^{e_s}}.

It follows from reserve, scale, and the pool elasticity. Liquidity's common complement transformation can use the existing scale-accumulator pattern with constant-time writes.

The swap implementation and its validation address:

  1. one fixed pool-wide elasticity;
  2. normalized value-flow evaluation;
  3. monotone inversion for receive legs;
  4. atomic mm-to-nn value-flow allocation;
  5. duplicate-token validation;
  6. positive-reserve and positive-scale enforcement;
  7. exact-input output rounding in favor of the pool;
  8. token-unit receive minimums for the public exact-input API;
  9. stale-quote and reentrancy protection;
  10. exact updates to the Reserve Asset scales and LP Token scale.

The liquidity engine additionally requires:

  1. proportional m1m\leftrightarrow1 validation for every participating subset, including m=1m=1 and m=Nm=N;
  2. exact LP Token value-flow solving;
  3. positive-λ\lambda enforcement for single-asset liquidity;
  4. scale-accumulator updates for the nonparticipating complement;
  5. projective-ratio invariant tests;
  6. LP Token burn accounting.

The TypeScript reference implementation covers:

  • exact two-asset swaps;
  • atomic multi-asset swaps;
  • single-asset liquidity;
  • coefficient transitions;
  • divergence and value-flow entropy;
  • round trips and mixed-operation sequences;
  • elasticity, scale, and trade-size grids;
  • the reduction of finite-step production under splitting.

The Solidity implementation uses FloatLib, explicit inverse paths at es=0e_s=0 and es=1/2e_s=1/2, and a numerical inverse for other supported elasticities. Public swaps use exact pay amounts and per-asset receive minimums. Liquidity operations support proportional participating reserves only, using the scale accumulator for the complement. Coefficients are derived rather than stored.

Surplus settlement first computes the direct quote and checks the entire receive basket for conservative top-up coverage. A qualifying basket receives a second quote with reduced pay amounts entering reserves; Surplus funds the difference so the user receives the direct quote’s amounts. Deposit phases instead add oracle-valued amounts and scales to existing state, with re-sealing and effective-to-base-scale conversion. See Quote Engine and Deposit Phase Lifecycle for the implementation details.

These implementation facts do not extend the exact-arithmetic proofs to every rounding path, administrative transition, or token behavior. Security review and independent validation remain necessary.

16. Established results and open boundaries

Under exact arithmetic and the stated domain qualifications, the model establishes:

  1. fixed-coefficient reserve changes have a multiplicative reserve-to-price homomorphism for 0es<10\le e_s<1;
  2. normalized post-trade value flow is strictly monotone and uniquely invertible;
  3. atomic mm-to-nn swaps conserve transaction-level post-trade value flow;
  4. every nontrivial finite swap with 0<es<10<e_s<1 produces positive divergence;
  5. proportional m1m\leftrightarrow1 liquidity is admissible and projectively safe for every mNm\le N;
  6. unequal partial m1m\leftrightarrow1 liquidity is admissible and projectively safe when λ>0\lambda>0;
  7. the ratios ci/c0c_i/c_0 provide a gauge-invariant safety certificate;
  8. that certificate protects opening-price Reserve backing per LP Token; and
  9. the certificate composes across every finite sequence in the closed Reserve--LP system.

Further engineering and research topics include:

  • fixed-point power evaluation, solver accuracy, and pool-favorable rounding;
  • fee, Rewards, and Treasury accounting;
  • moving external prices, arbitrage, MEV, and oracle use;
  • elasticity transitions;
  • independently priced claims and unmatched liabilities;
  • token-behavior eligibility;
  • validation of oracle-valued deposit settlement; and
  • implementation security and independent audit.

Conclusion

Post-Trade Elasticity is a state-transition model for atomic Reserve Asset swaps and controlled LP Token liquidity.

Its swap core is

Σi=siri(1+ri)eP,iΣi=0.\boxed{ \Sigma_i = s_i\frac{r_i}{(1+r_i)^{e_P}}, \qquad \sum_i\Sigma_i=0. }

Its state geometry is

Pi=ciaieP,PiPi=cici(aiai)eP.\boxed{ P_i=c_i a_i^{-e_P}, \qquad \frac{P_i'}{P_i} = \frac{c_i'}{c_i} \left(\frac{a_i'}{a_i}\right)^{-e_P}. }

Swaps and admissible liquidity operations make every projective coefficient ratio ci/c0c_i/c_0 nonincreasing. This ratio order is the model's internal safety certificate and composes across finite sequences.

The complete lesson joins the reserve power law with an explicit coefficient law. Every protocol action declares both parts of its state transition:

reserve motion+coefficient motion.\boxed{ \text{reserve motion} \quad+\quad \text{coefficient motion}. }

Once both are explicit, swaps, liquidity, gauge-invariant safety, and open-system extensions fit into one consistent Multiswap framework.