fix
This commit is contained in:
parent
6e4e313792
commit
9edaa3a64e
@ -551,4 +551,4 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -181,8 +181,8 @@ export class SwapQuoter {
|
|||||||
const samplerBytecode = _.get(ERC20BridgeSampler, 'compilerOutput.evm.deployedBytecode.object');
|
const samplerBytecode = _.get(ERC20BridgeSampler, 'compilerOutput.evm.deployedBytecode.object');
|
||||||
const defaultCodeOverrides = samplerBytecode
|
const defaultCodeOverrides = samplerBytecode
|
||||||
? {
|
? {
|
||||||
[this._contractAddresses.erc20BridgeSampler]: { code: samplerBytecode },
|
[this._contractAddresses.erc20BridgeSampler]: { code: samplerBytecode },
|
||||||
}
|
}
|
||||||
: {};
|
: {};
|
||||||
const samplerOverrides = _.assign(
|
const samplerOverrides = _.assign(
|
||||||
{ block: BlockParamLiteral.Latest, overrides: defaultCodeOverrides },
|
{ block: BlockParamLiteral.Latest, overrides: defaultCodeOverrides },
|
||||||
|
@ -432,8 +432,8 @@ export class MarketOperationUtils {
|
|||||||
const [last, penultimateIfExists] = optimalPath.slice().reverse();
|
const [last, penultimateIfExists] = optimalPath.slice().reverse();
|
||||||
const lastNativeFillIfExists =
|
const lastNativeFillIfExists =
|
||||||
last.source === ERC20BridgeSource.Native &&
|
last.source === ERC20BridgeSource.Native &&
|
||||||
penultimateIfExists &&
|
penultimateIfExists &&
|
||||||
penultimateIfExists.source !== ERC20BridgeSource.Native
|
penultimateIfExists.source !== ERC20BridgeSource.Native
|
||||||
? last
|
? last
|
||||||
: undefined;
|
: undefined;
|
||||||
// By prepending native paths to the front they cannot split on-chain sources and incur
|
// By prepending native paths to the front they cannot split on-chain sources and incur
|
||||||
|
Loading…
x
Reference in New Issue
Block a user