Architecture
Last updated
Was this helpful?
Last updated
Was this helpful?
Pheasant Swap's architecture consists of four main components.
DApp: A DApp with cross-chain swap functionality. It uses PheasantSDK to quote a swap request, which is then submitted to the PheasantNetworkSwap contract for execution.
DEX Protocol: DEX protocols integrated with Pheasant Network. These protocols receive swap requests from the PheasantNetworkSwap contract, execute the transactions, and return the results to the DApp.
PheasantNetworkSwap Contract: A smart contract that facilitates swap execution by directing requests to the appropriate DEX protocols.
Relayer: An actor that tracks swap statuses from initiation to completion. If the swap succeeds, the relayer withdraws the applicable fee; if it fails, the relayer refunds the relayer fee to the user.