Fetching Pair Price
AgoraStableSwapPair exposes two read functions for price discovery:
1. Pick the pair address
2. Helper to read the price
3. Run the query (with a 5-minute deadline)
Token order in the pair
Deadline logic
For pairs where token1 is interest-bearing, passing a future timestamp guards against receiving fewer tokens than expected if block processing is delayed. For non-yield token pairs, deadline simply replays the current price.
Understanding Pricing
Since token0 and token1 might have different decimals, the pricing of the pair follows:

