Skip to content

Commit

Permalink
Fix lifi stargate
Browse files Browse the repository at this point in the history
  • Loading branch information
axtezy committed Jun 29, 2023
1 parent 727f778 commit 48bde3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rubic-sdk",
"version": "4.5.2",
"version": "4.5.3",
"description": "Simplify dApp creation",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,16 @@ export class LifiCrossChainProvider extends CrossChainProvider {
throw new RubicSdkError('Incorrect bridges filter param');
}

const defaultDisabled = options.lifiDisabledBridgeTypes || [];
const denyBridges = from.isNative
? options.lifiDisabledBridgeTypes
: Array.from(new Set([...defaultDisabled, LifiBridgeTypes.STARGATE]));

const routeOptions: RouteOptions = {
slippage: options.slippageTolerance,
order: 'RECOMMENDED',
allowSwitchChain: false,
bridges: {
deny: options.lifiDisabledBridgeTypes
}
bridges: { deny: denyBridges }
};

const fromChainId = blockchainId[fromBlockchain];
Expand Down

0 comments on commit 48bde3c

Please sign in to comment.