fix(markets): use quote asset for settlement in spot markets (#6090)

This commit is contained in:
Matthew Russell 2024-03-25 12:09:18 +00:00 committed by GitHub
parent 2efe0a7aa1
commit 0ada3a2f8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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');