Introduction

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 (giveAmount of the giveToken on the giveChain) and specifying the outcome they are willing to take on the destination chain (takeAmount of the takeToken on the takeChain). The given amount is being locked by the DlnSource smart contract on the source chain and anyone with enough liquidity (called Takers) can attempt to fulfill the order by calling the DlnDestination smart 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 DlnSource contract responsible for order placement, and the DlnDestination contract responsible for order fulfillment.
Currently, both contracts are deployed on the supported blockchains effectively allowing anyone to place orders in any direction. Contract addresses and ABIs can be found here: Trusted Smart Contracts​
​