@@ -355,7 +355,7 @@ func (h *SendPublicPaymentIntentHandler) PopulateMetadata(ctx context.Context, i
355355
356356 exchangeData := typedProtoMetadata .ExchangeData
357357
358- usdMarketValue , err := currency_util .CalculateUsdMarketValue (ctx , h .data , mint , exchangeData .Quarks , currency_util .GetLatestExchangeRateTime ())
358+ usdMarketValue , _ , err := currency_util .CalculateUsdMarketValue (ctx , h .data , mint , exchangeData .Quarks , currency_util .GetLatestExchangeRateTime ())
359359 if err != nil {
360360 return err
361361 }
@@ -893,7 +893,7 @@ func (h *ReceivePaymentsPubliclyIntentHandler) PopulateMetadata(ctx context.Cont
893893 }
894894 h .cachedGiftCardIssuedIntentRecord = giftCardIssuedIntentRecord
895895
896- usdMarketValue , err := currency_util .CalculateUsdMarketValue (ctx , h .data , mint , typedProtoMetadata .Quarks , currency_util .GetLatestExchangeRateTime ())
896+ usdMarketValue , _ , err := currency_util .CalculateUsdMarketValue (ctx , h .data , mint , typedProtoMetadata .Quarks , currency_util .GetLatestExchangeRateTime ())
897897 if err != nil {
898898 return err
899899 }
@@ -1203,7 +1203,7 @@ func (h *PublicDistributionIntentHandler) PopulateMetadata(ctx context.Context,
12031203 totalQuarks += distribution .Quarks
12041204 }
12051205
1206- usdMarketValue , err := currency_util .CalculateUsdMarketValue (ctx , h .data , mint , totalQuarks , currency_util .GetLatestExchangeRateTime ())
1206+ usdMarketValue , _ , err := currency_util .CalculateUsdMarketValue (ctx , h .data , mint , totalQuarks , currency_util .GetLatestExchangeRateTime ())
12071207 if err != nil {
12081208 return err
12091209 }
0 commit comments