Documentation Index
Fetch the complete documentation index at: https://docs.ratiofx.com/llms.txt
Use this file to discover all available pages before exploring further.
Atomic Settlement
Every FX swap on Ratio settles atomically on the Kaia blockchain. Both sides of the trade execute in a single transaction — the source pool debit and the destination pool credit happen simultaneously. Either both complete or neither does. There is no settlement risk window, no partial fills, and no counterparty exposure.How it works
Destination pool credit
The destination stablecoin (e.g., IDRX) is credited to the destination address you specified.
Fee collection
Swap fees are collected and distributed to the protocol treasury, pool LPs, and the global fee pool — all in the same transaction.
What you receive after settlement
After a swap settles, the API response includes:| Field | Description |
|---|---|
tx_hash | The on-chain transaction hash. Independently verifiable on any Kaia block explorer. |
settled_at | The UTC timestamp of settlement confirmation. |
filled_rate | The actual execution rate achieved. |
tx_hash as the single source of truth for reconciliation. The on-chain record is immutable and does not require cross-referencing with Ratio’s systems.
Why atomic settlement matters
Traditional cross-border FX carries a well-known risk called Herstatt risk — the danger that one counterparty delivers their currency but the other fails to deliver. This risk exists because traditional FX settlement happens across different systems, time zones, and clearing houses, often with T+1 or T+2 delays.Atomic settlement on Kaia eliminates Herstatt risk entirely. There is no window where one party has delivered and the other has not — both sides settle simultaneously in the same transaction.
- Zero counterparty risk — No exposure between trade execution and settlement.
- No T+ delays — Settlement is immediate, not next-day or two-day.
- No partial fills — A swap either completes fully or reverts entirely. You never end up in a half-settled state.
- No reconciliation overhead — The on-chain transaction record is the single source of truth. You do not need to cross-reference internal ledgers with a counterparty’s records.
- Full auditability — Every settlement is permanently recorded on-chain and available to auditors, regulators, and your compliance team.