Deterministic OTC Settlement
An architecture for trustless, multi-asset peer-to-peer exchanges on the Interchain network.
1. Introduction
Over-the-Counter (OTC) trading in decentralized finance has historically been fraught with UX friction and security vulnerabilities. Traditional atomic swaps often require complex smart contract interactions or suffer from non-deterministic states where one party can grief the other.
TradeWindow introduces a strict, append-only negotiation protocol combined with a double-lock deterministic settlement engine, built explicitly for the AtomOne and Gno.land ecosystems.
2. The Double-Lock Mechanism
To eliminate substitution scams (where a counterparty swaps an asset at the last millisecond), TradeWindow enforces an append-only state. Assets cannot be removed from an offer once added.
When a party is satisfied with their bundle, they "Lock" their side. The smart contract requires both parties to have an active lock. If either party modifies their bundle (which forces an append), all existing locks are instantly invalidated and must be explicitly re-approved.
3. Technical Traceability
Display names (e.g., "USDC") are easily spoofed. The UI enforces technical traceability, requiring users to inspect the underlying `baseDenom`, `sourceChain`, and `ibcTrace`.
By surfacing this data deterministically from the chain registry, we remove the reliance on front-end curation.
4. Future: NFTs and RWAs
While the MVP focuses on fungible tokens (ATONE, PHOTON), the backend architecture treats all assets as generic interfaces. This paves the way for direct P2P exchange of Non-Fungible Tokens (NFTs) and Real-World Assets (RWAs) registered on Gno.land.