155 : m_strAssetTypeID(strAssetTypeID)
161 : m_strAssetTypeID(theAssetTypeID)
194 otOut <<
"OTStashItem::CreditStash: Failed attempt to credit a "
195 "negative amount (" << lAmount
196 <<
"). Asset Type: " << m_strAssetTypeID <<
" \n";
200 m_lAmount += lAmount;
208 otOut <<
"OTStashItem::DebitStash: Failed attempt to debit a negative "
209 "amount (" << lAmount <<
"). Asset Type: " << m_strAssetTypeID
214 const int64_t lTentativeNewBalance = (m_lAmount - lAmount);
216 if (lTentativeNewBalance < 0) {
217 otOut <<
"OTStashItem::DebitStash: Failed attempt to debit (amount of) "
218 << lAmount <<
": New stash balance would have been a negative "
219 "amount (" << lTentativeNewBalance
220 <<
"). Asset Type: " << m_strAssetTypeID <<
" \n";
224 m_lAmount = lTentativeNewBalance;
OTLOG_IMPORT OTLogStream otOut
bool DebitStash(const int64_t &lAmount)
bool CreditStash(const int64_t &lAmount)