public interface CurrencyConverter
|Modifier and Type||Method and Description|
Main method to convert amount created by payment handler into currency understandable by the used Lightning handler.
CryptoAmount convert(Amount amount) throws InvalidCurrencyException, java.io.IOException, InternalErrorException
amount- the amount to convert into crypto currency amount understandable by used LightningHandler.
InvalidCurrencyException- if CurrencyConverter received an amount in unsupported currency.
java.io.IOException- if communication problems occurred with underlying components.
InternalErrorException- if general internal error occurred converting the currency, such as configuration error.