|
|
@ -1465,11 +1465,11 @@ UniValue PricesBet(int64_t txfee, int64_t amount, int16_t leverage, std::vector< |
|
|
|
{ |
|
|
|
betamount = PRICES_SUBREVSHAREFEE(amount); |
|
|
|
|
|
|
|
if( amount - betamount < PRICES_REVSHAREDUST) { |
|
|
|
/*if( amount - betamount < PRICES_REVSHAREDUST) {
|
|
|
|
result.push_back(Pair("result", "error")); |
|
|
|
result.push_back(Pair("error", "bet amount too small")); |
|
|
|
return(result); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
mtx.vout.push_back(MakeCC1vout(cp->evalcode, txfee, mypk)); // vout0 baton for total funding
|
|
|
@ -1535,11 +1535,11 @@ UniValue PricesAddFunding(int64_t txfee, uint256 bettxid, int64_t amount) |
|
|
|
if (AddNormalinputs(mtx, mypk, amount + 2*txfee, 64) >= amount + 2*txfee) |
|
|
|
{ |
|
|
|
betamount = PRICES_SUBREVSHAREFEE(amount); |
|
|
|
if (amount - betamount < PRICES_REVSHAREDUST) { |
|
|
|
/*if (amount - betamount < PRICES_REVSHAREDUST) {
|
|
|
|
result.push_back(Pair("result", "error")); |
|
|
|
result.push_back(Pair("error", "bet amount too small")); |
|
|
|
return(result); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
std::vector<OneBetData> bets; |
|
|
|
if (prices_enumaddedbets(batontxid, bets, bettxid) >= 0) |
|
|
|