Overview
Inter-Blockchain Communication on Nolus.
Nolus connects to other Cosmos zones over IBC and uses Interchain Accounts (ICA) on counterparty chains to execute swaps as part of opening, repaying, and closing margin positions.
How a packet flows
Two chains don't talk to each other directly. A relayer process watches both ends, picks up packets emitted on one chain, builds the corresponding message, and submits it to the other - then carries the acknowledgment back.
Running a Hermes relayer for Nolus is documented under Network > IBC relayer.
Anyone can run a relayer - see Network > IBC relayer for the operator side.
Counterparty integration
Each supported DEX is wired up as a protocol in the
nolus-money-market
workspace, with the channel/connection configuration baked into the
network's genesis or a governance upgrade.
Adding a new DEX
The nolus-core repo includes a helper to deploy a new DEX integration on a
live network - see
scripts/add-new-dex.sh
for the full set of arguments.