Remove CoinAverage RateSource enum

This commit is contained in:
nicolas.dorier
2020-01-17 14:51:07 +09:00
parent 9b55648e41
commit ff11e6e032
3 changed files with 1 additions and 21 deletions

View File

@@ -3,7 +3,6 @@ namespace BTCPayServer.Rating
public enum RateSource public enum RateSource
{ {
Coingecko, Coingecko,
CoinAverage,
Direct Direct
} }
public class AvailableRateProvider public class AvailableRateProvider

View File

@@ -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());
} }

View File

@@ -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>&nbsp;</span>
}
</div>
</div>
</div>
</div> </div>
</div> </div>
} }