We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38b184f + 3d9c533 commit 08535bfCopy full SHA for 08535bf
src/tg_bot/conversations/swap/swap.py
@@ -690,14 +690,6 @@ async def handle_sellx(message: Message, state: FSMContext):
690
sell_pct = sell_pct / 100
691
data = await state.get_data()
692
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
701
token_info = cast(TokenInfo, data.get("token_info"))
702
if token_info is None:
703
token_info = await token_info_cache.get(token_mint)
0 commit comments