Class ChildToParentExchange.CoinExchangeOrders

java.lang.Object
com.jelurida.ardor.contracts.ChildToParentExchange.CoinExchangeOrders
Enclosing class:
ChildToParentExchange

public static class ChildToParentExchange.CoinExchangeOrders extends Object
  • Constructor Details

  • Method Details

    • getReturnAmountNQT

      public long getReturnAmountNQT()
    • getReturnChain

      public ChainWrapper 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 chain
      amountNQT - received amount
      maxAmountNXT - do not exchange more than this amount (this contract is designed to handle small amounts)
      Returns:
      object holding the returned amount and chain