-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve(Relayer): Step towards intelligent UBA refund chain selection (…
…#765) This change initially proposed to implement preferential refund chain selection based on: Destination chain ID HubPool chain ID Profitable chain IDs (if any). As-is, the change now retains the pre-existing repayment chain selection based solely on input from the Inventory Client (or just the destination chain, if inventory management is not configured). The ProfitClient can now compute the profitability of an array of chain IDs, and will return their profitability (yes/no) as well as the net profitability to permit sorting/preferential selection (note: >0% does not guarantee that the fill would be considered profitable). The subsequent work to preferentially select the best repayment chain will be bundled into the InventoryClient update. Closes ACX-977.
- Loading branch information
Showing
4 changed files
with
74 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters