Have OfferCreate require positive funds.

This commit is contained in:
Arthur Britto
2013-04-26 11:14:18 -07:00
parent 3c35a1e8b7
commit c34b1eb9ee
2 changed files with 3 additions and 3 deletions

View File

@@ -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.