try SATOSHIDEN as signed

This commit is contained in:
dimxy
2019-04-21 12:39:03 +05:00
parent d5d633140e
commit 5d296e44f5

View File

@@ -158,7 +158,7 @@ bool ValidateBetTx(struct CCcontract_info *cp, Eval *eval, const CTransaction &
if (MakeCC1vout(cp->evalcode, bettx.vout[1].nValue, pricespk) != bettx.vout[1])
return eval->Invalid("cannot validate vout1 in bet tx with global pk");
if( MakeCC1vout(cp->evalcode, bettx.vout[2].nValue, pricespk) != bettx.vout[2] )
return eval->Invalid("cannot validate 1of2 vout2 in bet tx with pk from opreturn");
return eval->Invalid("cannot validate vout2 in bet tx with pk from opreturn");
return true;
}
@@ -665,7 +665,7 @@ int64_t prices_syntheticprofits(int64_t &costbasis, int32_t firstheight, int32_t
//std::cerr << "prices_syntheticprofits() profits double=" << (double)price / (double)costbasis -1.0 << std::endl;
//double dprofits = (double)price / (double)costbasis - 1.0;
profits *= leverage * positionsize / SATOSHIDEN;
profits *= leverage * positionsize / (int64_t)SATOSHIDEN;
//dprofits *= leverage * positionsize;
std::cerr << "prices_syntheticprofits() val profits=" << profits << std::endl;
//std::cerr << "prices_syntheticprofits() dprofits=" << dprofits << std::endl;