Update packages/asset-swapper/src/utils/swap_quote_calculator.ts

Co-Authored-By: Jacob Evans <jacob@dekz.net>
This commit is contained in:
Lawrence Forman 2020-01-21 16:52:54 -05:00 committed by GitHub
parent 09d05d09c9
commit 26cb22020d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,7 +353,7 @@ export class SwapQuoteCalculator {
// partially filled.
// Infer the bridge slippage from the difference between the fill
// size and the atual order asset amounts.
// size and the actual order asset amounts.
const makerAssetBridgeSlippage = !worstCase
? constants.ONE_AMOUNT
: order.makerAssetAmount.div(order.fill.totalMakerAssetAmount);