Price

1. Overview

The TRS system integrates a multi-source pricing mechanism to ensure accurate market pricing and fair execution for users. The displayed price for K-line charts is sourced from third-party providers to help traders make informed decisions. However, actual trade execution prices are determined by the transaction routing process.


2. Pricing Components

2.1 Frontend Display Price

  • The K-line chart price is sourced from third-party data providers, offering users an indicative market price for reference before placing orders.

  • This displayed price is not the final execution price but serves as a guide for users when making trading decisions.

2.2 Execution Price

  • The actual transaction price is determined by the trading route’s returned execution price at the time of order fulfillment.

  • Users can manually accept slippage when placing trades, ensuring control over potential price fluctuations.

2.3 Oracle Price in TRS Contracts

  • The TRS contract utilizes Chainlink as its primary price oracle, ensuring secure and decentralized price feeds for on-chain execution.

  • Additionally, prices from AMM liquidity pools within the trading route also contribute to the price determination in the TRS contract.


3. Liquidation Price Verification

  • When liquidation is triggered, the smart contract conducts a secondary price check using AMM pool pricing.

  • If the liquidation conditions are not met based on AMM price verification, the liquidation will be halted, protecting users from unfair or erroneous liquidations.


4. Summary

The TRS pricing mechanism ensures a transparent and fair trading environment by integrating third-party market prices, decentralized oracle pricing, and AMM pool-based price verification. The multi-layered price validation prevents unexpected liquidations and enhances user confidence in the system.

Last updated