refactor: make BeforeFetchingRates function public (#6310)

This function is useful when a payment method wants to update its
payment prompt after receiving a partial payment, like ln does
This commit is contained in:
jackstar12 2024-10-18 07:03:37 +02:00 committed by GitHub
parent b670097592
commit 8b5b90d247
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -295,7 +295,7 @@ namespace BTCPayServer.Payments
/// </summary>
public List<string> TrackedDestinations { get; } = new();
internal async Task BeforeFetchingRates()
public async Task BeforeFetchingRates()
{
await Handler.BeforeFetchingRates(this);
// We need to fetch the rates necessary for the evaluation of the payment method criteria