mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
fix "Expected currency USD, got USDT" when generating mint quote (#772)
This commit is contained in:
@@ -219,9 +219,9 @@ class StrikeWallet(LightningBackend):
|
||||
error_message = r.json()["data"]["message"]
|
||||
raise Exception(error_message)
|
||||
strike_quote = StrikePaymentQuoteResponse.parse_obj(r.json())
|
||||
if strike_quote.amount.currency != self.currency_map[self.unit]:
|
||||
if strike_quote.amount.currency != self.currency:
|
||||
raise Exception(
|
||||
f"Expected currency {self.currency_map[self.unit]}, got {strike_quote.amount.currency}"
|
||||
f"Expected currency {self.currency}, got {strike_quote.amount.currency}"
|
||||
)
|
||||
amount = Amount.from_float(float(strike_quote.amount.amount), self.unit)
|
||||
fee = self.fee_int(strike_quote, self.unit)
|
||||
|
||||
Reference in New Issue
Block a user