Browse Source

testnet revert currency supply fix

pull/314/head
miketout 3 years ago
parent
commit
007874c7eb
  1. 2
      src/pbaas/reserves.h

2
src/pbaas/reserves.h

@ -870,7 +870,7 @@ public:
for (auto &oneCur : currencyMap)
{
reserves[oneCur.second] += (reserveOut[oneCur.second] - reserveIn[oneCur.second]);
if (reserveIn[oneCur.second] && conversionPrice[oneCur.second])
if (reserveOut[oneCur.second] && conversionPrice[oneCur.second])
{
// TODO: we don't yet know how much native was actually created by the reserves input vs. what was reserve to reserve,
// so for this testnet only, we don't subtract what we think was created when reverting. the commented line below

Loading…
Cancel
Save