Exemple #1
0
 @Override
 void applyAttachment(
     Transaction transaction, Account senderAccount, Account recipientAccount) {
   Attachment.MonetarySystemPublishExchangeOffer attachment =
       (Attachment.MonetarySystemPublishExchangeOffer) transaction.getAttachment();
   CurrencyExchangeOffer.publishOffer(transaction, attachment);
 }
Exemple #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());
 }