Skip to content

Commit

Permalink
remove hack that's no longer useful
Browse files Browse the repository at this point in the history
  • Loading branch information
artursapek committed Jul 8, 2024
1 parent dc4528a commit 9dbafeb
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions wormhole-connect/src/routes/operator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,23 +272,7 @@ export class Operator {
supported[token.key] = token;
}
} catch (e) {
// Fall back to less efficient method
for (const token of config.tokensArr) {
const { key } = token;
const alreadySupported = supported[key];
if (!alreadySupported) {
const isSupported = await r.isSupportedDestToken(
token,
sourceToken,
sourceChain,
destChain,
);

if (isSupported) {
supported[key] = config.tokens[key];
}
}
}
console.error(e);
}
}
return Object.values(supported);
Expand Down

0 comments on commit 9dbafeb

Please sign in to comment.