Mechanism
How Thesalink baskets mint, price, and redeem.
Fixed amounts in. Fixed amounts out. Prices only at view time.
Flow
- Basket creation stores a fixed amount per stock token.
- Mint accepts the quote asset, routes execution through aggregated Jupiter routing, and locks the fixed amounts against new basket shares.
- View reads each reference feed, checks the session state, and computes value per token.
- Redeem burns basket shares and returns stored amounts, rounded down, with no oracle read.
Pricing rule
value = amount × reference price
never: displayAmount × priceReference prices carry the session state with them. A closed session means no live price — the row shows STALE, not a number. See stock token tech for the full derivation.
