Height 250000 update
This commit is contained in:
@@ -75,7 +75,7 @@ uint64_t komodo_interest(int32_t txheight,uint64_t nValue,uint32_t nLockTime,uin
|
|||||||
{
|
{
|
||||||
if ( minutes > 365 * 24 * 60 )
|
if ( minutes > 365 * 24 * 60 )
|
||||||
minutes = 365 * 24 * 60;
|
minutes = 365 * 24 * 60;
|
||||||
if ( txheight >= 275000 )
|
if ( txheight >= 250000 )
|
||||||
minutes -= 59;
|
minutes -= 59;
|
||||||
denominator = (((uint64_t)365 * 24 * 60) / minutes);
|
denominator = (((uint64_t)365 * 24 * 60) / minutes);
|
||||||
if ( denominator == 0 )
|
if ( denominator == 0 )
|
||||||
@@ -106,7 +106,7 @@ uint64_t komodo_interest(int32_t txheight,uint64_t nValue,uint32_t nLockTime,uin
|
|||||||
if ( exception == 0 )
|
if ( exception == 0 )
|
||||||
{
|
{
|
||||||
numerator = (nValue / 20); // assumes 5%!
|
numerator = (nValue / 20); // assumes 5%!
|
||||||
if ( txheight < 275000 )
|
if ( txheight < 250000 )
|
||||||
interest = (numerator / denominator);
|
interest = (numerator / denominator);
|
||||||
else interest = (numerator * minutes) / ((uint64_t)365 * 24 * 60);
|
else interest = (numerator * minutes) / ((uint64_t)365 * 24 * 60);
|
||||||
}
|
}
|
||||||
@@ -119,7 +119,7 @@ uint64_t komodo_interest(int32_t txheight,uint64_t nValue,uint32_t nLockTime,uin
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
numerator = (nValue * KOMODO_INTEREST);
|
numerator = (nValue * KOMODO_INTEREST);
|
||||||
if ( txheight < 275000 || numerator * minutes < 365 * 24 * 60 )
|
if ( txheight < 250000 || numerator * minutes < 365 * 24 * 60 )
|
||||||
interest = (numerator / denominator) / COIN;
|
interest = (numerator / denominator) / COIN;
|
||||||
else interest = ((numerator * minutes) / ((uint64_t)365 * 24 * 60)) / COIN;
|
else interest = ((numerator * minutes) / ((uint64_t)365 * 24 * 60)) / COIN;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user