Package com.jelurida.ardor.contracts
Class ChildToParentExchange.CoinExchangeOrders
java.lang.Object
com.jelurida.ardor.contracts.ChildToParentExchange.CoinExchangeOrders
- Enclosing class:
- ChildToParentExchange
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonginvoke(ChainWrapper chain, long amountNQT, long maxAmountNXT) Given amount and child chain look at existing coin exchange orders to calculate amount to return in Ardor
-
Constructor Details
-
CoinExchangeOrders
-
-
Method Details
-
getReturnAmountNQT
public long getReturnAmountNQT() -
getReturnChain
-
invoke
public 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- Parameters:
chain- the child chainamountNQT- received amountmaxAmountNXT- do not exchange more than this amount (this contract is designed to handle small amounts)- Returns:
- object holding the returned amount and chain
-