aegis-swap-widget 0.14.0 → 0.15.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- bee2caf: Add Aegis-only smart routing on Ink. Kyber does not cover Ink, so
|
|
8
|
+
`aggregatedRouteProviderForChain(57073)` now returns an in-house provider. It
|
|
9
|
+
enumerates paths of up to three hops through the shipped Ink pool catalogue,
|
|
10
|
+
quotes them all in one Multicall3 `eth_call` to the V4 quoter, and settles the
|
|
11
|
+
best on the Aegis router through Permit2, with a fixed minimum `TAKE` that
|
|
12
|
+
reverts a short fill. Ink accepts only `liquiditySources: 'aegis'`.
|
|
13
|
+
`fetchAggregatedSwapQuote` now uses its `publicClient` argument, and the
|
|
14
|
+
aggregated widget passes its read client.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [bee2caf]
|
|
19
|
+
- @aegis-engine/core@0.11.0
|
|
20
|
+
|
|
3
21
|
## 0.14.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -821,8 +821,12 @@ In Aegis mode the widget asks Kyber for `includedSources=uniswap-v4-aegis`,
|
|
|
821
821
|
then refuses any route in which a hop is not tagged `uniswap-v4-aegis`. It
|
|
822
822
|
checks once before the route is built and again before the wallet is asked to
|
|
823
823
|
sign. When no all-Aegis path exists, the widget shows "No Aegis route" and
|
|
824
|
-
cannot submit. Every existing calldata check still applies.
|
|
825
|
-
|
|
824
|
+
cannot submit. Every existing calldata check still applies.
|
|
825
|
+
|
|
826
|
+
On Ink (57073), which Kyber does not cover, the widget routes through an
|
|
827
|
+
in-house provider instead: up to three hops over the bundled Ink Aegis pools,
|
|
828
|
+
quoted in one Multicall3 call, settled on the Aegis router through Permit2.
|
|
829
|
+
Ink requires `liquiditySources="aegis"`; `'any'` shows an error.
|
|
826
830
|
|
|
827
831
|
## Fees
|
|
828
832
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as h, jsx as i, Fragment as Pe } from "react/jsx-runtime";
|
|
2
2
|
import * as E from "react";
|
|
3
3
|
import { useState as H, useEffect as ue, useRef as F, useId as kt, useMemo as ce } from "react";
|
|
4
|
-
import { E as St, u as _t, a as Ye, b as $t, c as Ft, d as Pt, e as Ot, F as mt, f as gt, g as ft, C as Ut, h as Ht, i as pt, j as Vt } from "./index-
|
|
4
|
+
import { E as St, u as _t, a as Ye, b as $t, c as Ft, d as Pt, e as Ot, F as mt, f as gt, g as ft, C as Ut, h as Ht, i as pt, j as Vt } from "./index-B0agjrrs.js";
|
|
5
5
|
import { enginePoolPriceSegments as Xt, splitEngineMarketCandleSegments as Yt, fetchTokenPriceHistory as jt } from "@aegis-engine/core";
|
|
6
6
|
import { m as Wt } from "./marketOrientation-B6SD7xSk.js";
|
|
7
7
|
function qt({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, k as i, l as o, m as n, n as r, o as t, p as A, q as E, r as g, s as u, t as S, S as _, v as c, k as m, w as l, x as P, y as p, z as d, B as W } from "./index-
|
|
1
|
+
import { A as s, k as i, l as o, m as n, n as r, o as t, p as A, q as E, r as g, s as u, t as S, S as _, v as c, k as m, w as l, x as P, y as p, z as d, B as W } from "./index-B0agjrrs.js";
|
|
2
2
|
import { u as R, a as T, b as G, c as I, d as O, e as L, f as x, g as D } from "./useEngineActivity-BkhItrUI.js";
|
|
3
3
|
import { WOLF_GAME_ENGINE_WIDGET_PRESET as k, WOLF_GAME_RESOURCES as v, WOLF_GAME_RESOURCE_ORDER as w, resolveWolfGameResource as M, wolfGameResourceWidgetProps as y } from "./presets/wolf-game.js";
|
|
4
4
|
import { normalizePartnerActionRequirement as N, normalizePartnerResourceAmount as z, partnerLaunchIntentForRequirement as C, partnerResourceAssetKey as U } from "./partner-context.js";
|