Skip to content

Commit 08535bf

Browse files
committed
Merge branch 'hotfix/fix-custom-sell-ratio-calculation'
2 parents 38b184f + 3d9c533 commit 08535bf

File tree

1 file changed

+0
-8
lines changed
  • src/tg_bot/conversations/swap

1 file changed

+0
-8
lines changed

src/tg_bot/conversations/swap/swap.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -690,14 +690,6 @@ async def handle_sellx(message: Message, state: FSMContext):
690690
sell_pct = sell_pct / 100
691691
data = await state.get_data()
692692
token_mint = cast(str, data.get("token_mint"))
693-
694-
if not (0 < sell_pct <= 100):
695-
await message.answer("❌ 请输入正确的比例,取值范围:0~100")
696-
return
697-
698-
# 将百分比转换为小数
699-
sell_pct = sell_pct / 100
700-
701693
token_info = cast(TokenInfo, data.get("token_info"))
702694
if token_info is None:
703695
token_info = await token_info_cache.get(token_mint)

0 commit comments

Comments
 (0)