Commit 373aa973 authored by ml's avatar ml

资产管理后台-特殊费率修改

parent b2a5f4da
......@@ -120,10 +120,10 @@ export const changeUserSpotFee = async function (user_id, symbol, fee_model, mak
await checkFeeModel(fee_model);
let product_type = pair == 'all' ? 'spot' : 'single';
//生效的费率 与要设置的费率 比对做校验 现在分不开 现货 合约 先不校验 之后分开了 再校验
/* let feeExist = await cancelIfFeeExist(user_id, product_type, symbol, maker_fee, taker_fee);
let feeExist = await cancelIfFeeExist(user_id, product_type, symbol, maker_fee, taker_fee);
if (feeExist) {
return is_success;
}*/
}
let asset = await mainUserAsset.prototype.findOne({
where: {
user_id
......@@ -160,11 +160,10 @@ export const changeUserContractFee = async function (user_id, symbol, fee_model,
let is_success = true;
let product_type = pair == 'all' ? 'lpc' : 'single';
//生效的费率 与要设置的费率 比对做校验 现在分不开 现货 合约 先不校验 之后分开了 再校验
/*let feeExist = await cancelIfFeeExist(user_id, product_type, symbol, maker_fee, taker_fee);
let feeExist = await cancelIfFeeExist(user_id, product_type, symbol, maker_fee, taker_fee);
if (feeExist) {
return is_success;
}*/
}
if (pair) {
await checkPair(symbol, 2);
}
......
......@@ -137,9 +137,9 @@ async function addParamValid(commonUserFeeVO: CommonUserFeeVO) {
throw ErrorCode.PARAM_MISS;
}
//撮合目前只支持 all 后续支持单个币对 可放开
if (pair != 'all'){
/*if (pair != 'all'){
throw ErrorCode.PAIR_NOT_SUPPORT;
}
}*/
//校验费率范围
if (type == FEE_TYPE.FEE_TYPE_SPOT){
if (Number(makerFee) < 0.0002 || Number(takerFee) < 0.0005){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment