bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 31쪽 중 14쪽
ing in bankruptcy, liquidation, dissolution, receivership, attachment or composition or general assignment for
the benefit of creditors that is not dismissed with prejudice within 30 days after the institution of such proceeding.
* 3. Notwithstanding any of the provisions herein, the Licensor shall have the right to terminate this Agreement upon ten (10) days' written notice to
the Client.
* 4. Upon termination of this Agreement, the Licensor may immediately revoke all of the Keys provided to the Cross-chain Bridge Services and/or the
APIs. The Parties shall also comply with the provisions regarding Confidential Information under Clause 10(b). Any termination of this Agreement
shall automatically terminate the licenses granted hereunder.
* 5. Clauses 4, 5, 10, 12, 13, 15, 16 and 17 (and any accrued rights to payment) shall survive termination of this Agreement.
17. GENERAL
* 1) Except as may be otherwise specifically provided in this Agreement and unless the context otherwise requires, in this Agreement: (i) the terms
"Agreement", "this Agreement", "the Agreement", "hereto", "hereof", "herein", "hereby", "hereunder" and similar expressions refer to this
Agreement in its entirety and not to any particular provision hereof; (ii) references to a "Clause" or "Schedule" followed by a number or letter
refer to the specified Clause of or Schedule to this Agreement; (iii) the division of this Agreement into sections and the insertion of headings
are for convenience of reference only and shall not affect the construction or interpretation of this Agreement; (iv) words importing the
singular number only shall include the plural and vice versa and words importing the use of any gender shall include all genders; (v) the word
"including" is deemed to mean "including without limitation"; (vi) the terms "Party" and "the Parties" refer to a Party or the Parties to this
Agreement; (vii) any reference to this Agreement means this Agreement as amended, modified, replaced or supplemented from time to time; (viii)
any reference to a statute, regulation or rule shall be construed to be a reference thereto as the same may from time to time be amended,
re-enacted or replaced, and any reference to a statute shall include any regulations or rules made thereunder; (ix) any time period within which
a payment is to be made or any other action is to be taken hereunder shall be calculated excluding the day on which the period commences and
including the day on which the period ends; and (x) whenever any payment is required to be made, action is required to be taken or period of time
is to expire on a day other than a "Business Day", being any day other than a Saturday, Sunday or statutory holiday in Panama on which commercial
banks in Panama are open for business, such payment shall be made, action shall be taken or period shall expire on the next following Business
Day.
* 2. The Parties agree that they are independent contractors under this Agreement and nothing in this Agreement authorises either Party to act as a
legal representative or agent of the other for any purpose. It is expressly understood that this Agreement does not establish a franchise
relationship, partnership, principal-agent relationship, or joint venture. Neither Party shall have the power to bind the other with respect to
any obligation to any third Party.
* 3. This Agreement shall be interpreted and enforced in accordance with, and the respective rights and obligations of the Parties shall be governed
by, the laws of Panama. Any controversy or dispute which arises out of or is related to this Agreement, and interpretation, application,
performance or termination thereof, must be decided by arbitration, following an attempt at Conciliation, administered by Panama Conciliation and
Arbitration Centre in accordance with its procedural rules for the time being in force. The tribunal shall consist of 1 arbitrator, who shall
have exclusive authority to decide all issues relating to the interpretation, applicability, enforceability and scope of this Agreement
(including this arbitration agreement). The language used in the arbitral proceedings shall be English. Each Party irrevocably submits to the
jurisdiction and venue of such tribunal. Judgment upon the award may be entered by any court having jurisdiction thereof or having jurisdiction
over the relevant Party or its assets.
* 4. No amendment or waiver of any provision of this Agreement shall be binding on any Party unless consented to in writing by such Party. No waiver
of any provision of this Agreement shall constitute a waiver of any other provision, nor shall any waiver of any provision of this Agreement
constitute a continuing waiver unless otherwise expressly provided.
* 5. If any provision of this Agreement is determined by a court of competent jurisdiction to be invalid, illegal or unenforceable in any respect, all
other provisions of this Agreement shall nevertheless remain in full force and effect so long as the economic or legal substance of the
transactions contemplated hereby is not affected in any manner materially adverse to any Party hereto.
* 6. This Agreement shall ensure to the benefit of and shall be binding on and enforceable by and against the Parties and their respective successors
or heirs, executors, administrators and other legal personal representatives, and permitted assigns.
* 7. No Party may assign any of its rights or benefits under this Agreement, or delegate any of its duties or obligations, except with the prior
written consent of the other Party. Notwithstanding the foregoing, any Party may assign and transfer all of its rights, benefits, duties and
obligations under this Agreement in their entirety, without the consent of the other Party, to: (i) an affiliate, provided that the assignor
shall continue to be subject to the rights and obligations of this Agreement; or (ii) a purchaser of all or substantially all of the business of
the assignor, provided that the assignor promptly provides notice to the non-assigning Party, the successor in interest has agreed to assume all
of the assignor’s rights and obligations and the non-assigning Party has the right to terminate the Agreement upon receipt of notice of transfer
if the successor in interest, in the non-assigning Party’s sole reasonable determination, is a competitor of the non-assigning Party.
* 8. Any notice or other communication required or permitted to be given hereunder shall be in writing and shall be delivered by e-mail or similar
means of recorded electronic communication to the contact details set out in the signature page. Any such notice or other communication shall be
deemed to have been given and received, in the case of electronic mail, at the time that it is received in recipient’s inbox in readable form,
provided that such electronic mail is kept on file (whether electronically or otherwise) by the sending party and the sending party does not
immediately receive an automatically generated message from the recipient’s electronic mail server that such electronic mail could not be
delivered to such recipient. Any Party may at any time change its contact details for service from time to time by giving notice to the other
Party in accordance with this Clause 17(8).
* 9. This Agreement constitutes the entire agreement between the Parties with respect to the subject matter hereof and supersedes all prior
agreements, understandings, negotiations, and discussions, whether written or oral. There are no conditions, covenants, agreements,
representations, warranties, or other provisions, express or implied, collateral, statutory or otherwise, relating to the subject matter hereof
except as provided herein.
* 10. Time shall be of the essence of this Agreement.
* 11. Each Party will pay for its own costs and expenses incurred in connection with the negotiation, preparation, execution and performance of this
Agreement, and the transactions contemplated herein, including the fees and expenses of legal counsel, financial advisors, accountants,
consultants and other professional advisors and software development expenses.
* 12. Neither Party hereto shall be responsible for any failure to perform its obligations under this Agreement if such failure is caused by acts of
God, war, strikes, revolutions, lack or failure of transportation facilities, laws or governmental regulations or other causes that are beyond
the reasonable control of such Party. Obligations hereunder, however, shall in no event be excused but shall be suspended only until the
cessation of any cause of such failure.
* 13. Each of the Parties hereto shall, from time to time hereafter and upon any reasonable request of the other, do, execute, deliver or cause to be
done, executed and delivered, all further acts, documents and things as may be required or necessary for the purposes of giving effect to this
Agreement.
* 14. This Agreement and all documents contemplated by or delivered under or in connection with this Agreement may be executed and delivered in any
number of counterparts, with the same effect as if all Parties had signed and delivered the same document, and all counterparts shall be
construed together to be an original and will constitute one and the same agreement.
# Market and Limit Orders
Source: https://docs.debridge.com/dln-details/overview/market-and-limit-orders
Market and Limit Orders: Joining the deBridge Liquidity Network Protocol as a Solver and Minimization of volatility risks for Solvers.
The main trade-off of the deBridge Liquidity Network design is that order execution is not guaranteed in advance, just as it is not guaranteed by classical bridges based on liquidity pools, where a transaction may fail in the destination chain if slippage exceeds the slippage tolerance specified by the sender.
With the deBridge Liquidity Network Protocol, a transaction can’t fail on the destination chain. An order is either fulfilled or not fulfilled, and if it’s not fulfilled, it means there is no taker willing to take the order. This may happen due to the following reasons:
The order doesn’t generate sufficient profit for a taker. In this case, it’s a limit order that will be fulfilled as soon as market conditions will make it profitable
The order bears certain systemic risks. The advantage of the deBridge Liquidity Network Protocol is that it allows risks to be dynamically priced. Takers may not be willing to fulfill orders coming from chains where exploit or ecosystem-level hacks have happened. In this case, takers will expect a bigger premium laid into the spread of the order so that additional risks are compensated
Users can place orders to exchange any assets at any price, but if the order premium covers all overhead costs for takers and brings them a profit, they are economically incentivized to fulfill the order as fast as possible. In this case, this is a market order that will be settled shortly.
To facilitate the creation of market orders, deBridge provides a Quick Start Guide. Any integrator or an app can query the API in order to retrieve the recommended price for the order for their users and secure its immediate execution. The quote recommended by the API lays in a spread that includes a 4bps incentive for takers and covers overhead costs such as gas.
## Joining the deBridge Liquidity Network Protocol as a Solver
Solvers perform active on-chain liquidity management by fulfilling limit orders created through DLN.
Check [this Github Repository](https://github.com/debridge-finance/dln-taker) to learn more about how to get started as a Solver in DLN.
Solvers don't need to lock liquidity into pools, they always maintain ownership over their funds and have the
sole ability to fulfill limit orders they deem profitable.
<img alt="Creating an order diagram" />
## Minimization of volatility risks for Solvers
To minimize price fluctuation risks for takers, all transactions formed through DLN API automatically route any swap through the paired asset (USDC or
ETH). For example, if the user wants to exchange a token (e.g. AAVE on Ethereum) for another volatile token (e.g. Matic on Polygon), then DLN API will
form the transaction data where AAVE is [pre-swapped](/dln-details/dln-specifics/bridging-non-reserve-assets#pre-order-swap) into USDC, and a
USDC->Matic DLN order is created in the same transaction.
On the destination chain, solvers may hold USDC or ETH on a balance sheet of their on-chain addresses and swap their
asset into the token requested in the order (e.g. MATIC), and fulfill it in the same transaction. When `DlnDestination.sendUnlock()`
is called, the solver will receive the same paired asset (e.g. USDC) on the source chain, avoiding any price
fluctuations of volatile assets.
# Protocol Overview
Source: https://docs.debridge.com/dln-details/overview/protocol-overview
DLN Protocol overview
deBridge uses a high-performance cross-chain trading infrastructure that consists of two layers:
* Protocol layer: on-chain smart contracts
* Infrastructure layer: solvers who perform off-chain matching and on-chain settlement of trades
The deBridge Liquidity Network Protocol is represented by a set of smart contracts that can be called by any on-chain
address to create limit orders for cross-chain trades. When an order is created, the Maker provides a specific amount
of an input token on the source chain and specifies the parameters of the order, such as the token address and the
amount he accepts to receive in the destination chain.
The given amount is then temporarily locked by the DLN smart contract on the source chain, and any on-chain address
(named a solver) with sufficient liquidity in the destination chain can attempt to fulfill the order by calling the
corresponding method of DLN smart contract and supplying the liquidity as requested by the maker in the DLN order
parameters. After the order is fulfilled, a solver initiates a cross-chain message to be sent by the DLN smart contract
to the source chain via the deBridge messaging protocol. When the message is delivered, it unlocks the funds on the
source chain to the solver’s address, effectively completing the order. Below is a graphic outlining the process:
<img alt="Order execution flow diagram" />
# Order Creation
Specifically, there are two contracts deployed per supported chain: the `DlnSource` and the `DlnDestination` contracts.
Whenever a maker decides to trade liquidity, it places an order by calling the `DlnSource.createOrder()` method on the
source chain, providing the typed structure with precise requirements, specifically: the destination chain id, the
address of a token, and the amount they expect to receive, the address of the receiver where the requested tokens
should be sent to on the destination chain, and other system parameters. The smart contract assigns a unique identifier
(hash) to the order, made of the values of its typed structure including the maker-specific determinants (address and
nonce). The given amount of input token is taken from the user by the DlnSource contract and locked until the order
is either unlocked or cancelled, which can happen only through the DlnDestination smart contract on the destination chain.
<img alt="Source Chain Order Creation" />
# Order fulfillment
Solvers perform off-chain tracking of all orders created through DlnSource smart contract, and whenever an order meets
the solver's requirements (for example, the profitability, the margin, or even if the input token is whitelisted),
they can attempt to fulfill the order by calling the `DlnDestination.fulfillOrder()` on the destination chain, supplying
the amount of tokens requested in the order, and the typed structure representing the order placed on the source chain
and order Id. At this point, no cross-chain communication is performed. The DlnDestination contract relies on the fact
that the given order being placed on another chain can only be handled once on the destination chain, so it calculates
the order identifier (hash) using the values from the given structure. It then checks that it matches the order Id
passed by the solver and if the order status hasn’t been assigned as fulfilled or cancelled. The smart contract processes
the order by pulling the necessary amount of requested tokens from the solver and sending it to the receiver address,
finally assigning ‘fulfilled status’ to the order.
<img alt="Destination Chain Order Fulfillment Diagram" />
If the order generates some profit for the one who fulfills it, then solvers will have fair competition for its fulfillment.
For example, an order to exchange 1000 USDC on BNB Chain for 990 USDC on Solana will bring 10 USDC profit to the solver that
is the first to fulfill the order. Solvers are free to set their own requirements for transaction finality on the source chain.
For example, solvers with an aggressive risk profile may decide to fulfill orders after one block confirmation and try to
replay the maker’s transaction in case a reorg of the source chain happens after the order is fulfilled on the destination chain.
# Unlocking fulfilled orders
The first solver that manages to change the status of the order in the DlnDestination smart contract to Fulfilled, gets the
ability to call `DlnDestination.sendUnlock()` method which sends a cross-chain message through deBridge infrastructure to the
`DlnSource` smart contract on the source chain. This message encodes a command to unlock funds initially locked for the given
order identifier, and sends them to the address specified by the solver.
<img alt="Unlocking Fulfilled Orders Diagram" />
When the `DlnSource` smart contract receives a message, before executing the command, it checks the identity of the message sender
(address and chain id), to make sure it matches the identity of the `DlnDestination` smart contract stored in its state.
If a maker decides to cancel their order, it must use a similar flow, and call the `DlnDestination.sendCancel()` method which will succeed
only if the order is neither at the `Fulfilled` nor `Cancelled` status. This method makes the smart contract send a cross-chain message to
the `DlnSource` contract that encodes a command to unlock funds to the maker's address and change the order status to `Cancelled`.
In this case, the `DlnDestination` contract on the destination chain acts as a source of trust for the propagation of the order status and
sending corresponding commands.
Note: In the lifecycle of an order, cross-chain communication (messaging) is only needed once the order has achieved its final status
on the destination chain. This is so the `DlnDestination` smart contract can send a command to the `DlnSource` to unlock the
order’s liquidity to the solver's address (in case of fulfillment) or to the maker address (in case of cancellation).
When a cross-chain message is transferred through the deBridge infrastructure, strict finality requirements are applied before the
message is signed by validators. The number of required block confirmations needed for each chain can be found here.
# Risk distribution
Since the protocol doesn’t have any continuously locked liquidity, all DLN participants bear risks asynchronously.
Makers bear the risk of cross-chain infrastructure only during the short time span from the moment an order has been created,
until the moment when the order is fulfilled on the destination chain, which is typically an extremely short time period of seconds.
Solvers bear risks only from the moment an order has been fulfilled, until the moment when the liquidity is unlocked on the source chain.
These risks consist of two components:
* The risk of order reversal due to source chain reorganization or fork. This risk is taken by solvers consciously, and is controlled by
setting requirements for transaction finality: they fulfill orders only after the n프로젝트로 돌아가기