Remove CoinAverage RateSource enum

This commit is contained in:
nicolas.dorier 2020-01-17 14:51:07 +09:00
parent 9b55648e41
commit ff11e6e032
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
3 changed files with 1 additions and 21 deletions

View File

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

View File

@ -33,9 +33,7 @@ namespace BTCPayServer.Models.StoreViewModels
case Rating.RateSource.Direct:
return a.Name;
case Rating.RateSource.Coingecko:
return $"{a.Name} (via CoinGecko, free)";
case Rating.RateSource.CoinAverage:
return $"{a.Name} (via BitcoinAverage, commercial)";
return $"{a.Name} (via CoinGecko)";
default:
throw new NotSupportedException(a.Source.ToString());
}

View File

@ -55,23 +55,6 @@
</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>
}