From 70f6cc2e7b1326ff87f84bfed10d969dce54fde6 Mon Sep 17 00:00:00 2001 From: dekun Date: Thu, 20 Aug 2026 13:25:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E6=B5=8B=E5=90=8C=E6=AD=A5=E5=B8=81?= =?UTF-8?q?=E6=9C=AC=E4=BD=8D=E5=BC=A0=E6=95=B0=E6=89=8B=E7=BB=AD=E8=B4=B9?= =?UTF-8?q?=E7=BC=93=E5=86=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- tests/test_options_margin_mode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_options_margin_mode.py b/tests/test_options_margin_mode.py index 1803541..81f0e2c 100644 --- a/tests/test_options_margin_mode.py +++ b/tests/test_options_margin_mode.py @@ -68,7 +68,7 @@ class TestOptionsMarginMode(unittest.TestCase): def test_sheets_from_coin(self): from lib.options.options_margin_mode_lib import calc_sheets_from_coin_balance - # ask 0.01 ETH per 1 ETH, ctMult 0.01 → 每张 0.0001 ETH; 0.01 ETH 可开 100 张 + # ask 0.01 ETH per 1 ETH, ctMult 0.01 → 每张 0.0001 ETH; 0.01 ETH×0.97 缓冲可开 97 张 r = calc_sheets_from_coin_balance( quote_per_unit=0.01, ct_mult=0.01, @@ -76,7 +76,7 @@ class TestOptionsMarginMode(unittest.TestCase): coin_available=0.01, ) self.assertTrue(r["ok"]) - self.assertEqual(r["sheets"], 100) + self.assertEqual(r["sheets"], 97) if __name__ == "__main__":