예제 #1
0
 @Override
 void applyAttachment(
     Transaction transaction, Account senderAccount, Account recipientAccount) {
   Attachment.MonetarySystemPublishExchangeOffer attachment =
       (Attachment.MonetarySystemPublishExchangeOffer) transaction.getAttachment();
   CurrencyExchangeOffer.publishOffer(transaction, attachment);
 }
예제 #2
0
 @Override
 void applyAttachment(
     Transaction transaction, Account senderAccount, Account recipientAccount) {
   Attachment.MonetarySystemExchangeSell attachment =
       (Attachment.MonetarySystemExchangeSell) transaction.getAttachment();
   ExchangeRequest.addExchangeRequest(transaction, attachment);
   CurrencyExchangeOffer.exchangeCurrencyForNXT(
       transaction,
       senderAccount,
       attachment.getCurrencyId(),
       attachment.getRateNQT(),
       attachment.getUnits());
 }