From 7bc428260862591876f93a06f4a3c414589032e9 Mon Sep 17 00:00:00 2001 From: ze97286 Date: Tue, 23 Apr 2024 20:35:14 +0100 Subject: [PATCH] fix: resolve the quote asset for fee estimation in spot market --- CHANGELOG.md | 1 + protos/vega/market_ext.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f365e039fb..c4e96d503f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ - [11143](https://github.com/vegaprotocol/vega/issues/11143) - Add support for new asset proposal in batch governance proposal. - [11184](https://github.com/vegaprotocol/vega/issues/11184) - relax the transfer restriction of 'same transfer' to match the full dispatch strategy. - [11185](https://github.com/vegaprotocol/vega/issues/11185) - distinguish between zero and none metric for rewards. +- [11158](https://github.com/vegaprotocol/vega/issues/11158) - resolve the quote asset for fee estimation in spot market. ### 🐛 Fixes diff --git a/protos/vega/market_ext.go b/protos/vega/market_ext.go index fdbbaee3c0..dfd2e2c100 100644 --- a/protos/vega/market_ext.go +++ b/protos/vega/market_ext.go @@ -29,6 +29,8 @@ func (m *Market) GetAsset() (string, error) { return pimpl.Future.SettlementAsset, nil case *Instrument_Perpetual: return pimpl.Perpetual.SettlementAsset, nil + case *Instrument_Spot: + return pimpl.Spot.QuoteAsset, nil default: return "", ErrUnknownAsset }