Skip to content

Commit e110a18

Browse files
committed
fix: 修复跟单设置中滑点显示错误的问题 #35
1 parent c887c34 commit e110a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tg_bot/services/copytrade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def from_db_model(obj: CopyTradeModel) -> CopyTrade:
3131
copytrade.fixed_buy_amount = round(obj.fixed_buy_amount, 4)
3232

3333
if obj.custom_slippage_bps is not None:
34-
copytrade.custom_slippage = round(obj.custom_slippage_bps, 4)
34+
copytrade.custom_slippage = round(obj.custom_slippage_bps // 100, 4)
3535
return copytrade
3636

3737

0 commit comments

Comments
 (0)