Skip to content

feat: Handle cases where a deposit's inputToken and originChain cannot be mapped to a PoolRebalanceRoute #2177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

nicholaspai
Copy link
Member

@nicholaspai nicholaspai commented Apr 8, 2025

Relayer implementation based on across-protocol/sdk#970

Relayer:

  • Refuses to fill such deposits

Dataworker:

  • Does not let such deposits affect bundle LP fees and running balance calculations

…t be mapped to a PoolRebalanceRoute

Relayer:
- Refuses to fill such deposits

Dataworker:
- Does not let such deposits affect bundle LP fees and running balance calculations
@@ -580,90 +577,4 @@ describe("InventoryClient: Refund chain selection", async function () {
expect(possibleRepaymentChains.length).to.equal(4);
});
});

describe("In-protocol swap", async function () {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this test isn't doing what we think its doing currently. Currently the determineRefundChain should throw if input token and output token are not "equivalent" here and in this test, the input token is native USDC which has no pool rebalance route mappings to bridged USDC, so it should not allow determineRefundChain to return successfully.

@nicholaspai nicholaspai marked this pull request as ready for review April 22, 2025 20:50
@nicholaspai nicholaspai requested a review from pxrl April 22, 2025 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants