From 279c70222ba2ef6b9277f8689d130e61f9bbc6c9 Mon Sep 17 00:00:00 2001 From: Adriano Dal Pastro Date: Sun, 23 Aug 2026 01:20:19 +0000 Subject: [PATCH] =?UTF-8?q?research(=C2=A745):=20il=20percorso=20--no-net?= =?UTF-8?q?=20non=20deve=20crollare=20=E2=80=94=20`apr`=20assente=20si=20D?= =?UTF-8?q?ICHIARA,=20non=20si=20formatta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Trovato dallo smoke test a cache fredda: senza get_currencies la sezione 1f cadeva su TypeError formattando None. Un'analisi che non puo' girare offline non e' riproducibile. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_018M8Ncho6QV9FWLdyy4VyQf --- scripts/research/r0823_spot_netting.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/research/r0823_spot_netting.py b/scripts/research/r0823_spot_netting.py index 81407e2..befd6eb 100644 --- a/scripts/research/r0823_spot_netting.py +++ b/scripts/research/r0823_spot_netting.py @@ -317,6 +317,11 @@ def q1() -> dict: # ---------------------------------------------------------------- 1f) il rendimento dell'USDC print("\n 1f) IPOTESI MIA, NATA E REFUTATA QUI: «convertire USDC in spot rinuncia a un interesse»") apr = pool.get("USDC", (None, None))[1] + if apr is None: + print(" [VENUE] get_currencies NON letto in questa corsa -> sezione non eseguibile.") + print(" «non l'ho guardato» non e' «e' zero»: si dichiara, non si assume.") + return dict(E=Eu, cap=cap, im=imr, free=free, need=need, spec=spec, apr=None, + tp_gross=tp_gross_1x, skh_gross=skh_gross) print(f" [VENUE] get_currencies dichiara USDC `apr` = {apr} (USDT 0,0 · BTC 0,0 · ETH 0,0)") print(" Se quel tasso fosse accreditato a questo conto, mettere il 75% del capitale in") print(f" spot BTC/ETH (apr 0,0) costerebbe fino a {(apr or 0)*0.75:.2f}%/anno = meta' del")