title
asfunknown
php
3 years ago
333 B
10
Indexable
private function getEurRate(string $coin): Amount
{
/** @var ExchangeService $exchange */
$exchange = app(ExchangeService::class);
return Amount::fromString(
$exchange->getFiatRatesCollectionForTransaction($coin)->get(CurrencyCode::EUR),
CurrencyCode::EUR
)->scaleTo(self::FIAT_PRECISION);
}Editor is loading...