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