Skip to content

Commit

Permalink
Disabled swap with proxy contract for OpenOcean provider in Linea cha…
Browse files Browse the repository at this point in the history
…in. (#434)
  • Loading branch information
Doctor-Cyclone authored Aug 11, 2023
2 parents 0ee4bb4 + dcd7c6b commit 845e2e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.15.2",
"version": "4.15.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 @@ -99,7 +99,7 @@ export class OpenOceanProvider {
slippageTolerance: options.slippageTolerance!,
path: [from, to],
toTokenWeiAmountMin,
useProxy: options.useProxy,
useProxy: blockchain === BLOCKCHAIN_NAME.LINEA ? false : options.useProxy,
proxyFeeInfo,
fromWithoutFee,
withDeflation: options.withDeflation
Expand Down Expand Up @@ -133,7 +133,7 @@ export class OpenOceanProvider {
}> {
let fromWithoutFee: PriceTokenAmount<EvmBlockchainName>;
let proxyFeeInfo: OnChainProxyFeeInfo | undefined;
if (fullOptions.useProxy) {
if (fullOptions.useProxy && from.blockchain !== BLOCKCHAIN_NAME.LINEA) {
proxyFeeInfo = await this.onChainProxyService.getFeeInfo(
from,
fullOptions.providerAddress
Expand Down

0 comments on commit 845e2e1

Please sign in to comment.