mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Add more details to lnaddress not found errors, make sure lnaddress is only for BTC (#3067)
* Add more details to lnaddress not found errors, make sure lnaddress is only for BTC * Update BTCPayServer/LNURL/LNURLController.cs Co-authored-by: d11n <mail@dennisreimann.de> * Update BTCPayServer/LNURL/LNURLController.cs Co-authored-by: d11n <mail@dennisreimann.de> * Update BTCPayServer/LNURL/LNURLController.cs Co-authored-by: d11n <mail@dennisreimann.de> Co-authored-by: d11n <mail@dennisreimann.de>
This commit is contained in:
@@ -3303,19 +3303,8 @@ namespace BTCPayServer.Tests
|
||||
}
|
||||
else if (result.ExpectedName == "ripio")
|
||||
{
|
||||
// This test is strange because ripio sometimes change the pairs it supports
|
||||
try
|
||||
{
|
||||
Assert.Contains(exchangeRates.ByExchange[result.ExpectedName],
|
||||
e => e.CurrencyPair == new CurrencyPair("BTC", "ARS") &&
|
||||
e.BidAsk.Bid > 1.0m); // 1 BTC will always be more than 1 ARS
|
||||
}
|
||||
catch (XunitException)
|
||||
{
|
||||
Assert.Contains(exchangeRates.ByExchange[result.ExpectedName],
|
||||
e => (e.CurrencyPair == new CurrencyPair("BTC", "USDC")
|
||||
&& e.BidAsk.Bid > 1.0m)); // 1BTC will always be more than 1USD
|
||||
}
|
||||
// Ripio keeps changing their pair, so anything is fine...
|
||||
Assert.NotEmpty(exchangeRates.ByExchange[result.ExpectedName]);
|
||||
}
|
||||
else if (result.ExpectedName == "cryptomarket")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user