A deposit into a mixed bin
At P = 100 tUSDC/WHYPE, bin 10 is priced at 100.5. Suppose it contains 2 WHYPE and 201 tUSDC, with 402,000,000 outstanding share atoms. The reserves are worth 402,000,000 quote atoms at this midpoint. A new deposit of 1 WHYPE has value 100,500,000 quote atoms.
= 100,500,000 share atoms
Post-deposit supply is 502,500,000, giving the depositor exactly one fifth of each reserve. Consequently the position already contains exposure to tUSDC even though the deposit consisted entirely of WHYPE.
Redemption and residual atoms
For each bin in the position, previewWithdraw and withdraw calculate the token quantities using the same pre-burn supply. For balances hᵢ and supplies Hᵢ, the sums below run over bins where hᵢ > 0.
quoteOut = ∑ᵢ ⌊Qᵢ · hᵢ / Hᵢ⌋
Each per-token quotient is rounded before aggregation. Fractional entitlements stay in that bin for its remaining shareholders. A sole remaining shareholder redeeming every share receives the full integer reserves. Redemption closes the complete position and requires no oracle observation.
A bin that has sold all of its WHYPE can still hold tUSDC and carry a positive position value. It has zero buy-side capacity at that moment. Further buys must find higher bins with WHYPE, while a sell can restore base inventory if the directional walk reaches this bin.