diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-15 03:30:18 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-15 23:25:25 +0800 |
commit | 61c88455f49c86041263e48e99ca80ab4f2a9a6e (patch) | |
tree | a55f26cb8c687fae0b5446a1f9779806d9a4a410 /packages/asset-buyer/src | |
parent | a084bbbed833caf8318ae68c9c71edcb543676f1 (diff) | |
download | dexon-sol-tools-61c88455f49c86041263e48e99ca80ab4f2a9a6e.tar dexon-sol-tools-61c88455f49c86041263e48e99ca80ab4f2a9a6e.tar.gz dexon-sol-tools-61c88455f49c86041263e48e99ca80ab4f2a9a6e.tar.bz2 dexon-sol-tools-61c88455f49c86041263e48e99ca80ab4f2a9a6e.tar.lz dexon-sol-tools-61c88455f49c86041263e48e99ca80ab4f2a9a6e.tar.xz dexon-sol-tools-61c88455f49c86041263e48e99ca80ab4f2a9a6e.tar.zst dexon-sol-tools-61c88455f49c86041263e48e99ca80ab4f2a9a6e.zip |
Apply prettier
Diffstat (limited to 'packages/asset-buyer/src')
-rw-r--r-- | packages/asset-buyer/src/utils/buy_quote_calculator.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/asset-buyer/src/utils/buy_quote_calculator.ts b/packages/asset-buyer/src/utils/buy_quote_calculator.ts index 9205678e7..125841094 100644 --- a/packages/asset-buyer/src/utils/buy_quote_calculator.ts +++ b/packages/asset-buyer/src/utils/buy_quote_calculator.ts @@ -43,7 +43,9 @@ export const buyQuoteCalculator = { const multiplierNeededWithSlippage = new BigNumber(1).plus(slippagePercentage); // Given amountAvailableToFillConsideringSlippage * multiplierNeededWithSlippage = amountAbleToFill // We divide amountUnableToFill by multiplierNeededWithSlippage to determine amountAvailableToFillConsideringSlippage - const amountAvailableToFillConsideringSlippage = amountAbleToFill.div(multiplierNeededWithSlippage).integerValue(BigNumber.ROUND_FLOOR); + const amountAvailableToFillConsideringSlippage = amountAbleToFill + .div(multiplierNeededWithSlippage) + .integerValue(BigNumber.ROUND_FLOOR); throw new InsufficientAssetLiquidityError(amountAvailableToFillConsideringSlippage); } |