MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / GetOperatorFeeRatio

Function GetOperatorFeeRatio

src/rpc/rpcdex.cpp:134–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

gendexoperatorordertxFunction · 0.85
CalcMatchFeeMethod · 0.85

Calls 2

JSONRPCErrorFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected