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