feat: asset-swapper tweak the gas schedule + return decimals (#34)

* feat: asset-swapper Return decimals from sampler in quote

* feat: asset-swapper tweak the gas schedule

* fix lint

* CHANGELOG
This commit is contained in:
Jacob Evans
2020-11-17 11:36:53 +10:00
committed by GitHub
parent 3133c509f9
commit 4f82543bdf
11 changed files with 97 additions and 2010 deletions

View File

@@ -1,5 +1,4 @@
import { BigNumber } from '@0x/utils';
import * as _ from 'lodash';
import { ERC20BridgeSource } from '../../src';
import { constants } from '../../src/constants';
@@ -47,12 +46,16 @@ export async function getFullyFillableSwapQuoteWithNoFeesAsync(
...quoteBase,
type: MarketOperation.Buy,
makerAssetFillAmount,
makerTokenDecimals: 18,
takerTokenDecimals: 18,
};
} else {
return {
...quoteBase,
type: MarketOperation.Sell,
takerAssetFillAmount: totalTakerAssetAmount,
makerTokenDecimals: 18,
takerTokenDecimals: 18,
};
}
}