fix(markets): use quote asset for settlement in spot markets (#6090)
This commit is contained in:
parent
2efe0a7aa1
commit
0ada3a2f8d
@ -25,7 +25,7 @@ export const getAsset = (market: Partial<Market>) => {
|
||||
}
|
||||
|
||||
if (product.__typename === 'Spot') {
|
||||
return product.baseAsset;
|
||||
return product.quoteAsset;
|
||||
}
|
||||
|
||||
throw new Error('Failed to retrieve asset. Invalid product type');
|
||||
|
Loading…
Reference in New Issue
Block a user