aboutsummaryrefslogtreecommitdiffstats
path: root/packages/asset-buyer/src/utils/assert.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2018-11-14 06:35:09 +0800
committerGitHub <noreply@github.com>2018-11-14 06:35:09 +0800
commite02dc13805349a770506350c69e9061f596b48b2 (patch)
tree7e0b7165ba370af5088a51183d39a7fba9c535a0 /packages/asset-buyer/src/utils/assert.ts
parent7b4f63a39ca4b4e05123d2b6871c6e01f8a132a2 (diff)
parent820ab062a6b24f246770f3700ecd6fbb5e3dcfa4 (diff)
downloaddexon-sol-tools-e02dc13805349a770506350c69e9061f596b48b2.tar
dexon-sol-tools-e02dc13805349a770506350c69e9061f596b48b2.tar.gz
dexon-sol-tools-e02dc13805349a770506350c69e9061f596b48b2.tar.bz2
dexon-sol-tools-e02dc13805349a770506350c69e9061f596b48b2.tar.lz
dexon-sol-tools-e02dc13805349a770506350c69e9061f596b48b2.tar.xz
dexon-sol-tools-e02dc13805349a770506350c69e9061f596b48b2.tar.zst
dexon-sol-tools-e02dc13805349a770506350c69e9061f596b48b2.zip
Merge pull request #1252 from 0xProject/fix/asset-buyer/price-per-token
[asset-buyer][instant] Fix incorrect token prices for non 18-decimal tokens
Diffstat (limited to 'packages/asset-buyer/src/utils/assert.ts')
-rw-r--r--packages/asset-buyer/src/utils/assert.ts2
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);
},