Fetching Purchase Fees
The AgoraStableSwapPair contract stores the current purchase-fee rate (in 18-dec “fee precision” units) for each token direction:
token0PurchaseFee– fee charged when buying token0 (i.e., swapping into token0).token1PurchaseFee– fee charged when buying token1.
1. Pick a pair address
2. Helper to read the purchase fees
3. Run the query
This is the value stored by the contract. In order to convert these units to human readable values, we’ll need to divide the output by the ERC20 token decimals.

