This commit is contained in:
Steve Klebanoff 2020-07-22 23:50:55 -07:00
parent 6e4e313792
commit 9edaa3a64e
No known key found for this signature in database
GPG Key ID: 8A2D7E51E87DB8B9
3 changed files with 5 additions and 5 deletions

View File

@ -551,4 +551,4 @@
}
]
}
]
]

View File

@ -181,8 +181,8 @@ export class SwapQuoter {
const samplerBytecode = _.get(ERC20BridgeSampler, 'compilerOutput.evm.deployedBytecode.object');
const defaultCodeOverrides = samplerBytecode
? {
[this._contractAddresses.erc20BridgeSampler]: { code: samplerBytecode },
}
[this._contractAddresses.erc20BridgeSampler]: { code: samplerBytecode },
}
: {};
const samplerOverrides = _.assign(
{ block: BlockParamLiteral.Latest, overrides: defaultCodeOverrides },

View File

@ -432,8 +432,8 @@ export class MarketOperationUtils {
const [last, penultimateIfExists] = optimalPath.slice().reverse();
const lastNativeFillIfExists =
last.source === ERC20BridgeSource.Native &&
penultimateIfExists &&
penultimateIfExists.source !== ERC20BridgeSource.Native
penultimateIfExists &&
penultimateIfExists.source !== ERC20BridgeSource.Native
? last
: undefined;
// By prepending native paths to the front they cannot split on-chain sources and incur