mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Remove CoinAverage RateSource enum
This commit is contained in:
@@ -3,7 +3,6 @@ namespace BTCPayServer.Rating
|
|||||||
public enum RateSource
|
public enum RateSource
|
||||||
{
|
{
|
||||||
Coingecko,
|
Coingecko,
|
||||||
CoinAverage,
|
|
||||||
Direct
|
Direct
|
||||||
}
|
}
|
||||||
public class AvailableRateProvider
|
public class AvailableRateProvider
|
||||||
|
|||||||
@@ -33,9 +33,7 @@ namespace BTCPayServer.Models.StoreViewModels
|
|||||||
case Rating.RateSource.Direct:
|
case Rating.RateSource.Direct:
|
||||||
return a.Name;
|
return a.Name;
|
||||||
case Rating.RateSource.Coingecko:
|
case Rating.RateSource.Coingecko:
|
||||||
return $"{a.Name} (via CoinGecko, free)";
|
return $"{a.Name} (via CoinGecko)";
|
||||||
case Rating.RateSource.CoinAverage:
|
|
||||||
return $"{a.Name} (via BitcoinAverage, commercial)";
|
|
||||||
default:
|
default:
|
||||||
throw new NotSupportedException(a.Source.ToString());
|
throw new NotSupportedException(a.Source.ToString());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,23 +55,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card">
|
|
||||||
<div class="card-header" id="coinaverage-header">
|
|
||||||
<h2 class="mb-0">
|
|
||||||
<button class="btn btn-link" type="button" data-toggle="collapse" data-target="#coinaverage-content" aria-expanded="true">
|
|
||||||
CoinAverage integration (commercial API)
|
|
||||||
</button>
|
|
||||||
</h2>
|
|
||||||
</div>
|
|
||||||
<div id="coinaverage-content" class="collapse">
|
|
||||||
<div class="card-body text-muted overflow-auto">
|
|
||||||
@foreach (var exchange in Model.AvailableExchanges.Where(a => a.Source == BTCPayServer.Rating.RateSource.CoinAverage))
|
|
||||||
{
|
|
||||||
<a href="@exchange.Url">@exchange.Id</a><span> </span>
|
|
||||||
}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user