Formula
CommonFun.calcTradeGiveFee
function CommonFun.calcTradeGiveFee(totalPrice, bg)
local fee = totalPrice
if totalPrice <= 1000000 then
fee = 10000
elseif totalPrice <= 5000000 then
fee = 50000
else
fee = 100000
end
local extra = 0
if GameConfig.Exchange.SendMoney[bg] == nil then
extra = 0
else
extra = GameConfig.Exchange.SendMoney[bg].price
end
return fee + extra
end