DLN is an on-chain system of smart contracts where users (we call them makers) place their cross-chain limit orders, giving a specific amount of input token on the source chain (
giveChain) and specifying the outcome they are willing to take on the destination chain (
takeChain). The given amount is being locked by the
DlnSourcesmart contract on the source chain and anyone with enough liquidity (called Takers) can attempt to fulfill the order by calling the
DlnDestinationsmart contract on the destination chain supplying the requested amount of tokens the maker is willing to take. After the order is fulfilled, the supplied amount is immediately transferred to the receiver, and a cross-chain message is sent to the source chain via the deBridge infrastructure to unlock the funds, effectively completing the order.Getting ready to make on-chain calls
DLN consists of two contracts: the
DlnSourcecontract responsible for order placement, and the
DlnDestinationcontract responsible for order fulfillment.