x·y = k in plain English
The TT/LabUSDT pool keeps the product of reserves constant. When a trader adds LabUSDT, the pool must remove TT to maintain k. The execution price equals the slope of the curve between the start and end points.
Initial: TT = 100,000 · LabUSDT = 100,000 → k = 10,000,000,000 Swap 1,000 LabUSDT in → new LabUSDT = 101,000 Solve for TT: TT = k / LabUSDT ≈ 99,009.9 Trader receives ≈ 990.1 TT minus 0.3% fee to LPs
TrustToken stays 18 decimals, LabUSDT is 6 decimals. The router handles precision so you can focus on the swap logic.