public static class ChildToParentExchange.CoinExchangeOrders
extends java.lang.Object
Constructor and Description |
---|
CoinExchangeOrders(AbstractContractContext context) |
Modifier and Type | Method and Description |
---|---|
long |
getReturnAmount() |
ChainWrapper |
getReturnChain() |
ChildToParentExchange.CoinExchangeOrders |
invoke(ChainWrapper chain,
long amount,
long maxAmountFXT)
Given amount and child chain look at existing coin exchange orders to calculate amount to return in Ardor
|
public CoinExchangeOrders(AbstractContractContext context)
public long getReturnAmount()
public ChainWrapper getReturnChain()
public ChildToParentExchange.CoinExchangeOrders invoke(ChainWrapper chain, long amount, long maxAmountFXT)
chain
- the child chainamount
- received amountmaxAmountFXT
- do not return more than this amount (this contract is designed to handle small amounts)