-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Relayer): Consider all eligible repayment chains if top one is u…
…nprofitable (#1426) * feat(Relayer): Consider all eligible repayment chains if top one is unprofitable Currently the algorithm is to consider destination chain only if top preferred chain is unprofitable and not equal to destination chain This PR changes the algo to have `determineRefundChain` to return all eligible repayment chain so that the relayer considers them all before falling back to destination chain, assuming that destination chain wasn't already considered * lint * Update Relayer.ts * Update Relayer.ts * Re add back tests * fix tests * Use net, not gross relayer fee pct in logs * refactor and run profitablity loop i parallel * Update Relayer.ts * Update InventoryClient.ts * Update InventoryClient.RefundChain.ts * Update InventoryClient.RefundChain.ts * Update InventoryClient.RefundChain.ts * Update InventoryClient.RefundChain.ts * Update InventoryClient.RefundChain.ts * Update InventoryClient.RefundChain.ts
- Loading branch information
1 parent
2af75df
commit 066733b
Showing
6 changed files
with
235 additions
and
139 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
Oops, something went wrong.