Skip to main content
The StableFX smart contract (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

The FxEscrow contract is deployed at 0x867650F5eAe8df91445971f14d89fd84F0C9a9f8 on the Arc testnet.

Interfaces

recordTrade

Records a trade agreement onchain. Returns the contract ID of the trade.
Parameters Returns

takerDeliver

Delivers quote currency for a single trade using Permit2 on the taker side.
Parameters

takerBatchDeliver

Delivers quote currency for multiple trades using Permit2 on the taker side.
Parameters

makerDeliver

Delivers base currency for a single trade using Permit2 on the maker side.
Parameters

makerBatchDeliver

Delivers quote currency for multiple trades using Permit2 on the maker side.
Parameters

makerNetDeliver

Net settlement for multiple trades on the maker side.
Parameters

breach

Marks a trade as breached after maturity.
Parameters

breach (batch)

Marks multiple trades as breached after maturity.
Parameters

calculateMakerNet

Calculate maker net token positions for batch operations. Returns an array of Balance structs representing net positions.
Parameters Returns