Skip to content
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

Remove a hacky shortcut for Shuttle and bump its limit #3322

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions wormhole-connect/src/hooks/useFetchSupportedRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,12 @@ const useFetchSupportedRoutes = (): HookReturn => {
);
}

// HAX
// HAX - Enable Mayan routes (except SHUTTLE) for all assets
// TODO token refactor
if (route.rc.name.includes('Mayan')) {
if (
route.rc.name.includes('Mayan') &&
route.rc.name !== 'MayanSwapSHUTTLE'
) {
supported = true;
}

Expand Down
2 changes: 1 addition & 1 deletion wormhole-connect/src/hooks/useRoutesQuotesBulk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type HookReturn = {
const QUOTE_REFRESH_INTERVAL = 20_000;
const MAYAN_BETA_PROTOCOL_LIMITS = {
MCTP: 10_000,
SHUTTLE: 500,
SHUTTLE: 2000,
};

const useRoutesQuotesBulk = (routes: string[], params: Params): HookReturn => {
Expand Down
Loading