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 the following addresses:
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 base 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