| 132 | } |
| 133 | |
| 134 | uint64_t GetOperatorFeeRatio(const Value &jsonValue) { |
| 135 | |
| 136 | uint64_t ratio = RPC_PARAM::GetUint64(jsonValue); |
| 137 | if (ratio > DEX_OPERATOR_FEE_RATIO_MAX) |
| 138 | throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("match fee ratio=%llu is large than %llu", |
| 139 | ratio, DEX_OPERATOR_FEE_RATIO_MAX)); |
| 140 | return ratio; |
| 141 | } |
| 142 | |
| 143 | |
| 144 | uint64_t GetOperatorFeeRatio(const Array& params, const size_t index) { |
no test coverage detected