# v4.4.0

> Preflight warns when a batch lowers totalAssets, and send takes an explicit nonce.

Source: https://ipor.io/developer-news/sdk-cli-v4-4-0  
Published: 2026-12-01  
SDK/CLI v4.4.0

v4.4 adds a `totalAssets` check to preflight, an explicit nonce on send and the Euler V2 vault reader. It applies to anyone on 4.3 who uses the Python SDK, the CLI or the MCP server. By default, preflight reports a warning when a batch lowers `totalAssets` by more than rounding.

## New

### 1. Total assets drop in preflight

**Before:** `preflight_execute` simulated `totalAssets` before and after the batch. Only a revert produced a finding. A batch that ran and lowered `totalAssets` was reported as “ok”.

**Now:** a run that succeeds reports a `total_assets_dropped` warning when `totalAssets` falls by more than `max_total_assets_drop_bps` and by more than the rounding allowance. When either read fails, it reports a `total_assets_unreadable` warning.

**Usage:** `max_total_assets_drop_bps` is a keyword of `preflight_execute`, from 0 to 10000 with a default of 0. `fusion vault preflight` takes it as `--max-total-assets-drop-bps`, and the `vault_preflight` MCP tool as `max_total_assets_drop_bps`. The warning does not change `raise_for_failure` or the CLI exit status. Both react to critical findings only.

### 2. Rounding and accrual in the drop check

**Now:** the check allows a drop of up to 10 raw units per action for rounding. The allowance is capped at 1 bps of `totalAssets` as read before the batch.

**Impact:** the read after the batch includes the balance refresh of the touched markets. A loss accrued before the batch counts as a drop. Gains accrued before the batch offset a loss the batch causes.

### 3. Explicit nonce on send

**Now:** `Web3Context.send` and `build_transaction` take an optional keyword-only `nonce`, as do their `Call` counterparts. `TransactionOutcomeUnknown` and `TransactionTimeout`, the errors `send` raises when a posted transaction may still land, carry the nonce beside `tx_hash`.

**Usage:** a given nonce skips the `get_transaction_count` read. A negative one raises `ValueError`. A resend with `nonce=exc.nonce` lets at most one of the two transactions land. While the first transaction is still pending, a node accepts the resend only at higher fees. `build_transaction` does not increase the fees.

### 4. Euler V2 vault reader

**Before:** the SDK did not export a reader for Euler V2 vaults. The examples read an eVault’s debt by encoding `debtOf` by hand.

**Now:** `ipor_fusion` and `ipor_fusion.readers` export `EulerV2VaultReader`, `EulerV2AccountLiquidity`, `EulerV2Substrate` and `EULER_USD_UNIT_OF_ACCOUNT`. The types `LtvBps`, `EulerUnitOfAccountValue` and `EulerSubAccountId` are exported from the top level.

**Usage:** an eVault’s debt is read through `EulerV2VaultReader`. `EulerV2Substrate` rejects a sub-account id wider than one byte and a substrate that is not 32 bytes long. The type `UnitOfAccountValue` is renamed to `EulerUnitOfAccountValue`.

### 5. Swapper ABI warning

**Before:** `UniversalTokenSwapperFuse` built without `abi=` selected `UniversalTokenSwapperAbi.LEGACY` with no warning.

**Now:** it still selects `LEGACY` and emits a `FutureWarning`. A future major release will not accept the fuse without `abi=`.

**Usage:** `abi=` names the ABI revision that the deployed fuse accepts. The README lists the deployments each revision matches. Code that turns warnings into errors fails when `abi=` is omitted.

### 6. HyperCore pre-hook check (preview)

**Before:** a swapped pre-hook pair, or a pending-action hook without code, passed every offline check. The configuration call succeeded. Every deposit, exit and execute then reverted until the hooks were wired again.

**Now:** `read_hypercore_pre_hook_check(ctx, wiring)` reads the capital-flow marker from both hooks and the code of the pending-action hook. It raises `HyperCorePreHookWiringError` unless only the capital-flow hook carries the marker and the pending-action hook has code.

**Usage:** the function is exported from `ipor_fusion.hypercore`. The HyperCore example runs it before it wires the hooks.

### 7. HyperCore balance fuse check (preview)

**Now:** validation has a `hypercore_nav` check. It compares the `balanceOf()` of the HyperCore balance fuse with the value cached at enqueue while an action is pending, and with the live NAV otherwise.

**Usage:** the validation result has an ok line when the two agree. When they differ, it has a warning with the exact difference.

---

Upgrade with `pip install -U ipor-fusion`. The MCP server ships in the same package. Full changelog: [v4.4.0 on GitHub](https://github.com/IPOR-Labs/ipor-fusion.py/releases/tag/v4.4.0).

_These notes describe changes to the IPOR Fusion SDK. They are not operational or financial advice. Operators are responsible for testing changes against their own vaults and configuration before use._
