aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/parsers/oasis_orders
diff options
context:
space:
mode:
authorzkao <zichongkao@gmail.com>2018-12-15 04:15:35 +0800
committerGitHub <noreply@github.com>2018-12-15 04:15:35 +0800
commit6d45beccad44e86ddd692d0cf54c09c29c5d9daf (patch)
tree66ef5002e7d407f891d991fcb6cbd10ddb9ee5c9 /packages/pipeline/src/parsers/oasis_orders
parent1efde6f59b976a074ba2ea15be867400b21dd68b (diff)
downloaddexon-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/oasis_orders')
-rw-r--r--packages/pipeline/src/parsers/oasis_orders/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/pipeline/src/parsers/oasis_orders/index.ts b/packages/pipeline/src/parsers/oasis_orders/index.ts
index 7aafbf460..13997f31b 100644
--- a/packages/pipeline/src/parsers/oasis_orders/index.ts
+++ b/packages/pipeline/src/parsers/oasis_orders/index.ts
@@ -62,10 +62,10 @@ export function parseOasisOrder(
tokenOrder.baseAssetSymbol = oasisMarket.base;
tokenOrder.baseAssetAddress = null; // Oasis doesn't provide address information
- tokenOrder.baseVolume = price.times(amount);
+ tokenOrder.baseVolume = amount;
tokenOrder.quoteAssetSymbol = oasisMarket.quote;
tokenOrder.quoteAssetAddress = null; // Oasis doesn't provide address information
- tokenOrder.quoteVolume = amount;
+ tokenOrder.quoteVolume = price.times(amount);
return tokenOrder;
}