mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Handle rounding to zero on small offers.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "Transactor.h"
|
||||
#ifndef __OFFERCREATETRANSACTOR__
|
||||
#define __OFFERCREATETRANSACTOR__
|
||||
|
||||
#include "Transactor.h"
|
||||
|
||||
class OfferCreateTransactor : public Transactor
|
||||
{
|
||||
@@ -11,12 +13,13 @@ class OfferCreateTransactor : public Transactor
|
||||
const STAmount& saTakerPays,
|
||||
const STAmount& saTakerGets,
|
||||
STAmount& saTakerPaid,
|
||||
STAmount& saTakerGot);
|
||||
STAmount& saTakerGot,
|
||||
bool& bUnfunded);
|
||||
|
||||
public:
|
||||
OfferCreateTransactor(const SerializedTransaction& txn,TransactionEngineParams params, TransactionEngine* engine) : Transactor(txn,params,engine) {}
|
||||
|
||||
TER doApply();
|
||||
};
|
||||
#endif
|
||||
|
||||
// vim:ts=4
|
||||
|
||||
Reference in New Issue
Block a user