@aegis-engine/core 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -583,6 +583,16 @@ const quote = await fetchAggregatedSwapQuote(
583
583
  )
584
584
  ```
585
585
 
586
+ `AggregatedSwapQuote.priceImpact` is `number | null`: an omitted provider impact
587
+ remains unavailable, while an explicitly reported zero remains zero. Kyber routes
588
+ report no impact field, so it is derived from Kyber's USD values as
589
+ `(amountInUsd - grossOutUsd) / amountInUsd`, where `grossOutUsd` adds the Aegis
590
+ output fee back to `amountOutUsd` (covers market impact and pool fees; excludes
591
+ the Aegis fee and gas)
592
+ and is `null` when either value is missing or zero. Hosts must handle `null`
593
+ before formatting the value. The Widget displays it as “Unavailable” with a
594
+ warning tone.
595
+
586
596
  For a display-only quote, omit the account. For executable calldata, pass the
587
597
  user account:
588
598