FxEscrow) has a set of interfaces you can use to
execute trades either as a maker or a taker. This page describes the user-facing
methods of the StableFX contract.
Contract address
TheFxEscrow contract is deployed at
0x867650F5eAe8df91445971f14d89fd84F0C9a9f8
on the Arc testnet.
Interfaces
recordTrade
Records a trade agreement onchain. Returns the contract ID of the trade.
Returns
takerDeliver
Delivers quote currency for a single trade using Permit2 on the taker side.
takerBatchDeliver
Delivers quote currency for multiple trades using Permit2 on the taker side.
makerDeliver
Delivers base currency for a single trade using Permit2 on the maker side.
makerBatchDeliver
Delivers quote currency for multiple trades using Permit2 on the maker side.
makerNetDeliver
Net settlement for multiple trades on the maker side.
breach
Marks a trade as breached after maturity.
breach (batch)
Marks multiple trades as breached after maturity.
calculateMakerNet
Calculate maker net token positions for batch operations. Returns an array of
Balance structs representing net positions.
Returns