public class SameCryptoCurrencyConverter extends java.lang.Object implements CurrencyConverter
| Constructor and Description |
|---|
SameCryptoCurrencyConverter() |
| Modifier and Type | Method and Description |
|---|---|
CryptoAmount |
convert(Amount amount)
Main method to convert amount created by payment handler into currency understandable
by the used Lightning handler.
|
public CryptoAmount convert(Amount amount) throws InvalidCurrencyException, java.io.IOException, InternalErrorException
convert in interface CurrencyConverteramount - 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.