title

asf
Anonymous
php
06/21/2022 6:19 AM
444 B
21
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...