This commit is contained in:
jl777
2016-11-27 09:36:51 -03:00
parent aa114a6095
commit 5334d5ad70
3 changed files with 14 additions and 14 deletions

View File

@@ -370,9 +370,9 @@ int32_t komodo_gateway_deposits(CMutableTransaction *txNew,char *base,int32_t to
else if ( strcmp(symbol,"KMD") != 0 )
{
#ifdef KOMODO_ASSETCHAINS_WAITNOTARIZE
struct komodo_state *kmdsp = komodo_stateptrget("KMD");
if ( kmdsp != 0 && kmdsp->notarized_height >= pax->height ) // assumes same chain as notarize
pax->validated = kmdsp->notarized_height;
struct komodo_state *kmdsp = komodo_stateptrget((char *)"KMD");
if ( kmdsp != 0 && kmdsp->NOTARIZED_HEIGHT >= pax->height ) // assumes same chain as notarize
pax->validated = kmdsp->NOTARIZED_HEIGHT;
#endif
}
if ( pax->marked != 0 || strcmp(pax->symbol,symbol) != 0 || pax->validated == 0 )

View File

@@ -94,6 +94,17 @@ uint64_t peggy_smooth_coeffs[sizeof(Peggy_inds)/sizeof(*Peggy_inds)] = // numpri
1, 1, 1, 1, 1, 1, 0, 0, // isum 100000000000
};
uint64_t komodo_maxallowed(int32_t baseid)
{
uint64_t mult,val = (uint64_t)10000 * COIN;
if ( baseid < 0 || baseid >= 32 )
return(0);
if ( baseid < 10 )
val *= 10;
mult = MINDENOMS[baseid] / MIND;
return(mult * val);
}
uint64_t komodo_paxvol(uint64_t volume,uint64_t price)
{
if ( volume < 10000000000 )

View File

@@ -785,17 +785,6 @@ char CURRENCIES[][8] = { "USD", "EUR", "JPY", "GBP", "AUD", "CAD", "CHF", "NZD",
"CNY", "RUB", "MXN", "BRL", "INR", "HKD", "TRY", "ZAR", "PLN", "NOK", "SEK", "DKK", "CZK", "HUF", "ILS", "KRW", "MYR", "PHP", "RON", "SGD", "THB", "BGN", "IDR", "HRK",
"KMD" };
uint64_t komodo_maxallowed(int32_t baseid)
{
uint64_t mult,val = (uint64_t)10000 * COIN;
if ( baseid < 0 || baseid >= 32 )
return(0);
if ( baseid < 10 )
val *= 10;
mult = MINDENOMS[baseid] / MIND;
return(mult * val);
}
int32_t komodo_baseid(char *origbase)
{
int32_t i; char base[64];