Mechanism
How Thesalink baskets mint, price, and redeem.
Fixed raw amounts in. Fixed raw amounts out. Prices only at view time.
Flow
- Basket creation stores a fixed raw amount per stock token.
- Mint accepts ETH, routes execution through RFQ, and locks the fixed amounts against new Thesalink basket shares.
- View reads each Chainlink feed, checks staleness, and computes value per token.
- Redeem burns Thesalink basket shares and returns stored raw amounts, rounded down, with no oracle read.
Pricing rule
value = raw balanceOf * price / 1e8
never: displayAmount * priceThe Chainlink price already includes the ui multiplier. Multiplying the display amount by the price would double-count it. See stock token tech for the full derivation.
