mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Have OfferCreate require positive funds.
This commit is contained in:
@@ -1024,7 +1024,7 @@ bool STAmount::applyOffer(
|
||||
{
|
||||
saOfferGets.throwComparable(saTakerFunds);
|
||||
|
||||
assert(!saOfferFunds.isZero() && !saTakerFunds.isZero()); // Both must have funds.
|
||||
assert(saOfferFunds.isPositive() && saTakerFunds.isPositive()); // Both must have funds.
|
||||
assert(saOfferGets.isPositive() && saOfferPays.isPositive()); // Must not be a null offer.
|
||||
|
||||
// Limit offerer funds available, by transfer fees.
|
||||
|
||||
Reference in New Issue
Block a user