diff options
author | zkao <zichongkao@gmail.com> | 2018-12-15 04:15:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-15 04:15:35 +0800 |
commit | 6d45beccad44e86ddd692d0cf54c09c29c5d9daf (patch) | |
tree | 66ef5002e7d407f891d991fcb6cbd10ddb9ee5c9 /packages/pipeline/src/parsers/paradex_orders/index.ts | |
parent | 1efde6f59b976a074ba2ea15be867400b21dd68b (diff) | |
download | dexon-sol-tools-6d45beccad44e86ddd692d0cf54c09c29c5d9daf.tar dexon-sol-tools-6d45beccad44e86ddd692d0cf54c09c29c5d9daf.tar.gz dexon-sol-tools-6d45beccad44e86ddd692d0cf54c09c29c5d9daf.tar.bz2 dexon-sol-tools-6d45beccad44e86ddd692d0cf54c09c29c5d9daf.tar.lz dexon-sol-tools-6d45beccad44e86ddd692d0cf54c09c29c5d9daf.tar.xz dexon-sol-tools-6d45beccad44e86ddd692d0cf54c09c29c5d9daf.tar.zst dexon-sol-tools-6d45beccad44e86ddd692d0cf54c09c29c5d9daf.zip |
Fix dex order quote/base asset assigning (#1432)
Diffstat (limited to 'packages/pipeline/src/parsers/paradex_orders/index.ts')
-rw-r--r-- | packages/pipeline/src/parsers/paradex_orders/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/pipeline/src/parsers/paradex_orders/index.ts b/packages/pipeline/src/parsers/paradex_orders/index.ts index 7966658a7..5ceeb64a4 100644 --- a/packages/pipeline/src/parsers/paradex_orders/index.ts +++ b/packages/pipeline/src/parsers/paradex_orders/index.ts @@ -57,10 +57,10 @@ export function parseParadexOrder( tokenOrder.baseAssetSymbol = paradexMarket.baseToken; tokenOrder.baseAssetAddress = paradexMarket.baseTokenAddress as string; - tokenOrder.baseVolume = price.times(amount); + tokenOrder.baseVolume = amount; tokenOrder.quoteAssetSymbol = paradexMarket.quoteToken; tokenOrder.quoteAssetAddress = paradexMarket.quoteTokenAddress as string; - tokenOrder.quoteVolume = amount; + tokenOrder.quoteVolume = price.times(amount); return tokenOrder; } |