Function to get reserve increment.

This commit is contained in:
JoelKatz
2012-12-27 10:40:53 -08:00
parent 7c04eded0f
commit 22973c1e5b

View File

@@ -301,10 +301,10 @@ public:
SLE::pointer getRippleState(LedgerStateParms& parms, const uint256& uNode);
SLE::pointer getRippleState(const uint256& uNode)
{
LedgerStateParms qry = lepNONE;
return getRippleState(qry, uNode);
}
{
LedgerStateParms qry = lepNONE;
return getRippleState(qry, uNode);
}
SLE::pointer getRippleState(const RippleAddress& naA, const RippleAddress& naB, const uint160& uCurrency)
{ return getRippleState(getRippleStateIndex(naA, naB, uCurrency)); }
@@ -330,6 +330,12 @@ public:
return scaleFeeBase(static_cast<uint64>(increments) * mReserveIncrement + mReserveBase);
}
uint64 getReserveInc()
{
if (!mBaseFee) updateFees();
return mReserveIncrement;
}
uint64 scaleFeeBase(uint64 fee);
uint64 scaleFeeLoad(uint64 fee);