Browse Source

disable check for min revshare

pull/27/head
dimxy 5 years ago
parent
commit
4d02ec11e4
  1. 8
      src/cc/prices.cpp

8
src/cc/prices.cpp

@ -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)

Loading…
Cancel
Save