diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-11-13 12:30:01 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-11-13 12:50:27 +0800 |
commit | d73faf1b81cf08a3793f0207819e163b322b4433 (patch) | |
tree | 31324639b9521e82e04422e216440ea5a3f5705c /packages/asset-buyer/src/utils/assert.ts | |
parent | add1cfd26132465ad51a3f9cf2ae8362fc301fcf (diff) | |
download | dexon-sol-tools-d73faf1b81cf08a3793f0207819e163b322b4433.tar dexon-sol-tools-d73faf1b81cf08a3793f0207819e163b322b4433.tar.gz dexon-sol-tools-d73faf1b81cf08a3793f0207819e163b322b4433.tar.bz2 dexon-sol-tools-d73faf1b81cf08a3793f0207819e163b322b4433.tar.lz dexon-sol-tools-d73faf1b81cf08a3793f0207819e163b322b4433.tar.xz dexon-sol-tools-d73faf1b81cf08a3793f0207819e163b322b4433.tar.zst dexon-sol-tools-d73faf1b81cf08a3793f0207819e163b322b4433.zip |
fix(asset-buyer): output assetEthAmount instead of ethPerAssetPrice in BuyQuoteInfos
Diffstat (limited to 'packages/asset-buyer/src/utils/assert.ts')
-rw-r--r-- | packages/asset-buyer/src/utils/assert.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/asset-buyer/src/utils/assert.ts b/packages/asset-buyer/src/utils/assert.ts index 2466f53a4..fcf9b0d0e 100644 --- a/packages/asset-buyer/src/utils/assert.ts +++ b/packages/asset-buyer/src/utils/assert.ts @@ -18,7 +18,7 @@ export const assert = { } }, isValidBuyQuoteInfo(variableName: string, buyQuoteInfo: BuyQuoteInfo): void { - sharedAssert.isBigNumber(`${variableName}.ethPerAssetPrice`, buyQuoteInfo.ethPerAssetPrice); + sharedAssert.isBigNumber(`${variableName}.assetEthAmount`, buyQuoteInfo.assetEthAmount); sharedAssert.isBigNumber(`${variableName}.feeEthAmount`, buyQuoteInfo.feeEthAmount); sharedAssert.isBigNumber(`${variableName}.totalEthAmount`, buyQuoteInfo.totalEthAmount); }, |