DLN charges a small fee when an order is created through DlnSource smart contracts. The fee is what users pay for confidence and decentralization. It consists of two parts:
A flat fee is paid in the native gas token of the chain where the order is created
A variable fee of 4bps is paid in the input token
Chain (Chain id)
The fee is fully refunded in case the limit order is canceled.
Protocol fees can be changed. Hence, for any on-chain interactions with DLN, fees must not be hardcoded but queried dynamically from the state of the DLN smart contract. Please refer to Estimating the order to learn how to query the actual flat fee from the smart contract.