@orbs-network/spot-ui 1.0.18 → 1.0.20

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/dist/spot-ui.js CHANGED
@@ -1,39 +1,39 @@
1
- var rt = Object.defineProperty;
2
- var it = (e, a, i) => a in e ? rt(e, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[a] = i;
3
- var Ce = (e, a, i) => it(e, typeof a != "symbol" ? a + "" : a, i);
4
- const ot = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B290FEB04E353d1821bc0a12397FdEa9a846C0", lensAddress: "0x0221EfDF1Fd3212AF87F23cceB7693a65fAF1d7f", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SpookySwap", partner: "Orbs:TWAP:SpookySwap", exchangeAddress: "0xdF7CCd5fc7077E9de5f27a7b7bfDC837c82f8496", exchangeType: "ExchangeV2", pathfinderKey: "" }, dt = { chainName: "sonic", chainId: 146, twapVersion: 4, twapAddress: "0x8963992816b4EafE5a22b7DB2A99513c18be9afA", lensAddress: "0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SpookySwapSonic", partner: "Orbs:TWAP:SpookySwap", exchangeAddress: "0x6699bE3aF75e5c1B807b1031dBde6dA9A67739F3", exchangeType: "ExchangeV2", pathfinderKey: "" }, ct = { chainName: "poly", chainId: 137, twapVersion: 4, twapAddress: "0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4", lensAddress: "0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "QuickSwap", partner: "Orbs:TWAP:QuickSwap", exchangeAddress: "0x8FCc245209bE85C49D738D0CE5613F74E5d91E86", exchangeType: "ParaswapExchange", pathfinderKey: "QuickSwap,QuickSwapV3" }, pt = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "QuickSwap", partner: "Orbs:TWAP:QuickSwap", exchangeAddress: "0xb7a3d74895bfd3aff6780525e36d79fcf26a895f", exchangeType: "ExchangeV2", pathfinderKey: "" }, lt = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Chronos", partner: "Orbs:TWAP:Chronos", exchangeAddress: "0x0178e50adAF3b925F27aC518FCd952CE7F9A3B36", exchangeType: "ExchangeV2", pathfinderKey: "Chronos Stable,Chronos Volatile,Chronos V3" }, ut = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "BaseSwap", partner: "Orbs:TWAP:BaseSwap", exchangeAddress: "0xAca3155c17530C4aA96746F226fcC049658490d2", exchangeType: "ExchangeV2", pathfinderKey: "BaseSwap,BaseSwapX" }, ft = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Arbidex", partner: "Orbs:TWAP:Arbidex", exchangeAddress: "0x49d21052f4695d16C7cce6eF561301Aa4d840420", exchangeType: "ExchangeV2", pathfinderKey: "Arbidex Classic,Arbidex Quantum" }, mt = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Thena", partner: "Orbs:TWAP:Thena", exchangeAddress: "0x2B2fABDbfa4a15da0d351F947C14F4520db0bDc1", exchangeType: "ExchangeV2", pathfinderKey: "43,47" }, yt = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0x1A2bb6B75D58b740d88413ef4840D6fa3F637940", exchangeType: "P2Exchange", pathfinderKey: "" }, At = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, ht = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, bt = { chainName: "linea", chainId: 59144, twapVersion: 4, twapAddress: "0x48423e62acbfEF7779b5b4a5E7d6Fbd39E623d78", lensAddress: "0xe84CaEc86eCF3f0AB4267dC6130D9a5510e73DFb", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 100, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, Et = { chainName: "linea", chainId: 59144, twapVersion: 4, twapAddress: "0x48423e62acbfEF7779b5b4a5E7d6Fbd39E623d78", lensAddress: "0xe84CaEc86eCF3f0AB4267dC6130D9a5510e73DFb", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 100, name: "Lynex", partner: "Orbs:TWAP:Lynex", exchangeAddress: "0x04C06C96d7D19977156016DD408B5992af0570a2", exchangeType: "ExchangeV2", pathfinderKey: "19,18" }, xt = { chainName: "zkSync", chainId: 324, twapVersion: 4, twapAddress: "0xc32cAA0F7AD9ED88e22Fc214fc24cCb5C0595D68", lensAddress: "0x7daE5af3011c3bE9A5283F0368a3fdD757fc74F9", takers: ["0xB924C20c400575D2B73Baa16CF0Fa0EAA720aFBC", "0xBE452F03Be354CAC397C3F0c8397672067D44531"], bidDelaySeconds: 60, minChunkSizeUsd: 100, name: "SyncSwap", partner: "Orbs:TWAP:SyncSwap", exchangeAddress: "0x422623a40c42f026Ed33A9910078Aa843FD66e27", exchangeType: "ExchangeV2", pathfinderKey: "2,3" }, gt = { chainName: "poly", chainId: 137, twapVersion: 4, twapAddress: "0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4", lensAddress: "0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "Retro", partner: "Orbs:TWAP:Retro", exchangeAddress: "0xb7A3d74895bFD3Aff6780525e36D79FCf26a895F", exchangeType: "ExchangeV2", pathfinderKey: "retro,retro-v3" }, Ct = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiArb", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, Ft = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiBase", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, Tt = { chainName: "eth", chainId: 1, twapVersion: 4, twapAddress: "0xb1ed8BCAD1EaC8a1DF0764700472391800D12946", lensAddress: "0x0967f448c4d4dbd14c355E635AE9CbF68cc44A60", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 200, name: "SushiEth", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, wt = { chainName: "katana", chainId: 747474, twapVersion: 4, twapAddress: "0xf2d96E7BE676153d202e1453804E2749923C7c5b", lensAddress: "0x1579EED0527781B1A748043AA1f59a3858Ace4a7", takers: ["0xF74437A3Fc45a518640828E5D6A3E8c9A9BbDC3a", "0x07A6C715063e94c0D95e809efefFCbF4EBEdfD55"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiKatana", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x92209481507e6B2d14C9b5b70Ed287024177220E", exchangeType: "ExchangeV2", pathfinderKey: "" }, Dt = { chainName: "sei", chainId: 1329, twapVersion: 4, twapAddress: "0xde737dB24548F8d41A4a3Ca2Bac8aaaDc4DBA099", lensAddress: "0xa1376f2Bb80D3cF6c2D8ebEf34b3d122e9af4020", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "DragonSwap", partner: "Orbs:TWAP:DragonSwap", exchangeAddress: "0xf2F933FafbDB97062CfA3c447ff373e76A90Efd6", exchangeType: "ExchangeV2", pathfinderKey: "" }, Bt = { chainName: "poly", chainId: 137, twapVersion: 4, twapAddress: "0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4", lensAddress: "0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "TeaFi", partner: "Orbs:TWAP:TeaFi", exchangeAddress: "0xE9D3b4Cf5B0CC392e78C1a4DD9885D449EEF9793", exchangeType: "ParaswapExchange", pathfinderKey: "AaveV2,AaveV3,AaveV3Stata,AngleStakedStableEUR,AngleStakedStableUSD,ApeSwap,AugustusRFQ,BalancerV2,ComethSwap,CurveV1,CurveV1Factory,CurveV1StableNg,CurveV2,Dfyn,DODOV2,Dystopia,Hashflow,IronV2,JarvisV6,KyberDmm,QuickSwap,QuickSwapV3,Retro,SushiSwap,SushiSwapV3,SwaapV2,Synapse,UniswapV2,UniswapV3,WaultFinance,Wmatic,WooFiV2,wUSDM" }, St = { chainName: "flare", chainId: 14, twapVersion: 4, twapAddress: "0x9D70B0b90915Bb8b9bdAC7e6a7e6435bBF1feC4D", lensAddress: "0xf2d96E7BE676153d202e1453804E2749923C7c5b", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SparkDEX", partner: "Orbs:TWAP:SparkDEX", exchangeAddress: "0xe59c53C76bB7EEc01401A18fA8215B94bC65Bf56", exchangeType: "P2Exchange" }, kt = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Ramses", partner: "Orbs:TWAP:Ramses", exchangeAddress: "0x8FCc245209bE85C49D738D0CE5613F74E5d91E86", exchangeType: "ParaswapExchange", pathfinderKey: "" }, Ot = { chainName: "sonic", chainId: 146, twapVersion: 4, twapAddress: "0x8963992816b4EafE5a22b7DB2A99513c18be9afA", lensAddress: "0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SwapX", partner: "Orbs:TWAP:SwapX", exchangeAddress: "0xDA902994b7F7a1ecDd8De02E4a17dbFF2E6F67b7", exchangeType: "ExchangeV2", pathfinderKey: "" }, _t = { chainName: "cronos-zkevm", chainId: 388, twapVersion: 4, twapAddress: "0xc32cAA0F7AD9ED88e22Fc214fc24cCb5C0595D68", lensAddress: "0x7daE5af3011c3bE9A5283F0368a3fdD757fc74F9", takers: ["0xB924C20c400575D2B73Baa16CF0Fa0EAA720aFBC", "0xBE452F03Be354CAC397C3F0c8397672067D44531"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "H2Finance", partner: "Orbs:TWAP:H2Finance", exchangeAddress: "0x2f1f10dc311722Be609e6B427bF3FBac6e44093B", exchangeType: "ExchangeV2" }, vt = { chainName: "sonic", chainId: 146, twapVersion: 4, twapAddress: "0x8963992816b4EafE5a22b7DB2A99513c18be9afA", lensAddress: "0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "Shadow", partner: "Orbs:TWAP:Shadow", exchangeAddress: "0x69e3c891450161b7BF27f181eE85E7bAE69E5b07", exchangeType: "ExchangeV2" }, Rt = { chainName: "berachain", chainId: 80094, twapVersion: 4, twapAddress: "0xD13609A8ace04D11Ea2FFE176B69dF77C6d9375E", lensAddress: "0xA0b07F9a11dFb01388149abBdbc5B4f2196600AB", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "Kodiak", partner: "Orbs:TWAP:Kodiak", exchangeAddress: "0x69B7aE1250B8d1309954CaD65b6607ae478Ec6eE", exchangeType: "ExchangeV2" }, Pt = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "OmniBase", partner: "Orbs:TWAP:OmniBase", exchangeAddress: "0x54435FcFDF3A08150Ed799b6EF472A20a432303F", exchangeType: "ParaswapExchange" }, It = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "OmniArb", partner: "Orbs:TWAP:OmniArb", exchangeAddress: "0xF0607785424d342Cceb33E708f4579CA97a3b392", exchangeType: "ParaswapExchange" }, Nt = { chainName: "avax", chainId: 43114, twapVersion: 4, twapAddress: "0xf77Ad005aBF7e31f669ce89a6568B2f39Ca92cDe", lensAddress: "0x48466B82Ce1575c5c9eCa168ac1090048dD47fA3", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "BlackholeAvax", partner: "Orbs:TWAP:BlackholeAvax", exchangeAddress: "0xb7A3d74895bFD3Aff6780525e36D79FCf26a895F", exchangeType: "ExchangeV2" }, Ut = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "NewEraBnb", partner: "Orbs:TWAP:NewEraBnb", exchangeAddress: "0xA22D7Df24d9Ea4D4EF6dC96b2204bd550430eC42", exchangeType: "ExchangeV2" }, O = {
5
- SpookySwap: ot,
6
- SpookySwapSonic: dt,
7
- QuickSwap: ct,
8
- QuickSwapBase: pt,
9
- Chronos: lt,
10
- BaseSwap: ut,
11
- Arbidex: ft,
12
- Thena: mt,
13
- PancakeSwap: yt,
14
- PancakeSwapArbitrum: At,
15
- PancakeSwapBase: ht,
16
- PancakeSwapLinea: bt,
17
- Lynex: Et,
18
- SyncSwap: xt,
19
- Retro: gt,
20
- SushiArb: Ct,
21
- SushiBase: Ft,
22
- SushiEth: Tt,
23
- SushiKatana: wt,
24
- DragonSwap: Dt,
25
- TeaFi: Bt,
26
- SparkDEX: St,
27
- Ramses: kt,
28
- SwapX: Ot,
29
- H2Finance: _t,
30
- Shadow: vt,
31
- Kodiak: Rt,
32
- OmniBase: Pt,
33
- OmniArb: It,
34
- BlackholeAvax: Nt,
1
+ var it = Object.defineProperty;
2
+ var ot = (e, a, i) => a in e ? it(e, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[a] = i;
3
+ var Ce = (e, a, i) => ot(e, typeof a != "symbol" ? a + "" : a, i);
4
+ const dt = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B290FEB04E353d1821bc0a12397FdEa9a846C0", lensAddress: "0x0221EfDF1Fd3212AF87F23cceB7693a65fAF1d7f", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SpookySwap", partner: "Orbs:TWAP:SpookySwap", exchangeAddress: "0xdF7CCd5fc7077E9de5f27a7b7bfDC837c82f8496", exchangeType: "ExchangeV2", pathfinderKey: "" }, ct = { chainName: "sonic", chainId: 146, twapVersion: 4, twapAddress: "0x8963992816b4EafE5a22b7DB2A99513c18be9afA", lensAddress: "0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SpookySwapSonic", partner: "Orbs:TWAP:SpookySwap", exchangeAddress: "0x6699bE3aF75e5c1B807b1031dBde6dA9A67739F3", exchangeType: "ExchangeV2", pathfinderKey: "" }, pt = { chainName: "poly", chainId: 137, twapVersion: 4, twapAddress: "0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4", lensAddress: "0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "QuickSwap", partner: "Orbs:TWAP:QuickSwap", exchangeAddress: "0x8FCc245209bE85C49D738D0CE5613F74E5d91E86", exchangeType: "ParaswapExchange", pathfinderKey: "QuickSwap,QuickSwapV3" }, lt = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "QuickSwap", partner: "Orbs:TWAP:QuickSwap", exchangeAddress: "0xb7a3d74895bfd3aff6780525e36d79fcf26a895f", exchangeType: "ExchangeV2", pathfinderKey: "" }, ut = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Chronos", partner: "Orbs:TWAP:Chronos", exchangeAddress: "0x0178e50adAF3b925F27aC518FCd952CE7F9A3B36", exchangeType: "ExchangeV2", pathfinderKey: "Chronos Stable,Chronos Volatile,Chronos V3" }, ft = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "BaseSwap", partner: "Orbs:TWAP:BaseSwap", exchangeAddress: "0xAca3155c17530C4aA96746F226fcC049658490d2", exchangeType: "ExchangeV2", pathfinderKey: "BaseSwap,BaseSwapX" }, mt = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Arbidex", partner: "Orbs:TWAP:Arbidex", exchangeAddress: "0x49d21052f4695d16C7cce6eF561301Aa4d840420", exchangeType: "ExchangeV2", pathfinderKey: "Arbidex Classic,Arbidex Quantum" }, yt = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Thena", partner: "Orbs:TWAP:Thena", exchangeAddress: "0x2B2fABDbfa4a15da0d351F947C14F4520db0bDc1", exchangeType: "ExchangeV2", pathfinderKey: "43,47" }, At = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0x1A2bb6B75D58b740d88413ef4840D6fa3F637940", exchangeType: "P2Exchange", pathfinderKey: "" }, ht = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, bt = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, Et = { chainName: "linea", chainId: 59144, twapVersion: 4, twapAddress: "0x48423e62acbfEF7779b5b4a5E7d6Fbd39E623d78", lensAddress: "0xe84CaEc86eCF3f0AB4267dC6130D9a5510e73DFb", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 100, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, xt = { chainName: "linea", chainId: 59144, twapVersion: 4, twapAddress: "0x48423e62acbfEF7779b5b4a5E7d6Fbd39E623d78", lensAddress: "0xe84CaEc86eCF3f0AB4267dC6130D9a5510e73DFb", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 100, name: "Lynex", partner: "Orbs:TWAP:Lynex", exchangeAddress: "0x04C06C96d7D19977156016DD408B5992af0570a2", exchangeType: "ExchangeV2", pathfinderKey: "19,18" }, gt = { chainName: "zkSync", chainId: 324, twapVersion: 4, twapAddress: "0xc32cAA0F7AD9ED88e22Fc214fc24cCb5C0595D68", lensAddress: "0x7daE5af3011c3bE9A5283F0368a3fdD757fc74F9", takers: ["0xB924C20c400575D2B73Baa16CF0Fa0EAA720aFBC", "0xBE452F03Be354CAC397C3F0c8397672067D44531"], bidDelaySeconds: 60, minChunkSizeUsd: 100, name: "SyncSwap", partner: "Orbs:TWAP:SyncSwap", exchangeAddress: "0x422623a40c42f026Ed33A9910078Aa843FD66e27", exchangeType: "ExchangeV2", pathfinderKey: "2,3" }, Ct = { chainName: "poly", chainId: 137, twapVersion: 4, twapAddress: "0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4", lensAddress: "0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "Retro", partner: "Orbs:TWAP:Retro", exchangeAddress: "0xb7A3d74895bFD3Aff6780525e36D79FCf26a895F", exchangeType: "ExchangeV2", pathfinderKey: "retro,retro-v3" }, Ft = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiArb", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, Tt = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiBase", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, wt = { chainName: "eth", chainId: 1, twapVersion: 4, twapAddress: "0xb1ed8BCAD1EaC8a1DF0764700472391800D12946", lensAddress: "0x0967f448c4d4dbd14c355E635AE9CbF68cc44A60", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 200, name: "SushiEth", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, Dt = { chainName: "katana", chainId: 747474, twapVersion: 4, twapAddress: "0xf2d96E7BE676153d202e1453804E2749923C7c5b", lensAddress: "0x1579EED0527781B1A748043AA1f59a3858Ace4a7", takers: ["0xF74437A3Fc45a518640828E5D6A3E8c9A9BbDC3a", "0x07A6C715063e94c0D95e809efefFCbF4EBEdfD55"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiKatana", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x92209481507e6B2d14C9b5b70Ed287024177220E", exchangeType: "ExchangeV2", pathfinderKey: "" }, Bt = { chainName: "sei", chainId: 1329, twapVersion: 4, twapAddress: "0xde737dB24548F8d41A4a3Ca2Bac8aaaDc4DBA099", lensAddress: "0xa1376f2Bb80D3cF6c2D8ebEf34b3d122e9af4020", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "DragonSwap", partner: "Orbs:TWAP:DragonSwap", exchangeAddress: "0xf2F933FafbDB97062CfA3c447ff373e76A90Efd6", exchangeType: "ExchangeV2", pathfinderKey: "" }, St = { chainName: "poly", chainId: 137, twapVersion: 4, twapAddress: "0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4", lensAddress: "0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "TeaFi", partner: "Orbs:TWAP:TeaFi", exchangeAddress: "0xE9D3b4Cf5B0CC392e78C1a4DD9885D449EEF9793", exchangeType: "ParaswapExchange", pathfinderKey: "AaveV2,AaveV3,AaveV3Stata,AngleStakedStableEUR,AngleStakedStableUSD,ApeSwap,AugustusRFQ,BalancerV2,ComethSwap,CurveV1,CurveV1Factory,CurveV1StableNg,CurveV2,Dfyn,DODOV2,Dystopia,Hashflow,IronV2,JarvisV6,KyberDmm,QuickSwap,QuickSwapV3,Retro,SushiSwap,SushiSwapV3,SwaapV2,Synapse,UniswapV2,UniswapV3,WaultFinance,Wmatic,WooFiV2,wUSDM" }, kt = { chainName: "flare", chainId: 14, twapVersion: 4, twapAddress: "0x9D70B0b90915Bb8b9bdAC7e6a7e6435bBF1feC4D", lensAddress: "0xf2d96E7BE676153d202e1453804E2749923C7c5b", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SparkDEX", partner: "Orbs:TWAP:SparkDEX", exchangeAddress: "0xe59c53C76bB7EEc01401A18fA8215B94bC65Bf56", exchangeType: "P2Exchange" }, Ot = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Ramses", partner: "Orbs:TWAP:Ramses", exchangeAddress: "0x8FCc245209bE85C49D738D0CE5613F74E5d91E86", exchangeType: "ParaswapExchange", pathfinderKey: "" }, _t = { chainName: "sonic", chainId: 146, twapVersion: 4, twapAddress: "0x8963992816b4EafE5a22b7DB2A99513c18be9afA", lensAddress: "0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SwapX", partner: "Orbs:TWAP:SwapX", exchangeAddress: "0xDA902994b7F7a1ecDd8De02E4a17dbFF2E6F67b7", exchangeType: "ExchangeV2", pathfinderKey: "" }, vt = { chainName: "cronos-zkevm", chainId: 388, twapVersion: 4, twapAddress: "0xc32cAA0F7AD9ED88e22Fc214fc24cCb5C0595D68", lensAddress: "0x7daE5af3011c3bE9A5283F0368a3fdD757fc74F9", takers: ["0xB924C20c400575D2B73Baa16CF0Fa0EAA720aFBC", "0xBE452F03Be354CAC397C3F0c8397672067D44531"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "H2Finance", partner: "Orbs:TWAP:H2Finance", exchangeAddress: "0x2f1f10dc311722Be609e6B427bF3FBac6e44093B", exchangeType: "ExchangeV2" }, Rt = { chainName: "sonic", chainId: 146, twapVersion: 4, twapAddress: "0x8963992816b4EafE5a22b7DB2A99513c18be9afA", lensAddress: "0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "Shadow", partner: "Orbs:TWAP:Shadow", exchangeAddress: "0x69e3c891450161b7BF27f181eE85E7bAE69E5b07", exchangeType: "ExchangeV2" }, Pt = { chainName: "berachain", chainId: 80094, twapVersion: 4, twapAddress: "0xD13609A8ace04D11Ea2FFE176B69dF77C6d9375E", lensAddress: "0xA0b07F9a11dFb01388149abBdbc5B4f2196600AB", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "Kodiak", partner: "Orbs:TWAP:Kodiak", exchangeAddress: "0x69B7aE1250B8d1309954CaD65b6607ae478Ec6eE", exchangeType: "ExchangeV2" }, It = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "OmniBase", partner: "Orbs:TWAP:OmniBase", exchangeAddress: "0x54435FcFDF3A08150Ed799b6EF472A20a432303F", exchangeType: "ParaswapExchange" }, Nt = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "OmniArb", partner: "Orbs:TWAP:OmniArb", exchangeAddress: "0xF0607785424d342Cceb33E708f4579CA97a3b392", exchangeType: "ParaswapExchange" }, Mt = { chainName: "avax", chainId: 43114, twapVersion: 4, twapAddress: "0xf77Ad005aBF7e31f669ce89a6568B2f39Ca92cDe", lensAddress: "0x48466B82Ce1575c5c9eCa168ac1090048dD47fA3", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "BlackholeAvax", partner: "Orbs:TWAP:BlackholeAvax", exchangeAddress: "0xb7A3d74895bFD3Aff6780525e36D79FCf26a895F", exchangeType: "ExchangeV2" }, Ut = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "NewEraBnb", partner: "Orbs:TWAP:NewEraBnb", exchangeAddress: "0xA22D7Df24d9Ea4D4EF6dC96b2204bd550430eC42", exchangeType: "ExchangeV2" }, O = {
5
+ SpookySwap: dt,
6
+ SpookySwapSonic: ct,
7
+ QuickSwap: pt,
8
+ QuickSwapBase: lt,
9
+ Chronos: ut,
10
+ BaseSwap: ft,
11
+ Arbidex: mt,
12
+ Thena: yt,
13
+ PancakeSwap: At,
14
+ PancakeSwapArbitrum: ht,
15
+ PancakeSwapBase: bt,
16
+ PancakeSwapLinea: Et,
17
+ Lynex: xt,
18
+ SyncSwap: gt,
19
+ Retro: Ct,
20
+ SushiArb: Ft,
21
+ SushiBase: Tt,
22
+ SushiEth: wt,
23
+ SushiKatana: Dt,
24
+ DragonSwap: Bt,
25
+ TeaFi: St,
26
+ SparkDEX: kt,
27
+ Ramses: Ot,
28
+ SwapX: _t,
29
+ H2Finance: vt,
30
+ Shadow: Rt,
31
+ Kodiak: Pt,
32
+ OmniBase: It,
33
+ OmniArb: Nt,
34
+ BlackholeAvax: Mt,
35
35
  NewEraBnb: Ut
36
- }, Mt = [
36
+ }, Lt = [
37
37
  {
38
38
  constant: !1,
39
39
  inputs: [
@@ -91,7 +91,7 @@ const ot = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
91
91
  name: "Withdrawal",
92
92
  type: "event"
93
93
  }
94
- ], Lt = [
94
+ ], Vt = [
95
95
  {
96
96
  inputs: [
97
97
  {
@@ -378,7 +378,7 @@ const ot = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
378
378
  stateMutability: "nonpayable",
379
379
  type: "function"
380
380
  }
381
- ], Vt = /* @__PURE__ */ JSON.parse('[{"inputs":[{"internalType":"address","name":"_iweth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"uint32","name":"slippagePercent","type":"uint32"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"indexed":false,"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"name":"OrderBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"OrderCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"address","name":"taker","type":"address"}],"name":"OrderCompleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"indexed":false,"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"}],"name":"OrderCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"address","name":"taker","type":"address"},{"indexed":false,"internalType":"uint256","name":"srcAmountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dstAmountOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dstFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"srcFilledAmount","type":"uint256"}],"name":"OrderFilled","type":"event"},{"inputs":[],"name":"MIN_BID_DELAY_SECONDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_OUTBID_PERCENT","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT_BASE","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STALE_BID_SECONDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_CANCELED","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_COMPLETED","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"_ask","type":"tuple"}],"name":"ask","outputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"uint32","name":"slippagePercent","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"bid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"book","outputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"fill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"iweth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"makerOrders","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"order","outputs":[{"components":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"internalType":"struct OrderLib.Order","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"maker","type":"address"}],"name":"orderIdsByMaker","outputs":[{"internalType":"uint64[]","name":"","type":"uint64[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"prune","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"status","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]'), Wt = [
381
+ ], Wt = /* @__PURE__ */ JSON.parse('[{"inputs":[{"internalType":"address","name":"_iweth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"uint32","name":"slippagePercent","type":"uint32"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"indexed":false,"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"name":"OrderBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"OrderCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"address","name":"taker","type":"address"}],"name":"OrderCompleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"indexed":false,"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"}],"name":"OrderCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"address","name":"taker","type":"address"},{"indexed":false,"internalType":"uint256","name":"srcAmountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dstAmountOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dstFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"srcFilledAmount","type":"uint256"}],"name":"OrderFilled","type":"event"},{"inputs":[],"name":"MIN_BID_DELAY_SECONDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_OUTBID_PERCENT","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT_BASE","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STALE_BID_SECONDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_CANCELED","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_COMPLETED","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"_ask","type":"tuple"}],"name":"ask","outputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"uint32","name":"slippagePercent","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"bid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"book","outputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"fill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"iweth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"makerOrders","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"order","outputs":[{"components":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"internalType":"struct OrderLib.Order","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"maker","type":"address"}],"name":"orderIdsByMaker","outputs":[{"internalType":"uint64[]","name":"","type":"uint64[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"prune","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"status","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]'), zt = [
382
382
  {
383
383
  type: "constructor",
384
384
  inputs: [],
@@ -690,8 +690,8 @@ const ot = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
690
690
  }
691
691
  ]
692
692
  }
693
- ], La = Mt, Va = Lt, Wa = Wt, za = Vt;
694
- var H = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(H || {}), oe = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(oe || {}), zt = /* @__PURE__ */ ((e) => (e.All = "ALL", e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(zt || {}), se = /* @__PURE__ */ ((e) => (e[e.Minutes = 6e4] = "Minutes", e[e.Hours = 36e5] = "Hours", e[e.Weeks = 6048e5] = "Weeks", e[e.Days = 864e5] = "Days", e[e.Months = 2592e6] = "Months", e[e.Years = 31536e6] = "Years", e))(se || {}), V = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TAKE_PROFIT_MARKET = "take-profit-market", e.TAKE_PROFIT_LIMIT = "take-profit-limit", e.STOP_LOSS_LIMIT = "stop-loss-limit", e.STOP_LOSS_MARKET = "stop-loss-market", e))(V || {}), ie = /* @__PURE__ */ ((e) => (e.Arbidex = "arbidex", e.Blackhole = "blackhole", e.Chronos = "chronos", e.Dragon = "dragon", e.Kodiak = "kodiak", e.Lynex = "lynex", e.Nami = "nami", e.Newera = "newera", e.Omni = "omni", e.Pancake = "pancake", e.Quick = "quick", e.Ramses = "ramses", e.Shadow = "shadow", e.Spark = "spark", e.Spooky = "spooky", e.Swapx = "swapx", e.Teafi = "teafi", e.Thena = "thena", e.Yowie = "yowie", e.Pangolin = "pangolin", e.Sushiswap = "sushiswap", e.Agent = "agent", e.Utila = "utila", e.Ring = "ring", e.EfficientFrontier = "ef", e))(ie || {}), Kt = /* @__PURE__ */ ((e) => (e.EMPTY_LIMIT_PRICE = "emptyLimitPrice", e.MAX_CHUNKS = "maxChunksError", e.MIN_CHUNKS = "minChunksError", e.MIN_TRADE_SIZE = "minTradeSizeError", e.MAX_FILL_DELAY = "maxFillDelayError", e.MIN_FILL_DELAY = "minFillDelayError", e.MAX_ORDER_DURATION = "maxDurationError", e.MIN_ORDER_DURATION = "minDurationError", e.MISSING_LIMIT_PRICE = "missingLimitPrice", e.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE = "StopLossTriggerPriceError", e.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE = "triggerLimitPriceError", e.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE = "TakeProfitTriggerPriceError", e.EMPTY_TRIGGER_PRICE = "emptyTriggerPrice", e.INSUFFICIENT_BALANCE = "insufficientFunds", e.MAX_ORDER_SIZE = "maxOrderSize", e.MIN_TRADE_SIZE_ERROR = "minTradeSizeError", e))(Kt || {});
693
+ ], Wa = Lt, za = Vt, Ka = zt, Ha = Wt;
694
+ var H = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(H || {}), oe = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(oe || {}), Kt = /* @__PURE__ */ ((e) => (e.All = "ALL", e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(Kt || {}), re = /* @__PURE__ */ ((e) => (e[e.Minutes = 6e4] = "Minutes", e[e.Hours = 36e5] = "Hours", e[e.Weeks = 6048e5] = "Weeks", e[e.Days = 864e5] = "Days", e[e.Months = 2592e6] = "Months", e[e.Years = 31536e6] = "Years", e))(re || {}), V = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TAKE_PROFIT_MARKET = "take-profit-market", e.TAKE_PROFIT_LIMIT = "take-profit-limit", e.STOP_LOSS_LIMIT = "stop-loss-limit", e.STOP_LOSS_MARKET = "stop-loss-market", e))(V || {}), se = /* @__PURE__ */ ((e) => (e.Arbidex = "arbidex", e.Blackhole = "blackhole", e.Chronos = "chronos", e.Dragon = "dragon", e.Kodiak = "kodiak", e.Lynex = "lynex", e.Nami = "nami", e.Newera = "newera", e.Omni = "omni", e.Pancake = "pancake", e.Quick = "quick", e.Ramses = "ramses", e.Shadow = "shadow", e.Spark = "spark", e.Spooky = "spooky", e.Swapx = "swapx", e.Teafi = "teafi", e.Thena = "thena", e.Yowie = "yowie", e.Pangolin = "pangolin", e.Sushiswap = "sushiswap", e.Agent = "agent", e.Utila = "utila", e.Ring = "ring", e.EfficientFrontier = "ef", e.HtDigital = "ht", e))(se || {}), Ht = /* @__PURE__ */ ((e) => (e.EMPTY_LIMIT_PRICE = "emptyLimitPrice", e.MAX_CHUNKS = "maxChunksError", e.MIN_CHUNKS = "minChunksError", e.MIN_TRADE_SIZE = "minTradeSizeError", e.MAX_FILL_DELAY = "maxFillDelayError", e.MIN_FILL_DELAY = "minFillDelayError", e.MAX_ORDER_DURATION = "maxDurationError", e.MIN_ORDER_DURATION = "minDurationError", e.MISSING_LIMIT_PRICE = "missingLimitPrice", e.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE = "StopLossTriggerPriceError", e.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE = "triggerLimitPriceError", e.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE = "TakeProfitTriggerPriceError", e.EMPTY_TRIGGER_PRICE = "emptyTriggerPrice", e.INSUFFICIENT_BALANCE = "insufficientFunds", e.MAX_ORDER_SIZE = "maxOrderSize", e.MIN_TRADE_SIZE_ERROR = "minTradeSizeError", e))(Ht || {});
695
695
  const N = "0x0000000000000000000000000000000000000000", q = {
696
696
  eth: {
697
697
  id: 1,
@@ -1267,23 +1267,23 @@ const N = "0x0000000000000000000000000000000000000000", q = {
1267
1267
  explorer: "https://mantlescan.xyz",
1268
1268
  eip1559: !0
1269
1269
  }
1270
- }, Ht = "2.6.3", We = {
1271
- version: Ht
1272
- }, Ye = "https://order-sink-dev.orbs.network", we = "https://order-sink.orbs.network", Ze = "https://order-sink-v2.orbs.network", ze = We.version.split(".")[0], $t = (e) => {
1270
+ }, $t = "2.6.5", We = {
1271
+ version: $t
1272
+ }, Ye = "https://order-sink-dev.orbs.network", we = "https://order-sink.orbs.network", Ze = "https://order-sink-v2.orbs.network", ze = We.version.split(".")[0], qt = (e) => {
1273
1273
  const a = Number(ze) >= 2;
1274
1274
  return e ? Ye : a ? Ze : we;
1275
- }, qt = (e) => {
1275
+ }, Gt = (e) => {
1276
1276
  const a = Number(ze) >= 2;
1277
1277
  return e ? [Ye] : a ? [Ze, we] : [we];
1278
- }, Gt = {
1279
- [ie.Thena]: "0xB75218ba5A99bF57Fd02556B70F05A4A0f1Dbe67"
1280
- }, Xt = ({
1278
+ }, Xt = {
1279
+ [se.Thena]: "0xB75218ba5A99bF57Fd02556B70F05A4A0f1Dbe67"
1280
+ }, jt = ({
1281
1281
  endpoint: e,
1282
1282
  exchange: a,
1283
1283
  partner: i
1284
- }) => e === we && i && Gt[i] || a, Ka = 100, Ha = 1, Me = 300 * 1e3, De = 1440 * 60 * 60 * 1e3, $e = 300 * 1e3, jt = new Date(
1285
- Me
1286
- ).getMinutes(), _e = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, ae = "https://hub.orbs.network/api/apikey/subgraphs/id", Qt = {
1284
+ }) => e === we && i && Xt[i] || a, $a = 100, qa = 1, Ue = 300 * 1e3, De = 1440 * 60 * 60 * 1e3, $e = 300 * 1e3, Qt = new Date(
1285
+ Ue
1286
+ ).getMinutes(), _e = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, ae = "https://hub.orbs.network/api/apikey/subgraphs/id", Yt = {
1287
1287
  [q.eth.id]: `${ae}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,
1288
1288
  [q.bsc.id]: `${ae}/4NfXEi8rreQsnAr4aJ45RLCKgnjcWX46Lbt9SadiCcz6`,
1289
1289
  [q.poly.id]: `${ae}/3PyRPWSvDnMowGbeBy7aNsvUkD5ZuxdXQw2RdJq4NdXi`,
@@ -1298,14 +1298,14 @@ const N = "0x0000000000000000000000000000000000000000", q = {
1298
1298
  [q.bera.id]: _e("berachain"),
1299
1299
  [q.flare.id]: _e("flare"),
1300
1300
  [q.cronosZkEvm.id]: _e("cronos-zkevm")
1301
- }, Yt = "0x0000000000000000000000000000000000000000", Zt = [
1302
- Yt,
1301
+ }, Zt = "0x0000000000000000000000000000000000000000", Jt = [
1302
+ Zt,
1303
1303
  "0x0000000000000000000000000000000000001010",
1304
1304
  "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
1305
1305
  "0x000000000000000000000000000000000000dEaD",
1306
1306
  "0x000000000000000000000000000000000000800A",
1307
1307
  "0x000000000000000000000000000000000000800a"
1308
- ], Je = "115792089237316195423570985008687907853269984665640564039457584007913129639935", G = (e) => `${e.name}_${e.chainId}`, Jt = {
1308
+ ], Je = "115792089237316195423570985008687907853269984665640564039457584007913129639935", G = (e) => `${e.name}_${e.chainId}`, ea = {
1309
1309
  [G(O.SushiArb)]: [
1310
1310
  "0x846F2B29ef314bF3D667981b4ffdADc5B858312a",
1311
1311
  "0x08c41f5D1C844061f6D952E25827eeAA576c6536"
@@ -1355,9 +1355,9 @@ const N = "0x0000000000000000000000000000000000000000", q = {
1355
1355
  "0xE5012eBDe5e26EE3Ea41992154731a03023CF274"
1356
1356
  ]
1357
1357
  }, qe = {
1358
- unit: se.Minutes,
1359
- value: jt
1360
- }, $a = 0.25, qa = "100", ea = "RePermitWitnessTransferFrom", ta = {
1358
+ unit: re.Minutes,
1359
+ value: Qt
1360
+ }, Ga = 0.25, Xa = "100", ta = "RePermitWitnessTransferFrom", aa = {
1361
1361
  RePermitWitnessTransferFrom: [
1362
1362
  {
1363
1363
  name: "permitted",
@@ -1487,12 +1487,12 @@ const N = "0x0000000000000000000000000000000000000000", q = {
1487
1487
  type: "uint256"
1488
1488
  }
1489
1489
  ]
1490
- }, Ga = "https://www.orbs.com/dtwap-and-dlimit-faq/", Xa = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP", ja = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg", Qa = "https://www.orbs.com/assets/img/common/logo.svg", Ya = "https://www.orbs.com/", Za = "https://www.orbs.com/dtwap-dlimit-disclaimer";
1490
+ }, ja = "https://www.orbs.com/dtwap-and-dlimit-faq/", Qa = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP", Ya = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg", Za = "https://www.orbs.com/assets/img/common/logo.svg", Ja = "https://www.orbs.com/", en = "https://www.orbs.com/dtwap-dlimit-disclaimer";
1491
1491
  var Ee = /* @__PURE__ */ ((e) => (e.FRESHNESS = "freshness", e.MIN_CHUNK_SIZE_USD = "minChunkSizeUsd", e.ENV = "env", e.DURATION = "duration", e.IGNORE_ERRORS = "ignore-errors", e))(Ee || {});
1492
- const Ja = "-5", en = "10", tn = "-10", an = "5", nn = "Something went wrong";
1493
- var aa = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, ve = Math.ceil, ee = Math.floor, X = "[BigNumber Error] ", Ge = X + "Number primitive has more than 15 significant digits: ", ne = 1e14, k = 14, Re = 9007199254740991, Pe = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ue = 1e7, z = 1e9;
1492
+ const tn = "-5", an = "10", nn = "-10", sn = "5", rn = "Something went wrong";
1493
+ var na = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, ve = Math.ceil, ee = Math.floor, X = "[BigNumber Error] ", Ge = X + "Number primitive has more than 15 significant digits: ", ne = 1e14, k = 14, Re = 9007199254740991, Pe = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ue = 1e7, z = 1e9;
1494
1494
  function et(e) {
1495
- var a, i, y, d = E.prototype = { constructor: E, toString: null, valueOf: null }, A = new E(1), b = 20, x = 4, F = -7, w = 21, S = -1e7, C = 1e7, T = !1, R = 1, P = 0, Y = {
1495
+ var a, i, y, d = E.prototype = { constructor: E, toString: null, valueOf: null }, A = new E(1), b = 20, x = 4, C = -7, w = 21, S = -1e7, F = 1e7, T = !1, R = 1, P = 0, Y = {
1496
1496
  prefix: "",
1497
1497
  groupSize: 3,
1498
1498
  secondaryGroupSize: 0,
@@ -1508,23 +1508,23 @@ function et(e) {
1508
1508
  if (!(l instanceof E)) return new E(t, n);
1509
1509
  if (n == null) {
1510
1510
  if (t && t._isBigNumber === !0) {
1511
- l.s = t.s, !t.c || t.e > C ? l.c = l.e = null : t.e < S ? l.c = [l.e = 0] : (l.e = t.e, l.c = t.c.slice());
1511
+ l.s = t.s, !t.c || t.e > F ? l.c = l.e = null : t.e < S ? l.c = [l.e = 0] : (l.e = t.e, l.c = t.c.slice());
1512
1512
  return;
1513
1513
  }
1514
1514
  if ((r = typeof t == "number") && t * 0 == 0) {
1515
1515
  if (l.s = 1 / t < 0 ? (t = -t, -1) : 1, t === ~~t) {
1516
1516
  for (p = 0, m = t; m >= 10; m /= 10, p++) ;
1517
- p > C ? l.c = l.e = null : (l.e = p, l.c = [t]);
1517
+ p > F ? l.c = l.e = null : (l.e = p, l.c = [t]);
1518
1518
  return;
1519
1519
  }
1520
1520
  f = String(t);
1521
1521
  } else {
1522
- if (!aa.test(f = String(t))) return y(l, f, r);
1522
+ if (!na.test(f = String(t))) return y(l, f, r);
1523
1523
  l.s = f.charCodeAt(0) == 45 ? (f = f.slice(1), -1) : 1;
1524
1524
  }
1525
1525
  (p = f.indexOf(".")) > -1 && (f = f.replace(".", "")), (m = f.search(/e/i)) > 0 ? (p < 0 && (p = m), p += +f.slice(m + 1), f = f.substring(0, m)) : p < 0 && (p = f.length);
1526
1526
  } else {
1527
- if (U(n, 2, j.length, "Base"), n == 10 && le)
1527
+ if (M(n, 2, j.length, "Base"), n == 10 && le)
1528
1528
  return l = new E(t), Q(l, b + l.e + 1, x);
1529
1529
  if (f = String(t), r = typeof t == "number") {
1530
1530
  if (t * 0 != 0) return y(l, f, r, n);
@@ -1552,7 +1552,7 @@ function et(e) {
1552
1552
  if (f = f.slice(m, ++c)) {
1553
1553
  if (c -= m, r && E.DEBUG && c > 15 && (t > Re || t !== ee(t)))
1554
1554
  throw Error(Ge + l.s * t);
1555
- if ((p = p - m - 1) > C)
1555
+ if ((p = p - m - 1) > F)
1556
1556
  l.c = l.e = null;
1557
1557
  else if (p < S)
1558
1558
  l.c = [l.e = 0];
@@ -1573,11 +1573,11 @@ function et(e) {
1573
1573
  var n, s;
1574
1574
  if (t != null)
1575
1575
  if (typeof t == "object") {
1576
- if (t.hasOwnProperty(n = "DECIMAL_PLACES") && (s = t[n], U(s, 0, z, n), b = s), t.hasOwnProperty(n = "ROUNDING_MODE") && (s = t[n], U(s, 0, 8, n), x = s), t.hasOwnProperty(n = "EXPONENTIAL_AT") && (s = t[n], s && s.pop ? (U(s[0], -z, 0, n), U(s[1], 0, z, n), F = s[0], w = s[1]) : (U(s, -z, z, n), F = -(w = s < 0 ? -s : s))), t.hasOwnProperty(n = "RANGE"))
1576
+ if (t.hasOwnProperty(n = "DECIMAL_PLACES") && (s = t[n], M(s, 0, z, n), b = s), t.hasOwnProperty(n = "ROUNDING_MODE") && (s = t[n], M(s, 0, 8, n), x = s), t.hasOwnProperty(n = "EXPONENTIAL_AT") && (s = t[n], s && s.pop ? (M(s[0], -z, 0, n), M(s[1], 0, z, n), C = s[0], w = s[1]) : (M(s, -z, z, n), C = -(w = s < 0 ? -s : s))), t.hasOwnProperty(n = "RANGE"))
1577
1577
  if (s = t[n], s && s.pop)
1578
- U(s[0], -z, -1, n), U(s[1], 1, z, n), S = s[0], C = s[1];
1579
- else if (U(s, -z, z, n), s)
1580
- S = -(C = s < 0 ? -s : s);
1578
+ M(s[0], -z, -1, n), M(s[1], 1, z, n), S = s[0], F = s[1];
1579
+ else if (M(s, -z, z, n), s)
1580
+ S = -(F = s < 0 ? -s : s);
1581
1581
  else
1582
1582
  throw Error(X + n + " cannot be zero: " + s);
1583
1583
  if (t.hasOwnProperty(n = "CRYPTO"))
@@ -1591,7 +1591,7 @@ function et(e) {
1591
1591
  T = s;
1592
1592
  else
1593
1593
  throw Error(X + n + " not true or false: " + s);
1594
- if (t.hasOwnProperty(n = "MODULO_MODE") && (s = t[n], U(s, 0, 9, n), R = s), t.hasOwnProperty(n = "POW_PRECISION") && (s = t[n], U(s, 0, z, n), P = s), t.hasOwnProperty(n = "FORMAT"))
1594
+ if (t.hasOwnProperty(n = "MODULO_MODE") && (s = t[n], M(s, 0, 9, n), R = s), t.hasOwnProperty(n = "POW_PRECISION") && (s = t[n], M(s, 0, z, n), P = s), t.hasOwnProperty(n = "FORMAT"))
1595
1595
  if (s = t[n], typeof s == "object") Y = s;
1596
1596
  else throw Error(X + n + " not an object: " + s);
1597
1597
  if (t.hasOwnProperty(n = "ALPHABET"))
@@ -1604,8 +1604,8 @@ function et(e) {
1604
1604
  return {
1605
1605
  DECIMAL_PLACES: b,
1606
1606
  ROUNDING_MODE: x,
1607
- EXPONENTIAL_AT: [F, w],
1608
- RANGE: [S, C],
1607
+ EXPONENTIAL_AT: [C, w],
1608
+ RANGE: [S, F],
1609
1609
  CRYPTO: T,
1610
1610
  MODULO_MODE: R,
1611
1611
  POW_PRECISION: P,
@@ -1643,7 +1643,7 @@ function et(e) {
1643
1643
  };
1644
1644
  return function(s) {
1645
1645
  var u, o, p, m, r, c = 0, f = [], l = new E(A);
1646
- if (s == null ? s = b : U(s, 0, z), m = ve(s / k), T)
1646
+ if (s == null ? s = b : M(s, 0, z), m = ve(s / k), T)
1647
1647
  if (crypto.getRandomValues) {
1648
1648
  for (u = crypto.getRandomValues(new Uint32Array(m *= 2)); c < m; )
1649
1649
  r = u[c] * 131072 + (u[c + 1] >>> 11), r >= 9e15 ? (o = crypto.getRandomValues(new Uint32Array(2)), u[c] = o[0], u[c + 1] = o[1]) : (f.push(r % 1e14), c += 2);
@@ -1681,22 +1681,22 @@ function et(e) {
1681
1681
  return r.reverse();
1682
1682
  }
1683
1683
  return function(s, u, o, p, m) {
1684
- var r, c, f, l, h, D, B, v, M = s.indexOf("."), W = b, _ = x;
1685
- for (M >= 0 && (l = P, P = 0, s = s.replace(".", ""), v = new E(u), D = v.pow(s.length - M), P = l, v.c = n(
1684
+ var r, c, f, l, h, D, B, v, U = s.indexOf("."), W = b, _ = x;
1685
+ for (U >= 0 && (l = P, P = 0, s = s.replace(".", ""), v = new E(u), D = v.pow(s.length - U), P = l, v.c = n(
1686
1686
  ce(J(D.c), D.e, "0"),
1687
1687
  10,
1688
1688
  o,
1689
1689
  t
1690
1690
  ), v.e = v.c.length), B = n(s, u, o, m ? (r = j, t) : (r = t, j)), f = l = B.length; B[--l] == 0; B.pop()) ;
1691
1691
  if (!B[0]) return r.charAt(0);
1692
- if (M < 0 ? --f : (D.c = B, D.e = f, D.s = p, D = a(D, v, W, _, o), B = D.c, h = D.r, f = D.e), c = f + W + 1, M = B[c], l = o / 2, h = h || c < 0 || B[c + 1] != null, h = _ < 4 ? (M != null || h) && (_ == 0 || _ == (D.s < 0 ? 3 : 2)) : M > l || M == l && (_ == 4 || h || _ == 6 && B[c - 1] & 1 || _ == (D.s < 0 ? 8 : 7)), c < 1 || !B[0])
1692
+ if (U < 0 ? --f : (D.c = B, D.e = f, D.s = p, D = a(D, v, W, _, o), B = D.c, h = D.r, f = D.e), c = f + W + 1, U = B[c], l = o / 2, h = h || c < 0 || B[c + 1] != null, h = _ < 4 ? (U != null || h) && (_ == 0 || _ == (D.s < 0 ? 3 : 2)) : U > l || U == l && (_ == 4 || h || _ == 6 && B[c - 1] & 1 || _ == (D.s < 0 ? 8 : 7)), c < 1 || !B[0])
1693
1693
  s = h ? ce(r.charAt(1), -W, r.charAt(0)) : r.charAt(0);
1694
1694
  else {
1695
1695
  if (B.length = c, h)
1696
1696
  for (--o; ++B[--c] > o; )
1697
1697
  B[c] = 0, c || (++f, B = [1].concat(B));
1698
1698
  for (l = B.length; !B[--l]; ) ;
1699
- for (M = 0, s = ""; M <= l; s += r.charAt(B[M++])) ;
1699
+ for (U = 0, s = ""; U <= l; s += r.charAt(B[U++])) ;
1700
1700
  s = ce(s, f, r.charAt(0));
1701
1701
  }
1702
1702
  return s;
@@ -1726,7 +1726,7 @@ function et(e) {
1726
1726
  for (; !u[0] && u.length > 1; u.splice(0, 1)) ;
1727
1727
  }
1728
1728
  return function(u, o, p, m, r) {
1729
- var c, f, l, h, D, B, v, M, W, _, I, K, ge, ke, Oe, re, be, Z = u.s == o.s ? 1 : -1, $ = u.c, L = o.c;
1729
+ var c, f, l, h, D, B, v, U, W, _, I, K, ge, ke, Oe, ie, be, Z = u.s == o.s ? 1 : -1, $ = u.c, L = o.c;
1730
1730
  if (!$ || !$[0] || !L || !L[0])
1731
1731
  return new E(
1732
1732
  // Return NaN if either NaN, or both Infinity or 0.
@@ -1735,22 +1735,22 @@ function et(e) {
1735
1735
  $ && $[0] == 0 || !L ? Z * 0 : Z / 0
1736
1736
  )
1737
1737
  );
1738
- for (M = new E(Z), W = M.c = [], f = u.e - o.e, Z = p + f + 1, r || (r = ne, f = te(u.e / k) - te(o.e / k), Z = Z / k | 0), l = 0; L[l] == ($[l] || 0); l++) ;
1738
+ for (U = new E(Z), W = U.c = [], f = u.e - o.e, Z = p + f + 1, r || (r = ne, f = te(u.e / k) - te(o.e / k), Z = Z / k | 0), l = 0; L[l] == ($[l] || 0); l++) ;
1739
1739
  if (L[l] > ($[l] || 0) && f--, Z < 0)
1740
1740
  W.push(1), h = !0;
1741
1741
  else {
1742
- for (ke = $.length, re = L.length, l = 0, Z += 2, D = ee(r / (L[0] + 1)), D > 1 && (L = t(L, D, r), $ = t($, D, r), re = L.length, ke = $.length), ge = re, _ = $.slice(0, re), I = _.length; I < re; _[I++] = 0) ;
1742
+ for (ke = $.length, ie = L.length, l = 0, Z += 2, D = ee(r / (L[0] + 1)), D > 1 && (L = t(L, D, r), $ = t($, D, r), ie = L.length, ke = $.length), ge = ie, _ = $.slice(0, ie), I = _.length; I < ie; _[I++] = 0) ;
1743
1743
  be = L.slice(), be = [0].concat(be), Oe = L[0], L[1] >= r / 2 && Oe++;
1744
1744
  do {
1745
- if (D = 0, c = n(L, _, re, I), c < 0) {
1746
- if (K = _[0], re != I && (K = K * r + (_[1] || 0)), D = ee(K / Oe), D > 1)
1745
+ if (D = 0, c = n(L, _, ie, I), c < 0) {
1746
+ if (K = _[0], ie != I && (K = K * r + (_[1] || 0)), D = ee(K / Oe), D > 1)
1747
1747
  for (D >= r && (D = r - 1), B = t(L, D, r), v = B.length, I = _.length; n(B, _, v, I) == 1; )
1748
- D--, s(B, re < v ? be : L, v, r), v = B.length, c = 1;
1748
+ D--, s(B, ie < v ? be : L, v, r), v = B.length, c = 1;
1749
1749
  else
1750
1750
  D == 0 && (c = D = 1), B = L.slice(), v = B.length;
1751
1751
  if (v < I && (B = [0].concat(B)), s(_, B, I, r), I = _.length, c == -1)
1752
- for (; n(L, _, re, I) < 1; )
1753
- D++, s(_, re < I ? be : L, I, r), I = _.length;
1752
+ for (; n(L, _, ie, I) < 1; )
1753
+ D++, s(_, ie < I ? be : L, I, r), I = _.length;
1754
1754
  } else c === 0 && (D++, _ = [0]);
1755
1755
  W[l++] = D, _[0] ? _[I++] = $[ge] || 0 : (_ = [$[ge]], I = 1);
1756
1756
  } while ((ge++ < ke || _[0] != null) && Z--);
@@ -1758,18 +1758,18 @@ function et(e) {
1758
1758
  }
1759
1759
  if (r == ne) {
1760
1760
  for (l = 1, Z = W[0]; Z >= 10; Z /= 10, l++) ;
1761
- Q(M, p + (M.e = l + f * k - 1) + 1, m, h);
1761
+ Q(U, p + (U.e = l + f * k - 1) + 1, m, h);
1762
1762
  } else
1763
- M.e = f, M.r = +h;
1764
- return M;
1763
+ U.e = f, U.r = +h;
1764
+ return U;
1765
1765
  };
1766
1766
  })();
1767
1767
  function Ae(t, n, s, u) {
1768
1768
  var o, p, m, r, c;
1769
- if (s == null ? s = x : U(s, 0, 8), !t.c) return t.toString();
1769
+ if (s == null ? s = x : M(s, 0, 8), !t.c) return t.toString();
1770
1770
  if (o = t.c[0], m = t.e, n == null)
1771
- c = J(t.c), c = u == 1 || u == 2 && (m <= F || m >= w) ? Te(c, m) : ce(c, m, "0");
1772
- else if (t = Q(new E(t), n, s), p = t.e, c = J(t.c), r = c.length, u == 1 || u == 2 && (n <= p || p <= F)) {
1771
+ c = J(t.c), c = u == 1 || u == 2 && (m <= C || m >= w) ? Te(c, m) : ce(c, m, "0");
1772
+ else if (t = Q(new E(t), n, s), p = t.e, c = J(t.c), r = c.length, u == 1 || u == 2 && (n <= p || p <= C)) {
1773
1773
  for (; r < n; c += "0", r++) ;
1774
1774
  c = Te(c, p);
1775
1775
  } else if (n -= m + (u === 2 && p > m), c = ce(c, p, "0"), p + 1 > r) {
@@ -1786,7 +1786,7 @@ function et(e) {
1786
1786
  function he(t, n, s) {
1787
1787
  for (var u = 1, o = n.length; !n[--o]; n.pop()) ;
1788
1788
  for (o = n[0]; o >= 10; o /= 10, u++) ;
1789
- return (s = u + s * k - 1) > C ? t.c = t.e = null : s < S ? t.c = [t.e = 0] : (t.e = s, t.c = n), t;
1789
+ return (s = u + s * k - 1) > F ? t.c = t.e = null : s < S ? t.c = [t.e = 0] : (t.e = s, t.c = n), t;
1790
1790
  }
1791
1791
  y = /* @__PURE__ */ (function() {
1792
1792
  var t = /^(-?)0([xbo])(?=\w[\w.]*$)/i, n = /^([^.]+)\.$/, s = /^\.([^.]+)$/, u = /^-?(Infinity|NaN)$/, o = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
@@ -1842,13 +1842,13 @@ function et(e) {
1842
1842
  }
1843
1843
  for (p = h.length; h[--p] === 0; h.pop()) ;
1844
1844
  }
1845
- t.e > C ? t.c = t.e = null : t.e < S && (t.c = [t.e = 0]);
1845
+ t.e > F ? t.c = t.e = null : t.e < S && (t.c = [t.e = 0]);
1846
1846
  }
1847
1847
  return t;
1848
1848
  }
1849
1849
  function de(t) {
1850
1850
  var n, s = t.e;
1851
- return s === null ? t.toString() : (n = J(t.c), n = s <= F || s >= w ? Te(n, s) : ce(n, s, "0"), t.s < 0 ? "-" + n : n);
1851
+ return s === null ? t.toString() : (n = J(t.c), n = s <= C || s >= w ? Te(n, s) : ce(n, s, "0"), t.s < 0 ? "-" + n : n);
1852
1852
  }
1853
1853
  return d.absoluteValue = d.abs = function() {
1854
1854
  var t = new E(this);
@@ -1858,7 +1858,7 @@ function et(e) {
1858
1858
  }, d.decimalPlaces = d.dp = function(t, n) {
1859
1859
  var s, u, o, p = this;
1860
1860
  if (t != null)
1861
- return U(t, 0, z), n == null ? n = x : U(n, 0, 8), Q(new E(p), t + p.e + 1, n);
1861
+ return M(t, 0, z), n == null ? n = x : M(n, 0, 8), Q(new E(p), t + p.e + 1, n);
1862
1862
  if (!(s = p.c)) return null;
1863
1863
  if (u = ((o = s.length - 1) - te(this.e / k)) * k, o = s[o]) for (; o % 10 == 0; o /= 10, u--) ;
1864
1864
  return u < 0 && (u = 0), u;
@@ -1899,7 +1899,7 @@ function et(e) {
1899
1899
  return u ? l : (c && (l = A.div(l)), n ? l.mod(n) : p ? Q(l, P, x, m) : l);
1900
1900
  }, d.integerValue = function(t) {
1901
1901
  var n = new E(this);
1902
- return t == null ? t = x : U(t, 0, 8), Q(n, n.e + 1, t);
1902
+ return t == null ? t = x : M(t, 0, 8), Q(n, n.e + 1, t);
1903
1903
  }, d.isEqualTo = d.eq = function(t, n) {
1904
1904
  return fe(this, new E(t, n)) === 0;
1905
1905
  }, d.isFinite = function() {
@@ -1959,13 +1959,13 @@ function et(e) {
1959
1959
  var s, u, o = this;
1960
1960
  return t = new E(t, n), !o.c || !t.s || t.c && !t.c[0] ? new E(NaN) : !t.c || o.c && !o.c[0] ? new E(o) : (R == 9 ? (u = t.s, t.s = 1, s = a(o, t, 0, 3), t.s = u, s.s *= u) : s = a(o, t, 0, R), t = o.minus(s.times(t)), !t.c[0] && R == 1 && (t.s = o.s), t);
1961
1961
  }, d.multipliedBy = d.times = function(t, n) {
1962
- var s, u, o, p, m, r, c, f, l, h, D, B, v, M, W, _ = this, I = _.c, K = (t = new E(t, n)).c;
1962
+ var s, u, o, p, m, r, c, f, l, h, D, B, v, U, W, _ = this, I = _.c, K = (t = new E(t, n)).c;
1963
1963
  if (!I || !K || !I[0] || !K[0])
1964
1964
  return !_.s || !t.s || I && !I[0] && !K || K && !K[0] && !I ? t.c = t.e = t.s = null : (t.s *= _.s, !I || !K ? t.c = t.e = null : (t.c = [0], t.e = 0)), t;
1965
1965
  for (u = te(_.e / k) + te(t.e / k), t.s *= _.s, c = I.length, h = K.length, c < h && (v = I, I = K, K = v, o = c, c = h, h = o), o = c + h, v = []; o--; v.push(0)) ;
1966
- for (M = ne, W = ue, o = h; --o >= 0; ) {
1966
+ for (U = ne, W = ue, o = h; --o >= 0; ) {
1967
1967
  for (s = 0, D = K[o] % W, B = K[o] / W | 0, m = c, p = o + m; p > o; )
1968
- f = I[--m] % W, l = I[m] / W | 0, r = B * f + l * D, f = D * f + r % W * W + v[p] + s, s = (f / M | 0) + (r / W | 0) + B * l, v[p--] = f % M;
1968
+ f = I[--m] % W, l = I[m] / W | 0, r = B * f + l * D, f = D * f + r % W * W + v[p] + s, s = (f / U | 0) + (r / W | 0) + B * l, v[p--] = f % U;
1969
1969
  v[p] = s;
1970
1970
  }
1971
1971
  return s ? ++u : v.splice(0, 1), he(t, v, u);
@@ -1992,7 +1992,7 @@ function et(e) {
1992
1992
  }, d.precision = d.sd = function(t, n) {
1993
1993
  var s, u, o, p = this;
1994
1994
  if (t != null && t !== !!t)
1995
- return U(t, 1, z), n == null ? n = x : U(n, 0, 8), Q(new E(p), t, n);
1995
+ return M(t, 1, z), n == null ? n = x : M(n, 0, 8), Q(new E(p), t, n);
1996
1996
  if (!(s = p.c)) return null;
1997
1997
  if (o = s.length - 1, u = o * k + 1, o = s[o]) {
1998
1998
  for (; o % 10 == 0; o /= 10, u--) ;
@@ -2000,7 +2000,7 @@ function et(e) {
2000
2000
  }
2001
2001
  return t && p.e + 1 > u && (u = p.e + 1), u;
2002
2002
  }, d.shiftedBy = function(t) {
2003
- return U(t, -Re, Re), this.times("1e" + t);
2003
+ return M(t, -Re, Re), this.times("1e" + t);
2004
2004
  }, d.squareRoot = d.sqrt = function() {
2005
2005
  var t, n, s, u, o, p = this, m = p.c, r = p.s, c = p.e, f = b + 4, l = new E("0.5");
2006
2006
  if (r !== 1 || !m || !m[0])
@@ -2021,9 +2021,9 @@ function et(e) {
2021
2021
  }
2022
2022
  return Q(s, s.e + b + 1, x, t);
2023
2023
  }, d.toExponential = function(t, n) {
2024
- return t != null && (U(t, 0, z), t++), Ae(this, t, n, 1);
2024
+ return t != null && (M(t, 0, z), t++), Ae(this, t, n, 1);
2025
2025
  }, d.toFixed = function(t, n) {
2026
- return t != null && (U(t, 0, z), t = t + this.e + 1), Ae(this, t, n);
2026
+ return t != null && (M(t, 0, z), t = t + this.e + 1), Ae(this, t, n);
2027
2027
  }, d.toFormat = function(t, n, s) {
2028
2028
  var u, o = this;
2029
2029
  if (s == null)
@@ -2047,18 +2047,18 @@ function et(e) {
2047
2047
  if (t != null && (r = new E(t), !r.isInteger() && (r.c || r.s !== 1) || r.lt(A)))
2048
2048
  throw Error(X + "Argument " + (r.isInteger() ? "out of range: " : "not an integer: ") + de(r));
2049
2049
  if (!v) return new E(B);
2050
- for (n = new E(A), f = s = new E(A), u = c = new E(A), D = J(v), p = n.e = D.length - B.e - 1, n.c[0] = Pe[(m = p % k) < 0 ? k + m : m], t = !t || r.comparedTo(n) > 0 ? p > 0 ? n : f : r, m = C, C = 1 / 0, r = new E(D), c.c[0] = 0; l = a(r, n, 0, 1), o = s.plus(l.times(u)), o.comparedTo(t) != 1; )
2050
+ for (n = new E(A), f = s = new E(A), u = c = new E(A), D = J(v), p = n.e = D.length - B.e - 1, n.c[0] = Pe[(m = p % k) < 0 ? k + m : m], t = !t || r.comparedTo(n) > 0 ? p > 0 ? n : f : r, m = F, F = 1 / 0, r = new E(D), c.c[0] = 0; l = a(r, n, 0, 1), o = s.plus(l.times(u)), o.comparedTo(t) != 1; )
2051
2051
  s = u, u = o, f = c.plus(l.times(o = f)), c = o, n = r.minus(l.times(o = n)), r = o;
2052
2052
  return o = a(t.minus(s), u, 0, 1), c = c.plus(o.times(f)), s = s.plus(o.times(u)), c.s = f.s = B.s, p = p * 2, h = a(f, u, p, x).minus(B).abs().comparedTo(
2053
2053
  a(c, s, p, x).minus(B).abs()
2054
- ) < 1 ? [f, u] : [c, s], C = m, h;
2054
+ ) < 1 ? [f, u] : [c, s], F = m, h;
2055
2055
  }, d.toNumber = function() {
2056
2056
  return +de(this);
2057
2057
  }, d.toPrecision = function(t, n) {
2058
- return t != null && U(t, 1, z), Ae(this, t, n, 2);
2058
+ return t != null && M(t, 1, z), Ae(this, t, n, 2);
2059
2059
  }, d.toString = function(t) {
2060
2060
  var n, s = this, u = s.s, o = s.e;
2061
- return o === null ? u ? (n = "Infinity", u < 0 && (n = "-" + n)) : n = "NaN" : (t == null ? n = o <= F || o >= w ? Te(J(s.c), o) : ce(J(s.c), o, "0") : t === 10 && le ? (s = Q(new E(s), b + o + 1, x), n = ce(J(s.c), s.e, "0")) : (U(t, 2, j.length, "Base"), n = i(ce(J(s.c), o, "0"), 10, t, u, !0)), u < 0 && s.c[0] && (n = "-" + n)), n;
2061
+ return o === null ? u ? (n = "Infinity", u < 0 && (n = "-" + n)) : n = "NaN" : (t == null ? n = o <= C || o >= w ? Te(J(s.c), o) : ce(J(s.c), o, "0") : t === 10 && le ? (s = Q(new E(s), b + o + 1, x), n = ce(J(s.c), s.e, "0")) : (M(t, 2, j.length, "Base"), n = i(ce(J(s.c), o, "0"), 10, t, u, !0)), u < 0 && s.c[0] && (n = "-" + n)), n;
2062
2062
  }, d.valueOf = d.toJSON = function() {
2063
2063
  return de(this);
2064
2064
  }, d._isBigNumber = !0, d[Symbol.toStringTag] = "BigNumber", d[Symbol.for("nodejs.util.inspect.custom")] = d.valueOf, e != null && E.set(e), E;
@@ -2076,16 +2076,16 @@ function J(e) {
2076
2076
  return A.slice(0, d + 1 || 1);
2077
2077
  }
2078
2078
  function fe(e, a) {
2079
- var i, y, d = e.c, A = a.c, b = e.s, x = a.s, F = e.e, w = a.e;
2079
+ var i, y, d = e.c, A = a.c, b = e.s, x = a.s, C = e.e, w = a.e;
2080
2080
  if (!b || !x) return null;
2081
2081
  if (i = d && !d[0], y = A && !A[0], i || y) return i ? y ? 0 : -x : b;
2082
2082
  if (b != x) return b;
2083
- if (i = b < 0, y = F == w, !d || !A) return y ? 0 : !d ^ i ? 1 : -1;
2084
- if (!y) return F > w ^ i ? 1 : -1;
2085
- for (x = (F = d.length) < (w = A.length) ? F : w, b = 0; b < x; b++) if (d[b] != A[b]) return d[b] > A[b] ^ i ? 1 : -1;
2086
- return F == w ? 0 : F > w ^ i ? 1 : -1;
2083
+ if (i = b < 0, y = C == w, !d || !A) return y ? 0 : !d ^ i ? 1 : -1;
2084
+ if (!y) return C > w ^ i ? 1 : -1;
2085
+ for (x = (C = d.length) < (w = A.length) ? C : w, b = 0; b < x; b++) if (d[b] != A[b]) return d[b] > A[b] ^ i ? 1 : -1;
2086
+ return C == w ? 0 : C > w ^ i ? 1 : -1;
2087
2087
  }
2088
- function U(e, a, i, y) {
2088
+ function M(e, a, i, y) {
2089
2089
  if (e < a || e > i || e !== ee(e))
2090
2090
  throw Error(X + (y || "Argument") + (typeof e == "number" ? e < a || e > i ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e));
2091
2091
  }
@@ -2108,14 +2108,14 @@ function ce(e, a, i) {
2108
2108
  return e;
2109
2109
  }
2110
2110
  var g = et();
2111
- function na(e) {
2111
+ function sa(e) {
2112
2112
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2113
2113
  }
2114
- const sa = {
2114
+ const ra = {
2115
2115
  1: { adapter: { Odos: "0x1ae80D14C52F82c09a54C423e6f9D5Fb737089C8", Sushi: "0x11985E88847aEC23D1C3BCD77Ca0F4A704aB751c", Ring: "0x47e27973dA3e16dB13F8b713877b3A31623E0E5B" }, dex: { sushiswap: { type: "default", solver: "Sushi", router: "0xAC4c6e212A361c968F1725b4d055b47E63F80b75", adapter: "0x2e43A28FAf083717CcD9B246d97C61E1Bc9914Df", fee: "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc" }, ring: { type: "dynamicp2", solver: "Ring", permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3", adapter: "0x028fa69049aB68EC42064Eb18896D587dD41Af2a", fee: "0xA04329696aAd1417c75Cf6d91342815001999B21" } } },
2116
2116
  10: { adapter: { Odos: "0xc7Ec90152fd5A6210570cb04C4Ab099Bdac352af", Sushi: "0x11985E88847aEC23D1C3BCD77Ca0F4A704aB751c" }, dex: { sushiswap: { type: "default", solver: "Sushi", router: "0xAC4c6e212A361c968F1725b4d055b47E63F80b75", adapter: "0x2e43A28FAf083717CcD9B246d97C61E1Bc9914Df", fee: "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc" } } },
2117
2117
  14: { adapter: { SparkDex: "0x00c7617C471Ef69124464CEc318a3b8CC90aE9A7" }, dex: { spark: { type: "default", solver: "SparkDex", router: "0x0f3D8a38D4c74afBebc2c42695642f0e3acb15D3", adapter: "0x00c7617C471Ef69124464CEc318a3b8CC90aE9A7", fee: "0xaeA8C3e1a129A77686E115b1a46D9aD8405F7D2b" } } },
2118
- 56: { adapter: { Odos: "0x6c17cc2984A87BD8b002c6E3C08dBB8c8Eb89E48", Orbs: "0xaf3532dca7b4a75cD06671614C093e9e8fb5b1F2", Ring: "0x47e27973dA3e16dB13F8b713877b3A31623E0E5B" }, dex: { thena: { type: "default", solver: "Odos", router: "0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E", adapter: "0x9E61dEabe996236814c28eC69ab2A7405cB6f03E", fee: "0x15eBc8b5b3877512FFF23650188694A9a8891FAc" }, pancake: { type: "p2", solver: "Orbs", router: "0xd9C500DfF816a1Da21A48A732d3498Bf09dc9AEB", permit2: "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768", adapter: "0x52Ed96B1AEd25818B6A284b063b055488E012b73", fee: "0x37A957f10F458e0d7fDECBE2917971b57F15c927" }, newera: { type: "default", solver: "Odos", router: "0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E", adapter: "0x6236a466CE5c368DC6686d69cAcf5561196B76ef", fee: "0x4E7454909eB6D539111D56b50d68897E933D2d11" }, ring: { type: "dynamicp2", solver: "Ring", permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3", adapter: "0x028fa69049aB68EC42064Eb18896D587dD41Af2a", fee: "0xA04329696aAd1417c75Cf6d91342815001999B21" } } },
2118
+ 56: { adapter: { Odos: "0x6c17cc2984A87BD8b002c6E3C08dBB8c8Eb89E48", Orbs: "0xaf3532dca7b4a75cD06671614C093e9e8fb5b1F2", Ring: "0x47e27973dA3e16dB13F8b713877b3A31623E0E5B", Topaz: "0x2Be5260d030ff9A6040bA4292326B796ff1a055d" }, dex: { thena: { type: "default", solver: "Odos", router: "0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E", adapter: "0x9E61dEabe996236814c28eC69ab2A7405cB6f03E", fee: "0x15eBc8b5b3877512FFF23650188694A9a8891FAc" }, pancake: { type: "p2", solver: "Orbs", router: "0xd9C500DfF816a1Da21A48A732d3498Bf09dc9AEB", permit2: "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768", adapter: "0x52Ed96B1AEd25818B6A284b063b055488E012b73", fee: "0x37A957f10F458e0d7fDECBE2917971b57F15c927" }, newera: { type: "default", solver: "Odos", router: "0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E", adapter: "0x6236a466CE5c368DC6686d69cAcf5561196B76ef", fee: "0x4E7454909eB6D539111D56b50d68897E933D2d11" }, ring: { type: "dynamicp2", solver: "Ring", permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3", adapter: "0x028fa69049aB68EC42064Eb18896D587dD41Af2a", fee: "0xA04329696aAd1417c75Cf6d91342815001999B21" }, topaz: { type: "default", solver: "Topaz", router: "0x6352a56caadC4F1E25CD6c75970Fa768A3304e64", adapter: "0x671c59dCbc8ee3a08D15e1D03a88032740869919", fee: "0xDbB17E23d12cd3C0AA856528F7177a68f98fFd5B" } } },
2119
2119
  130: { adapter: { Ring: "0x47e27973dA3e16dB13F8b713877b3A31623E0E5B" }, dex: { ring: { type: "dynamicp2", solver: "Ring", permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3", adapter: "0x028fa69049aB68EC42064Eb18896D587dD41Af2a", fee: "0xA04329696aAd1417c75Cf6d91342815001999B21" } } },
2120
2120
  137: { adapter: { Odos: "0x5628D7383b42E14E83DA310de3e7E04E6b025418", Paraswap: "0x179C4b8e982b5F1365d36CC8d0c1CEB621B7198D" }, dex: { quick: { type: "paraswap", solver: "Paraswap", router: "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57", adapter: "0x727e1CbA41Ff1ff11C32fa43DAb499b4317A1b65", fee: "0xd207DC6a6dA88f27c8DB78201F974161b1d84b1f" }, teafi: { type: "paraswap", solver: "Paraswap", router: "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57", adapter: "0xF710D67C783D2C14671EC1c61B0683DCb996F5c3", fee: "0x04Ff96e2c4D62b5771795d307AD679a25b3D2D50" } } },
2121
2121
  143: { adapter: { OpenOcean: "0xc7f07C830e22FCA94bF52F38C6707F9D396c6172", Kyber: "0x6f4e5b8d7F6b037c62277992c39E7834D7C04596" }, dex: { yowie: { type: "default", solver: "OpenOcean", router: "0x6352a56caadC4F1E25CD6c75970Fa768A3304e64", adapter: "0xCA84Ab5a5A5bf2cff6AC0C835eF049365D13c6cB", fee: "0x6AF3eE77A3A3257777F5649aFa611b4C7Fd975Ef" }, pangolin: { type: "default", solver: "Kyber", router: "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", adapter: "0xf42106eBf985bF49b39eba0114F57FA05e7B52eD", fee: "0xde92da99D188Ceb54A11ec711EF52D808A6260B5" } } },
@@ -2131,13 +2131,13 @@ const sa = {
2131
2131
  59144: { adapter: { Odos: "0xA58A55AC39b47504A63993A91B78544158862e61", Orbs: "0x917b492557957f5dD3e69c04c8E1Ac3d6948c022", OpenOcean: "0xd2e68b1d1C5DBB2D6cC396c10C55017e01309C37" }, dex: { pancake: { type: "p2", solver: "Orbs", router: "0xFE6508f0015C778Bdcc1fB5465bA5ebE224C9912", permit2: "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768", adapter: "0xA7CcB11F1D20D1F915FC220F5Cb1646E4523bB75", fee: "0x37A957f10F458e0d7fDECBE2917971b57F15c927" }, lynex: { type: "default", solver: "OpenOcean", router: "0x6352a56caadC4F1E25CD6c75970Fa768A3304e64", adapter: "0xd8bC1FF79a642e8D7Fbd0711374F287202fBb3AA", fee: "0xcb36ed1B1BfAD8F7FC9651f52d21f04A68677423" } } },
2132
2132
  80094: { adapter: { Kodiak: "0xcB16237c88A859d46Ae850B97d7D1bdECF482C06" }, dex: { kodiak: { type: "default", solver: "Kodiak", router: "0x43Dac637c4383f91B4368041E7A8687da3806Cae", adapter: "0xcB16237c88A859d46Ae850B97d7D1bdECF482C06", fee: "0xBA47Ec15aFbCF6e7e9F52900632049530bB6bAe4" } } },
2133
2133
  747474: { adapter: { Sushi: "0x11985E88847aEC23D1C3BCD77Ca0F4A704aB751c" }, dex: { sushiswap: { type: "default", solver: "Sushi", router: "0xAC4c6e212A361c968F1725b4d055b47E63F80b75", adapter: "0x2e43A28FAf083717CcD9B246d97C61E1Bc9914Df", fee: "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc" } } },
2134
- "*": { wm: "0x0005d5cE0dB57e5BE3b2b8b6FeB75f0ccd015000", repermit: "0x00002a9C4D9497df5Bd31768eC5d30eEf5405000", cosigner: "0x000ECFa392ecDEfEE6e2a5C095d39B7A32f1E000", reactor: "0x000000b33fE4fB9d999Dd684F79b110731c3d000", executor: "0x000642A0966d9bd49870D9519f76b5cf823f3000", refinery: "0x000E474c0D7084EAA35A501035E73269f4b009A5", salt: { wm: "0xc9b46eae42dfeba3222a0315bf682f33cd5cc9d60c9625642e88406f8415f152", repermit: "0x4871dc9008e605821ea9677b65ea2a60ffb774afb31e0dcaea2e192880096be7", cosigner: "0x1117fe6f4e25c9380d10b2b3314a1e9b33e5f65ba0e55e0c63d0640db0dd60a2", reactor: "0xec73677f3a465a9755d4c9eab9509b59a24613fdb8b78719682930373e9876f5", executor: "0x9abc67d936f79e493f1f14050c2f6adb87ec208ff7aaae2e7ae788a7cb4796d7", refinery: "0x9746de29f1dd31b2c8460d71e92a7aefa34911130e61f274f37776e598c48bec", agentAdapter: "0xf6d54cf6a0619f1fb8e1ded91d4c23e7bb9f498c56735fb0c7669423c766219f", agentFee: "0x151234279af18acc113f70463977058efa2e598b5bfc0c106c75fd638d344c0a", utilaAdapter: "0x7671291910b559d7a05ab73ee31dd714d9c6e7b065c9496338bf427182ae5145", utilaFee: "0x46f797cddb221ecf6279b56f52e2f6360cd721ef95bd5a17dd0ffceffaaf7fd6", efAdapter: "0xa5425e0f84a7cf12c4213f57396810d808d88e43a65210786bd0d9a98a314728", efFee: "0x14387b821c54f18e2a9351887a92cc79164a5ea0b88cfc3f36741eae6d4fd815" }, dex: { agent: { type: "universal", adapter: "0x0002BeFB46587d460AcEA9B2792c4A4c67B9cADa", fee: "0x0006d9557Ac9Af4f31962896299ba4FaBDaB9fEE" }, utila: { type: "universal", adapter: "0x000ADa14B2ECF45Da6Cf1B33dE34e05231E9C76f", fee: "0x000FEee351263c82501a4dF5f699a8b630ac7f36" }, ef: { type: "universal", adapter: "0xeF1B796D708BD776F6b377E93eAd8Ca5fA0C3117", fee: "0xeF1D677d7aE1a066beb26cC1C74E31C082B75FEf" } } }
2134
+ "*": { wm: "0x0005d5cE0dB57e5BE3b2b8b6FeB75f0ccd015000", repermit: "0x00002a9C4D9497df5Bd31768eC5d30eEf5405000", cosigner: "0x000ECFa392ecDEfEE6e2a5C095d39B7A32f1E000", reactor: "0x000000b33fE4fB9d999Dd684F79b110731c3d000", executor: "0x000642A0966d9bd49870D9519f76b5cf823f3000", refinery: "0x000E474c0D7084EAA35A501035E73269f4b009A5", salt: { wm: "0xc9b46eae42dfeba3222a0315bf682f33cd5cc9d60c9625642e88406f8415f152", repermit: "0x4871dc9008e605821ea9677b65ea2a60ffb774afb31e0dcaea2e192880096be7", cosigner: "0x1117fe6f4e25c9380d10b2b3314a1e9b33e5f65ba0e55e0c63d0640db0dd60a2", reactor: "0xec73677f3a465a9755d4c9eab9509b59a24613fdb8b78719682930373e9876f5", executor: "0x9abc67d936f79e493f1f14050c2f6adb87ec208ff7aaae2e7ae788a7cb4796d7", refinery: "0x9746de29f1dd31b2c8460d71e92a7aefa34911130e61f274f37776e598c48bec", agentAdapter: "0xf6d54cf6a0619f1fb8e1ded91d4c23e7bb9f498c56735fb0c7669423c766219f", agentFee: "0x151234279af18acc113f70463977058efa2e598b5bfc0c106c75fd638d344c0a", utilaAdapter: "0x7671291910b559d7a05ab73ee31dd714d9c6e7b065c9496338bf427182ae5145", utilaFee: "0x46f797cddb221ecf6279b56f52e2f6360cd721ef95bd5a17dd0ffceffaaf7fd6", efAdapter: "0xa5425e0f84a7cf12c4213f57396810d808d88e43a65210786bd0d9a98a314728", efFee: "0x14387b821c54f18e2a9351887a92cc79164a5ea0b88cfc3f36741eae6d4fd815", htAdapter: "0x2ec50a8a136049da76c16f3dd12a8ed1b23f2bc91aca73c6a20cc8344e34f998", htFee: "0x2f902a86a7f6abeedc073e76cd33d4737f25189e18c8f450f16d2ffe14405242" }, dex: { agent: { type: "universal", adapter: "0x0002BeFB46587d460AcEA9B2792c4A4c67B9cADa", fee: "0x0006d9557Ac9Af4f31962896299ba4FaBDaB9fEE" }, utila: { type: "universal", adapter: "0x000ADa14B2ECF45Da6Cf1B33dE34e05231E9C76f", fee: "0x000FEee351263c82501a4dF5f699a8b630ac7f36" }, ef: { type: "universal", adapter: "0xeF1B796D708BD776F6b377E93eAd8Ca5fA0C3117", fee: "0xeF1D677d7aE1a066beb26cC1C74E31C082B75FEf" }, ht: { type: "universal", adapter: "0xA560a960C3b7784f5c335C33028D31596b91650b", fee: "0xE7a926C0cb01aCCE74e5d4FCeB7CA1699e200608" } } }
2135
2135
  };
2136
2136
  var Ie, Xe;
2137
- function ra() {
2137
+ function ia() {
2138
2138
  if (Xe) return Ie;
2139
2139
  Xe = 1;
2140
- const e = sa, a = (A) => na(`./out/${A}.sol/${A}.abi.json`), i = () => ({
2140
+ const e = ra, a = (A) => sa(`./out/${A}.sol/${A}.abi.json`), i = () => ({
2141
2141
  wm: a("WM"),
2142
2142
  repermit: a("RePermit"),
2143
2143
  reactor: a("OrderReactor"),
@@ -2155,17 +2155,17 @@ function ra() {
2155
2155
  }
2156
2156
  function d(A, b) {
2157
2157
  if (!A) return;
2158
- const { dex: x, salt: F, ...w } = e["*"] ?? {}, S = e[A];
2158
+ const { dex: x, salt: C, ...w } = e["*"] ?? {}, S = e[A];
2159
2159
  if (!S) return;
2160
- const { dex: C, salt: T, ...R } = S, P = { ...w, ...R }, Y = b == null ? void 0 : b.trim();
2160
+ const { dex: F, salt: T, ...R } = S, P = { ...w, ...R }, Y = b == null ? void 0 : b.trim();
2161
2161
  if (!Y) return P;
2162
- const j = x == null ? void 0 : x[Y], le = C == null ? void 0 : C[Y];
2162
+ const j = x == null ? void 0 : x[Y], le = F == null ? void 0 : F[Y];
2163
2163
  if (!(!j && !le))
2164
2164
  return { ...P, ...j, ...le };
2165
2165
  }
2166
2166
  return Ie = { config: d, adapters: y, abis: i, raw: e }, Ie;
2167
2167
  }
2168
- var tt = ra();
2168
+ var tt = ia();
2169
2169
  const ye = (e, a) => {
2170
2170
  if (!e || !a) return "";
2171
2171
  const i = g(10).pow(e || 0);
@@ -2178,106 +2178,106 @@ g(1e18);
2178
2178
  function Be(e, a) {
2179
2179
  return e == a || e.toLowerCase() == a.toLowerCase();
2180
2180
  }
2181
- const sn = (e) => !!Zt.find((a) => Be(a, e || ""));
2182
- function ia(e) {
2181
+ const on = (e) => !!Jt.find((a) => Be(a, e || ""));
2182
+ function oa(e) {
2183
2183
  return [
2184
- se.Years,
2185
- se.Months,
2186
- se.Weeks,
2187
- se.Days,
2188
- se.Hours,
2189
- se.Minutes
2190
- ].find((i) => i <= e) || se.Minutes;
2184
+ re.Years,
2185
+ re.Months,
2186
+ re.Weeks,
2187
+ re.Days,
2188
+ re.Hours,
2189
+ re.Minutes
2190
+ ].find((i) => i <= e) || re.Minutes;
2191
2191
  }
2192
- const me = (e) => e ? e.value * e.unit : 0, oa = (e) => !e || e === "NaN" ? "0" : g(e).decimalPlaces(0).toFixed(), rn = (e) => Object.values(q).find((a) => a.id === e), da = (e) => {
2192
+ const me = (e) => e ? e.value * e.unit : 0, da = (e) => !e || e === "NaN" ? "0" : g(e).decimalPlaces(0).toFixed(), dn = (e) => Object.values(q).find((a) => a.id === e), ca = (e) => {
2193
2193
  if (!e) return;
2194
- const a = e.map((A) => G(A)), i = Object.entries(Jt).filter(([A]) => a.includes(A)).flatMap(([, A]) => A), y = e.map((A) => A.exchangeAddress), d = new Set(
2194
+ const a = e.map((A) => G(A)), i = Object.entries(ea).filter(([A]) => a.includes(A)).flatMap(([, A]) => A), y = e.map((A) => A.exchangeAddress), d = new Set(
2195
2195
  [...y, ...i].map((A) => A.toLowerCase())
2196
2196
  );
2197
2197
  return Array.from(d);
2198
- }, on = (e, a) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + ca(a) : (e.fillDelay || 0) * 1e3, Se = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), dn = (e) => ua().filter((a) => a.name === e).map((a) => a.chainId), cn = (e = "", a = "", i = 18, y = 18) => {
2198
+ }, cn = (e, a) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + la(a) : (e.fillDelay || 0) * 1e3, Se = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), pn = (e) => ma().filter((a) => a.name === e).map((a) => a.chainId), ln = (e = "", a = "", i = 18, y = 18) => {
2199
2199
  if (!g(e || 0).gt(0) || !g(a || 0).gt(0))
2200
2200
  return "";
2201
2201
  const d = ye(i, e), A = ye(y, a);
2202
2202
  return g(A).div(d).toFixed();
2203
- }, pn = (e, a, i) => {
2203
+ }, un = (e, a, i) => {
2204
2204
  if (e.type === V.TWAP_MARKET) return "";
2205
2205
  const y = ye(a, e.srcAmountPerTrade), d = ye(i, e.dstMinAmountPerTrade);
2206
2206
  return g(d).div(y).toFixed();
2207
- }, ln = (e, a, i) => {
2207
+ }, fn = (e, a, i) => {
2208
2208
  if (e.type === V.TWAP_MARKET) return "";
2209
2209
  const y = ye(a, e.srcAmountPerTrade), d = ye(i, e.triggerPricePerTrade);
2210
2210
  return g(d).div(y).toFixed();
2211
- }, un = (e, a, i) => {
2211
+ }, pa = /* @__PURE__ */ new Set([1, 56, 42161, 8453]), at = (e, a) => e === se.Ring ? pa.has(a) : !0, mn = (e, a, i) => {
2212
2212
  if (!e || !a || !i) return;
2213
2213
  const y = g(e).times(a), d = g(10).pow(i);
2214
2214
  return y.div(d).toFixed(0);
2215
- }, fn = (e, a, i, y) => {
2215
+ }, yn = (e, a, i, y) => {
2216
2216
  if (i || !y || !e || !a)
2217
2217
  return g(0).toString();
2218
2218
  const d = g(e).times(g(a)), A = g(10).pow(y), b = d.div(A);
2219
2219
  return g.max(1, b).integerValue(g.ROUND_FLOOR).toFixed(0);
2220
- }, mn = (e, a, i, y) => {
2220
+ }, An = (e, a, i, y) => {
2221
2221
  if (e === H.TWAP || e === H.LIMIT)
2222
2222
  return "0";
2223
2223
  if (!y || !a || !i) return;
2224
2224
  const d = g(a).times(g(i)), A = g(10).pow(y), b = d.div(A);
2225
2225
  return g.max(1, b).integerValue(g.ROUND_FLOOR).toFixed(0) || "0";
2226
- }, yn = (e, a, i, y) => {
2227
- const d = me(i) * 2 * a, A = Se(Ee.DURATION), b = ia(A ? Number(A) : d);
2228
- return A ? { unit: b, value: Number(g(Number(A) / b).toFixed(2)) } : y || (e === H.LIMIT ? { unit: se.Days, value: 7 } : e === H.STOP_LOSS || e === H.TAKE_PROFIT ? { unit: se.Days, value: 1 } : { unit: b, value: Number(g(d / b).toFixed(2)) });
2229
- }, An = (e, a, i) => a !== H.TWAP ? 1 : i !== void 0 ? i : Math.max(1, Math.ceil(e / 2)), hn = (e, a, i) => {
2226
+ }, hn = (e, a, i, y) => {
2227
+ const d = me(i) * 2 * a, A = Se(Ee.DURATION), b = oa(A ? Number(A) : d);
2228
+ return A ? { unit: b, value: Number(g(Number(A) / b).toFixed(2)) } : y || (e === H.LIMIT ? { unit: re.Days, value: 7 } : e === H.STOP_LOSS || e === H.TAKE_PROFIT ? { unit: re.Days, value: 1 } : { unit: b, value: Number(g(d / b).toFixed(2)) });
2229
+ }, bn = (e, a, i) => a !== H.TWAP ? 1 : i !== void 0 ? i : Math.max(1, Math.ceil(e / 2)), En = (e, a, i) => {
2230
2230
  if (!e || !a || !i) return 1;
2231
2231
  const d = g(a).times(e).div(i).integerValue(g.ROUND_FLOOR).toNumber();
2232
2232
  return Math.max(1, d);
2233
- }, bn = (e, a) => e + me(a) + 6e4, ca = (e) => e.bidDelaySeconds * 1e3 * 2, En = (e = "", a = 0) => !e || !a ? "0" : g(e).div(a).integerValue(g.ROUND_FLOOR).toFixed(0), xn = (e, a) => ({
2233
+ }, xn = (e, a) => e + me(a) + 6e4, la = (e) => e.bidDelaySeconds * 1e3 * 2, gn = (e = "", a = 0) => !e || !a ? "0" : g(e).div(a).integerValue(g.ROUND_FLOOR).toFixed(0), Cn = (e, a) => ({
2234
2234
  isError: !(e.unit === qe.unit && e.value === qe.value) && me(e) * a > De,
2235
2235
  value: Math.floor(De / a)
2236
- }), gn = (e = "", a = "", i) => {
2236
+ }), Fn = (e = "", a = "", i) => {
2237
2237
  if (i === H.STOP_LOSS)
2238
2238
  return {
2239
2239
  isError: g(a || 0).gte(g(e || 0)),
2240
2240
  value: e
2241
2241
  };
2242
- }, Cn = (e = "", a = "", i) => {
2242
+ }, Tn = (e = "", a = "", i) => {
2243
2243
  if (i === H.TAKE_PROFIT)
2244
2244
  return {
2245
2245
  isError: g(a || 0).lte(g(e || 0)),
2246
2246
  value: e
2247
2247
  };
2248
- }, Fn = (e = "", a = "", i = !1, y) => {
2248
+ }, wn = (e = "", a = "", i = !1, y) => {
2249
2249
  if (!i && y === H.STOP_LOSS)
2250
2250
  return {
2251
2251
  isError: g(a || 0).gte(g(e || 0)),
2252
2252
  value: e
2253
2253
  };
2254
- }, Tn = (e = "", a = "", i = !1, y) => {
2254
+ }, Dn = (e = "", a = "", i = !1, y) => {
2255
2255
  if (!i && y === H.TAKE_PROFIT)
2256
2256
  return {
2257
2257
  isError: g(a || 0).gte(g(e || 0)),
2258
2258
  value: e
2259
2259
  };
2260
- }, wn = (e, a) => e === H.STOP_LOSS || e === H.TAKE_PROFIT ? {
2260
+ }, Bn = (e, a) => e === H.STOP_LOSS || e === H.TAKE_PROFIT ? {
2261
2261
  isError: me(a) > 5184e6,
2262
2262
  value: 5184e6
2263
2263
  } : {
2264
2264
  isError: me(a) > De,
2265
2265
  // 365 days
2266
2266
  value: De
2267
- }, Dn = (e) => ({
2267
+ }, Sn = (e) => ({
2268
2268
  isError: me(e) < $e,
2269
2269
  value: $e
2270
- }), Bn = (e) => ({
2271
- isError: me(e) < Me,
2272
- value: Me
2273
- }), Sn = (e, a, i) => ({
2270
+ }), kn = (e) => ({
2271
+ isError: me(e) < Ue,
2272
+ value: Ue
2273
+ }), On = (e, a, i) => ({
2274
2274
  isError: g(a || 0).multipliedBy(e || 0).isLessThan(i),
2275
2275
  value: i
2276
- }), kn = (e, a, i) => ({
2276
+ }), _n = (e, a, i) => ({
2277
2277
  isError: i === H.TWAP && g(e).isGreaterThan(a),
2278
2278
  value: a
2279
- }), pa = (e, a) => {
2280
- if (e === ie.Pancake)
2279
+ }), ua = (e, a) => {
2280
+ if (e === se.Pancake)
2281
2281
  switch (a) {
2282
2282
  case 56:
2283
2283
  return O.PancakeSwap;
@@ -2290,7 +2290,7 @@ const me = (e) => e ? e.value * e.unit : 0, oa = (e) => !e || e === "NaN" ? "0"
2290
2290
  default:
2291
2291
  return O.PancakeSwap;
2292
2292
  }
2293
- if (e === ie.Sushiswap)
2293
+ if (e === se.Sushiswap)
2294
2294
  switch (a) {
2295
2295
  case 1:
2296
2296
  return O.SushiEth;
@@ -2303,7 +2303,7 @@ const me = (e) => e ? e.value * e.unit : 0, oa = (e) => !e || e === "NaN" ? "0"
2303
2303
  default:
2304
2304
  return O.SushiEth;
2305
2305
  }
2306
- if (e === ie.Quick)
2306
+ if (e === se.Quick)
2307
2307
  switch (a) {
2308
2308
  case 137:
2309
2309
  return O.QuickSwap;
@@ -2312,14 +2312,14 @@ const me = (e) => e ? e.value * e.unit : 0, oa = (e) => !e || e === "NaN" ? "0"
2312
2312
  default:
2313
2313
  return O.QuickSwap;
2314
2314
  }
2315
- if (e === ie.Thena)
2315
+ if (e === se.Thena)
2316
2316
  switch (a) {
2317
2317
  case 56:
2318
2318
  return O.Thena;
2319
2319
  default:
2320
2320
  return O.Thena;
2321
2321
  }
2322
- if (e === ie.Spooky)
2322
+ if (e === se.Spooky)
2323
2323
  switch (a) {
2324
2324
  case 250:
2325
2325
  return O.SpookySwap;
@@ -2328,28 +2328,32 @@ const me = (e) => e ? e.value * e.unit : 0, oa = (e) => !e || e === "NaN" ? "0"
2328
2328
  default:
2329
2329
  return O.SpookySwap;
2330
2330
  }
2331
- if (e === ie.Lynex)
2331
+ if (e === se.Lynex)
2332
2332
  switch (a) {
2333
2333
  case 59144:
2334
2334
  return O.Lynex;
2335
2335
  default:
2336
2336
  return O.Lynex;
2337
2337
  }
2338
- if (e === ie.Swapx)
2338
+ if (e === se.Swapx)
2339
2339
  switch (a) {
2340
2340
  case 146:
2341
2341
  return O.SwapX;
2342
2342
  default:
2343
2343
  return O.SwapX;
2344
2344
  }
2345
- if (e === ie.Blackhole)
2345
+ if (e === se.Blackhole)
2346
2346
  switch (a) {
2347
2347
  case 43114:
2348
2348
  return O.BlackholeAvax;
2349
2349
  default:
2350
2350
  return O.BlackholeAvax;
2351
2351
  }
2352
- }, la = (e, a = 0) => {
2352
+ }, fa = (e, a = 0) => {
2353
+ if (!at(e, a))
2354
+ throw new Error(
2355
+ `Partner "${e}" is not supported on chain ${a}`
2356
+ );
2353
2357
  const { abi: i, ...y } = tt.config(a, e);
2354
2358
  if (!y.reactor)
2355
2359
  throw new Error(
@@ -2358,25 +2362,30 @@ const me = (e) => e ? e.value * e.unit : 0, oa = (e) => !e || e === "NaN" ? "0"
2358
2362
  return {
2359
2363
  ...y,
2360
2364
  partner: e,
2361
- twapConfig: pa(e, a)
2365
+ twapConfig: ua(e, a)
2362
2366
  };
2363
- }, ua = () => {
2367
+ }, ma = () => {
2364
2368
  var i;
2365
2369
  const e = tt.raw, a = ((i = e["*"]) == null ? void 0 : i.dex) ?? {};
2366
2370
  return Object.entries(e).filter(([y]) => y !== "*").flatMap(([y, d]) => {
2367
- const A = { ...a, ...(d == null ? void 0 : d.dex) ?? {} };
2368
- return !A || typeof A != "object" ? [] : Object.entries(A).map(([b]) => ({
2369
- chainId: Number(y),
2370
- name: b,
2371
- config: la(b, Number(y))
2372
- }));
2371
+ const A = Number(y), b = { ...a, ...(d == null ? void 0 : d.dex) ?? {} };
2372
+ return !b || typeof b != "object" ? [] : Object.entries(b).flatMap(([x]) => {
2373
+ const C = x;
2374
+ return at(C, A) ? [
2375
+ {
2376
+ chainId: A,
2377
+ name: x,
2378
+ config: fa(C, A)
2379
+ }
2380
+ ] : [];
2381
+ });
2373
2382
  }).sort((y, d) => y.name.localeCompare(d.name));
2374
- }, On = (e) => {
2383
+ }, vn = (e) => {
2375
2384
  const a = Se(
2376
2385
  Ee.MIN_CHUNK_SIZE_USD
2377
2386
  );
2378
2387
  return a ? parseInt(a) : e;
2379
- }, _n = ({
2388
+ }, Rn = ({
2380
2389
  marketPrice: e,
2381
2390
  typedInputAmount: a,
2382
2391
  srcUsd1Token: i,
@@ -2385,21 +2394,21 @@ const me = (e) => e ? e.value * e.unit : 0, oa = (e) => !e || e === "NaN" ? "0"
2385
2394
  limitPriceError: A,
2386
2395
  tradesError: b,
2387
2396
  fillDelayError: x,
2388
- durationError: F,
2397
+ durationError: C,
2389
2398
  balanceError: w,
2390
2399
  minTradeSizeError: S
2391
2400
  }) => {
2392
2401
  if (!Se(Ee.IGNORE_ERRORS) && !(g(e || 0).isZero() || g(a || 0).isZero() || g(i || "0").isZero() || y))
2393
- return S || d || A || b || x || F || w;
2394
- }, fa = (e, a) => {
2395
- const i = Date.now().toString(), y = parseInt((e / 1e3).toFixed(0)), d = oa(a / 1e3), A = Se(Ee.FRESHNESS), b = A ? parseInt(A) : 60;
2402
+ return S || d || A || b || x || C || w;
2403
+ }, ya = (e, a) => {
2404
+ const i = Date.now().toString(), y = parseInt((e / 1e3).toFixed(0)), d = da(a / 1e3), A = Se(Ee.FRESHNESS), b = A ? parseInt(A) : 60;
2396
2405
  return {
2397
2406
  nonce: i,
2398
2407
  epoch: y,
2399
2408
  deadline: d,
2400
2409
  freshness: b
2401
2410
  };
2402
- }, vn = ({
2411
+ }, Pn = ({
2403
2412
  chainId: e,
2404
2413
  srcToken: a,
2405
2414
  dstToken: i,
@@ -2408,13 +2417,13 @@ const me = (e) => e ? e.value * e.unit : 0, oa = (e) => !e || e === "NaN" ? "0"
2408
2417
  fillDelayMillis: A,
2409
2418
  slippage: b,
2410
2419
  account: x,
2411
- srcAmountPerTrade: F,
2420
+ srcAmountPerTrade: C,
2412
2421
  dstMinAmountPerTrade: w = "0",
2413
2422
  triggerAmountPerTrade: S = "0",
2414
- config: C,
2423
+ config: F,
2415
2424
  module: T
2416
2425
  }) => {
2417
- const { nonce: R, epoch: P, deadline: Y, freshness: j } = fa(
2426
+ const { nonce: R, epoch: P, deadline: Y, freshness: j } = ya(
2418
2427
  A,
2419
2428
  d
2420
2429
  ), le = Math.floor(Date.now() / 1e3).toString(), E = w, Ae = T === H.STOP_LOSS ? S : "0", xe = T === H.TAKE_PROFIT ? S : "0", he = {
@@ -2422,15 +2431,15 @@ const me = (e) => e ? e.value * e.unit : 0, oa = (e) => !e || e === "NaN" ? "0"
2422
2431
  token: a,
2423
2432
  amount: y
2424
2433
  },
2425
- spender: C.reactor,
2434
+ spender: F.reactor,
2426
2435
  nonce: R,
2427
2436
  deadline: Y,
2428
2437
  witness: {
2429
- reactor: C.reactor,
2430
- executor: C.executor,
2438
+ reactor: F.reactor,
2439
+ executor: F.executor,
2431
2440
  exchange: {
2432
- adapter: C.adapter,
2433
- ref: C.fee,
2441
+ adapter: F.adapter,
2442
+ ref: F.fee,
2434
2443
  share: 0,
2435
2444
  data: "0x"
2436
2445
  },
@@ -2445,7 +2454,7 @@ const me = (e) => e ? e.value * e.unit : 0, oa = (e) => !e || e === "NaN" ? "0"
2445
2454
  freshness: j,
2446
2455
  input: {
2447
2456
  token: a,
2448
- amount: F,
2457
+ amount: C,
2449
2458
  maxAmount: y
2450
2459
  },
2451
2460
  output: {
@@ -2462,23 +2471,23 @@ const me = (e) => e ? e.value * e.unit : 0, oa = (e) => !e || e === "NaN" ? "0"
2462
2471
  name: "RePermit",
2463
2472
  version: "1",
2464
2473
  chainId: e,
2465
- verifyingContract: C.repermit
2474
+ verifyingContract: F.repermit
2466
2475
  },
2467
2476
  order: he,
2468
- types: ta,
2469
- primaryType: ea
2477
+ types: aa,
2478
+ primaryType: ta
2470
2479
  };
2471
- }, ma = 0.7, ya = `https://bi.orbs.network/putes/twap-ui-${ma}`;
2480
+ }, Aa = 0.7, ha = `https://bi.orbs.network/putes/twap-ui-${Aa}`;
2472
2481
  let Le = "unknown";
2473
- function Rn(e) {
2482
+ function In(e) {
2474
2483
  Le = e;
2475
2484
  }
2476
2485
  function Ne() {
2477
2486
  const e = Math.random().toString(36).substring(2, 16), a = Math.random().toString(36).substring(2, 16), i = Date.now().toString(36);
2478
2487
  return `id_${e + a + i}`;
2479
2488
  }
2480
- const Aa = (e, a, i) => {
2481
- var y, d, A, b, x, F, w, S, C;
2489
+ const ba = (e, a, i) => {
2490
+ var y, d, A, b, x, C, w, S, F;
2482
2491
  return {
2483
2492
  spotVersion: We.version,
2484
2493
  partner: e.partner,
@@ -2499,14 +2508,14 @@ const Aa = (e, a, i) => {
2499
2508
  lensAddress: ((b = e.twapConfig) == null ? void 0 : b.lensAddress) || "",
2500
2509
  bidDelaySeconds: ((x = e.twapConfig) == null ? void 0 : x.bidDelaySeconds) || 0,
2501
2510
  minChunkSizeUsd: a,
2502
- name: ((F = e.twapConfig) == null ? void 0 : F.name) || "",
2511
+ name: ((C = e.twapConfig) == null ? void 0 : C.name) || "",
2503
2512
  exchangeAddress: ((w = e.twapConfig) == null ? void 0 : w.exchangeAddress) || "",
2504
2513
  exchangeType: ((S = e.twapConfig) == null ? void 0 : S.exchangeType) || "",
2505
- pathfinderKey: ((C = e.twapConfig) == null ? void 0 : C.pathfinderKey) || ""
2514
+ pathfinderKey: ((F = e.twapConfig) == null ? void 0 : F.pathfinderKey) || ""
2506
2515
  };
2507
2516
  }, je = async (e) => {
2508
2517
  try {
2509
- await fetch(ya, {
2518
+ await fetch(ha, {
2510
2519
  method: "POST",
2511
2520
  headers: {
2512
2521
  Accept: "application/json",
@@ -2518,7 +2527,7 @@ const Aa = (e, a, i) => {
2518
2527
  console.error("Failed to send BI", a);
2519
2528
  }
2520
2529
  };
2521
- class ha {
2530
+ class Ea {
2522
2531
  constructor() {
2523
2532
  Ce(this, "timeout");
2524
2533
  Ce(this, "config");
@@ -2600,10 +2609,10 @@ class ha {
2600
2609
  dstToken: A,
2601
2610
  fromTokenAmount: b,
2602
2611
  srcChunkAmount: x,
2603
- minDstAmountOutPerTrade: F = "",
2612
+ minDstAmountOutPerTrade: C = "",
2604
2613
  triggerPricePerTrade: w = "",
2605
2614
  deadline: S,
2606
- fillDelay: C,
2615
+ fillDelay: F,
2607
2616
  slippage: T,
2608
2617
  isMarketOrder: R,
2609
2618
  chunksAmount: P
@@ -2616,10 +2625,10 @@ class ha {
2616
2625
  fromTokenAmount: b,
2617
2626
  chunksAmount: P,
2618
2627
  srcChunkAmount: x,
2619
- minDstAmountOutPerTrade: F,
2628
+ minDstAmountOutPerTrade: C,
2620
2629
  triggerPricePerTrade: w,
2621
2630
  deadline: S,
2622
- fillDelay: C,
2631
+ fillDelay: F,
2623
2632
  slippage: T,
2624
2633
  chainId: i,
2625
2634
  walletAddress: a,
@@ -2650,7 +2659,7 @@ class ha {
2650
2659
  action: "module-import",
2651
2660
  uiVersion: Le,
2652
2661
  appId: d,
2653
- ...Aa(a, i, y),
2662
+ ...ba(a, i, y),
2654
2663
  origin: window.location.origin
2655
2664
  }, this.updateAndSend(this.data));
2656
2665
  }
@@ -2710,15 +2719,15 @@ class ha {
2710
2719
  });
2711
2720
  }
2712
2721
  }
2713
- const Ue = new ha(), ba = (e) => {
2722
+ const Me = new Ea(), xa = (e) => {
2714
2723
  var w;
2715
- const a = g(e.order.witness.output.limit || 0).gt(1), { stop: i, triggerLower: y, triggerUpper: d } = e.order.witness.output, A = g(i || 0).eq(Je), b = A || g(d || 0).gt(0), x = !A && g(i || 0).gt(0) || g(y || 0).gt(0), F = ((w = e.metadata.chunks) == null ? void 0 : w.length) || g(e.order.witness.input.maxAmount).div(g(e.order.witness.input.amount)).toNumber();
2716
- return b ? a ? V.TAKE_PROFIT_LIMIT : V.TAKE_PROFIT_MARKET : x ? a ? V.STOP_LOSS_LIMIT : V.STOP_LOSS_MARKET : a ? F > 1 && a ? V.TWAP_LIMIT : a ? V.LIMIT : V.TWAP_MARKET : V.TWAP_MARKET;
2717
- }, Ea = (e) => {
2724
+ const a = g(e.order.witness.output.limit || 0).gt(1), { stop: i, triggerLower: y, triggerUpper: d } = e.order.witness.output, A = g(i || 0).eq(Je), b = A || g(d || 0).gt(0), x = !A && g(i || 0).gt(0) || g(y || 0).gt(0), C = ((w = e.metadata.chunks) == null ? void 0 : w.length) || g(e.order.witness.input.maxAmount).div(g(e.order.witness.input.amount)).toNumber();
2725
+ return b ? a ? V.TAKE_PROFIT_LIMIT : V.TAKE_PROFIT_MARKET : x ? a ? V.STOP_LOSS_LIMIT : V.STOP_LOSS_MARKET : a ? C > 1 && a ? V.TWAP_LIMIT : a ? V.LIMIT : V.TWAP_MARKET : V.TWAP_MARKET;
2726
+ }, ga = (e) => {
2718
2727
  var d;
2719
2728
  const a = ((d = e.metadata.chunks) == null ? void 0 : d.filter((A) => A.status === "success").length) || 0, i = e.metadata.expectedChunks || 0, y = g(a).dividedBy(i).toNumber();
2720
2729
  return y >= 0.99 ? 100 : y <= 0 ? 0 : Number((y * 100).toFixed(2));
2721
- }, xa = (e, a) => e.metadata.status === "completed" || a >= 99 ? oe.Completed : ["pending", "eligible"].includes(e.metadata.status) ? oe.Open : e.metadata.description.toLowerCase() === "cancelled by contract" ? oe.Cancelled : oe.Expired, ga = (e) => {
2730
+ }, Ca = (e, a) => e.metadata.status === "completed" || a >= 99 ? oe.Completed : ["pending", "eligible"].includes(e.metadata.status) ? oe.Open : e.metadata.description.toLowerCase() === "cancelled by contract" ? oe.Cancelled : oe.Expired, Fa = (e) => {
2722
2731
  var i;
2723
2732
  return (((i = e.metadata.chunks) == null ? void 0 : i.filter((y) => y.status === "success")) || []).map((y) => ({
2724
2733
  inAmount: y.inAmount,
@@ -2726,26 +2735,26 @@ const Ue = new ha(), ba = (e) => {
2726
2735
  timestamp: new Date(y.timestamp).getTime(),
2727
2736
  txHash: y.txHash
2728
2737
  }));
2729
- }, Ca = (e, a) => {
2738
+ }, Ta = (e, a) => {
2730
2739
  var y;
2731
2740
  const i = e.length;
2732
2741
  return i >= a && ((y = e[i - 1]) == null ? void 0 : y.timestamp) || 0;
2733
- }, Fa = (e) => g(e.metadata.displayOnlyInputTokenPriceUSD).dividedBy(1e18).toFixed(), Ke = (e) => Number(e.order.witness.output.limit) === 1 ? "" : e.order.witness.output.limit, Ta = (e) => {
2742
+ }, wa = (e) => g(e.metadata.displayOnlyInputTokenPriceUSD).dividedBy(1e18).toFixed(), Ke = (e) => Number(e.order.witness.output.limit) === 1 ? "" : e.order.witness.output.limit, Da = (e) => {
2734
2743
  const { triggerLower: a = "0", triggerUpper: i = "0" } = e.order.witness.output, y = Ke(e), d = e.metadata.expectedChunks || 1, A = g(i || 0).gt(0);
2735
2744
  return {
2736
2745
  dstMinAmountPerTrade: y,
2737
2746
  triggerPricePerTrade: A ? i : a,
2738
2747
  dstMinAmountTotal: g(y).multipliedBy(d).toFixed()
2739
2748
  };
2740
- }, wa = (e) => {
2749
+ }, Ba = (e) => {
2741
2750
  const a = Ke(e), i = g(e.order.witness.output.stop || 0).eq(Je), y = e.metadata.expectedChunks || 1;
2742
2751
  return {
2743
2752
  dstMinAmountPerTrade: i ? "" : a,
2744
2753
  triggerPricePerTrade: i ? a : g(e.order.witness.output.stop || "").toFixed(),
2745
2754
  dstMinAmountTotal: i ? "" : g(a).multipliedBy(y).toFixed()
2746
2755
  };
2747
- }, Da = (e) => Number(ze) >= 2 ? Ta(e) : wa(e), at = (e) => {
2748
- const a = Ea(e), i = Ke(e), y = e.metadata.expectedChunks || 1, d = ga(e), A = ba(e);
2756
+ }, Sa = (e) => Number(ze) >= 2 ? Da(e) : Ba(e), nt = (e) => {
2757
+ const a = ga(e), i = Ke(e), y = e.metadata.expectedChunks || 1, d = Fa(e), A = xa(e);
2749
2758
  return {
2750
2759
  id: e.hash,
2751
2760
  hash: e.hash,
@@ -2758,7 +2767,7 @@ const Ue = new ha(), ba = (e) => {
2758
2767
  fills: d,
2759
2768
  srcTokenAddress: e.order.witness.input.token,
2760
2769
  dstTokenAddress: e.order.witness.output.token,
2761
- orderDollarValueIn: Fa(e),
2770
+ orderDollarValueIn: wa(e),
2762
2771
  fillDelay: e.order.witness.epoch * 1e3,
2763
2772
  deadline: Number(e.order.deadline) * 1e3,
2764
2773
  createdAt: new Date(e.timestamp).getTime(),
@@ -2767,14 +2776,14 @@ const Ue = new ha(), ba = (e) => {
2767
2776
  totalTradesAmount: y,
2768
2777
  isMarketPrice: g(i || 0).lte(1),
2769
2778
  chainId: e.order.witness.chainid,
2770
- filledOrderTimestamp: Ca(d, y),
2771
- status: xa(e, a),
2779
+ filledOrderTimestamp: Ta(d, y),
2780
+ status: Ca(e, a),
2772
2781
  repermitDigest: e.metadata.repermitDigest,
2773
2782
  isTriggerPrice: A === V.TAKE_PROFIT_MARKET || A === V.TAKE_PROFIT_LIMIT || A === V.STOP_LOSS_LIMIT || A === V.STOP_LOSS_MARKET,
2774
2783
  rawOrder: e,
2775
- ...Da(e)
2784
+ ...Sa(e)
2776
2785
  };
2777
- }, Ba = async ({
2786
+ }, ka = async ({
2778
2787
  chainId: e,
2779
2788
  signal: a,
2780
2789
  account: i,
@@ -2784,16 +2793,16 @@ const Ue = new ha(), ba = (e) => {
2784
2793
  }) => {
2785
2794
  try {
2786
2795
  if (!i) return [];
2787
- const b = qt(A), x = /* @__PURE__ */ new Map();
2796
+ const b = Gt(A), x = /* @__PURE__ */ new Map();
2788
2797
  return (await Promise.all(
2789
2798
  b.map(async (w) => {
2790
2799
  try {
2791
- const S = Xt({
2800
+ const S = jt({
2792
2801
  endpoint: w,
2793
2802
  exchange: y,
2794
2803
  partner: d
2795
- }), C = S ? `&exchange=${S}` : "", R = await (await fetch(
2796
- `${w}/orders?swapper=${i}&chainId=${e}${C}`,
2804
+ }), F = S ? `&exchange=${S}` : "", R = await (await fetch(
2805
+ `${w}/orders?swapper=${i}&chainId=${e}${F}`,
2797
2806
  {
2798
2807
  signal: a
2799
2808
  }
@@ -2803,7 +2812,7 @@ const Ue = new ha(), ba = (e) => {
2803
2812
  const P = [];
2804
2813
  for (const Y of R.orders)
2805
2814
  try {
2806
- P.push(at(Y));
2815
+ P.push(nt(Y));
2807
2816
  } catch {
2808
2817
  continue;
2809
2818
  }
@@ -2818,32 +2827,32 @@ const Ue = new ha(), ba = (e) => {
2818
2827
  } catch {
2819
2828
  return [];
2820
2829
  }
2821
- }, Pn = async (e, a, i = !1) => {
2830
+ }, Nn = async (e, a, i = !1) => {
2822
2831
  try {
2823
2832
  const y = {
2824
2833
  signature: a,
2825
2834
  order: e,
2826
2835
  status: "pending"
2827
2836
  };
2828
- Ue.onCreateOrderRequest();
2829
- const d = await fetch(`${$t(i)}/orders/new`, {
2837
+ Me.onCreateOrderRequest();
2838
+ const d = await fetch(`${qt(i)}/orders/new`, {
2830
2839
  method: "POST",
2831
2840
  body: JSON.stringify(y)
2832
2841
  }), A = await d.json().catch(() => ({}));
2833
2842
  if (!d.ok || !(A != null && A.success)) {
2834
- const x = (A == null ? void 0 : A.message) ?? d.statusText ?? "Request failed", F = (A == null ? void 0 : A.code) ?? d.status;
2835
- throw new Error(`error:${x}, code:${F}`);
2843
+ const x = (A == null ? void 0 : A.message) ?? d.statusText ?? "Request failed", C = (A == null ? void 0 : A.code) ?? d.status;
2844
+ throw new Error(`error:${x}, code:${C}`);
2836
2845
  }
2837
2846
  if (!A.signedOrder || typeof A.signedOrder != "object")
2838
2847
  throw new Error("Invalid API response: missing signedOrder");
2839
- const b = at(A.signedOrder);
2840
- return Ue.onCreateOrderSuccess(b.id), b;
2848
+ const b = nt(A.signedOrder);
2849
+ return Me.onCreateOrderSuccess(b.id), b;
2841
2850
  } catch (y) {
2842
- throw Ue.onCreateOrderError(y), console.error(y), y;
2851
+ throw Me.onCreateOrderError(y), console.error(y), y;
2843
2852
  }
2844
- }, pe = (e, a) => e && e.length ? e.map(a || ((i) => `${i}`)) : void 0, Sa = (e) => {
2853
+ }, pe = (e, a) => e && e.length ? e.map(a || ((i) => `${i}`)) : void 0, Oa = (e) => {
2845
2854
  if (e)
2846
- return Qt[e];
2855
+ return Yt[e];
2847
2856
  }, He = async ({
2848
2857
  chainId: e,
2849
2858
  buildQuery: a,
@@ -2853,15 +2862,15 @@ const Ue = new ha(), ba = (e) => {
2853
2862
  limit: A = 1e3,
2854
2863
  page: b
2855
2864
  }) => {
2856
- const x = Sa(e);
2857
- if (!x) throw new Pa();
2858
- const F = async (C) => {
2865
+ const x = Oa(e);
2866
+ if (!x) throw new Na();
2867
+ const C = async (F) => {
2859
2868
  let T = 0;
2860
2869
  for (; T <= d; )
2861
2870
  try {
2862
2871
  const R = await fetch(x, {
2863
2872
  method: "POST",
2864
- body: JSON.stringify({ query: C }),
2873
+ body: JSON.stringify({ query: F }),
2865
2874
  signal: y,
2866
2875
  headers: { "Content-Type": "application/json" }
2867
2876
  });
@@ -2879,27 +2888,27 @@ const Ue = new ha(), ba = (e) => {
2879
2888
  let w = 0;
2880
2889
  const S = [];
2881
2890
  if (b !== void 0) {
2882
- const C = a(b, A);
2891
+ const F = a(b, A);
2883
2892
  try {
2884
- return await F(C);
2893
+ return await C(F);
2885
2894
  } catch {
2886
2895
  console.warn(`Page ${b} failed, retrying one final time...`);
2887
2896
  try {
2888
- return await F(C);
2897
+ return await C(F);
2889
2898
  } catch {
2890
2899
  return [];
2891
2900
  }
2892
2901
  }
2893
2902
  }
2894
2903
  for (; ; ) {
2895
- const C = a(w, A);
2904
+ const F = a(w, A);
2896
2905
  let T;
2897
2906
  try {
2898
- T = await F(C);
2907
+ T = await C(F);
2899
2908
  } catch {
2900
2909
  console.warn(`Page ${w} failed, retrying one final time...`);
2901
2910
  try {
2902
- T = await F(C);
2911
+ T = await C(F);
2903
2912
  } catch {
2904
2913
  return S;
2905
2914
  }
@@ -2908,7 +2917,7 @@ const Ue = new ha(), ba = (e) => {
2908
2917
  w++;
2909
2918
  }
2910
2919
  return S;
2911
- }, nt = (e) => e.map((a) => ({
2920
+ }, st = (e) => e.map((a) => ({
2912
2921
  inAmount: a.srcAmountIn,
2913
2922
  outAmount: a.dstAmountOut,
2914
2923
  timestamp: a.timestamp,
@@ -2916,9 +2925,9 @@ const Ue = new ha(), ba = (e) => {
2916
2925
  })), Qe = (e, a) => {
2917
2926
  const i = g(e || 0).gt(1);
2918
2927
  return !i && a === 1 ? V.TWAP_MARKET : a > 1 && i ? V.TWAP_LIMIT : i ? V.LIMIT : V.TWAP_MARKET;
2919
- }, ka = (e, a, i, y) => {
2928
+ }, _a = (e, a, i, y) => {
2920
2929
  var T;
2921
- const d = nt(i || []), A = new g(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(g.ROUND_FLOOR).toNumber(), x = (i == null ? void 0 : i.length) === A ? (T = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) == null ? void 0 : T.timestamp : void 0, F = d.reduce((R, P) => R.plus(P.inAmount), new g(0)).toFixed(), w = d.reduce((R, P) => R.plus(P.outAmount), new g(0)).toFixed(), S = st(e.ask_srcAmount, F), C = Qe(e.ask_dstMinAmount, A);
2930
+ const d = st(i || []), A = new g(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(g.ROUND_FLOOR).toNumber(), x = (i == null ? void 0 : i.length) === A ? (T = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) == null ? void 0 : T.timestamp : void 0, C = d.reduce((R, P) => R.plus(P.inAmount), new g(0)).toFixed(), w = d.reduce((R, P) => R.plus(P.outAmount), new g(0)).toFixed(), S = rt(e.ask_srcAmount, C), F = Qe(e.ask_dstMinAmount, A);
2922
2931
  return {
2923
2932
  repermitDigest: "",
2924
2933
  version: 1,
@@ -2933,7 +2942,7 @@ const Ue = new ha(), ba = (e) => {
2933
2942
  maker: e.maker,
2934
2943
  progress: S,
2935
2944
  dstAmountFilled: w,
2936
- srcAmountFilled: F,
2945
+ srcAmountFilled: C,
2937
2946
  orderDollarValueIn: g(e.dollarValueIn || 0).toFixed(6),
2938
2947
  srcAmount: e.ask_srcAmount,
2939
2948
  dstMinAmountTotal: g(e.ask_dstMinAmount).multipliedBy(A).toString(),
@@ -2946,20 +2955,20 @@ const Ue = new ha(), ba = (e) => {
2946
2955
  srcAmountPerTrade: e.ask_srcBidAmount,
2947
2956
  txHash: e.transactionHash,
2948
2957
  totalTradesAmount: A,
2949
- isMarketPrice: [V.TWAP_MARKET].includes(C),
2958
+ isMarketPrice: [V.TWAP_MARKET].includes(F),
2950
2959
  chainId: a,
2951
2960
  filledOrderTimestamp: x || 0,
2952
2961
  status: y,
2953
2962
  rawOrder: e
2954
2963
  };
2955
- }, Oa = (e) => {
2956
- var C;
2964
+ }, va = (e) => {
2965
+ var F;
2957
2966
  if (!e) return "";
2958
2967
  const a = pe(
2959
2968
  e.accounts,
2960
2969
  (T) => `"${T.toLowerCase()}"`
2961
2970
  ), i = pe(
2962
- da(e.configs),
2971
+ ca(e.configs),
2963
2972
  (T) => `"${T.toLowerCase()}"`
2964
2973
  ), y = pe(
2965
2974
  e.inTokenSymbols,
@@ -2976,8 +2985,8 @@ const Ue = new ha(), ba = (e) => {
2976
2985
  ), x = pe(
2977
2986
  e.transactionHashes,
2978
2987
  (T) => `"${T.toLowerCase()}"`
2979
- ), F = pe(e.orderIds, (T) => `"${T}"`), w = i != null && i.length ? "" : pe(
2980
- (C = e.configs) == null ? void 0 : C.map((T) => T.twapAddress),
2988
+ ), C = pe(e.orderIds, (T) => `"${T}"`), w = i != null && i.length ? "" : pe(
2989
+ (F = e.configs) == null ? void 0 : F.map((T) => T.twapAddress),
2981
2990
  (T) => `"${T.toLowerCase()}"`
2982
2991
  ), S = e.minDollarValueIn;
2983
2992
  return [
@@ -2985,7 +2994,7 @@ const Ue = new ha(), ba = (e) => {
2985
2994
  w ? `twapAddress_in: [${w.join(", ")}]` : "",
2986
2995
  a ? `maker_in: [${a.join(", ")}]` : "",
2987
2996
  x ? `transactionHash_in: [${x.join(", ")}]` : "",
2988
- F ? `Contract_id_in: [${F.join(", ")}]` : "",
2997
+ C ? `Contract_id_in: [${C.join(", ")}]` : "",
2989
2998
  S ? `dollarValueIn_gte: ${S}` : "",
2990
2999
  y ? `srcTokenSymbol_in: [${y.join(", ")}]` : "",
2991
3000
  d ? `dstTokenSymbol_in: [${d.join(", ")}]` : "",
@@ -2997,25 +3006,25 @@ const Ue = new ha(), ba = (e) => {
2997
3006
  (e == null ? void 0 : e.orderType) === "market" ? "ask_dstMinAmount_lte: 1" : ""
2998
3007
  ].filter(Boolean).join(", ");
2999
3008
  };
3000
- async function _a({
3009
+ async function Ra({
3001
3010
  chainId: e,
3002
3011
  signal: a,
3003
3012
  page: i,
3004
3013
  limit: y,
3005
3014
  filters: d
3006
3015
  }) {
3007
- const A = y || 1e3, b = Oa(d);
3016
+ const A = y || 1e3, b = va(d);
3008
3017
  return await He({
3009
3018
  chainId: e,
3010
3019
  signal: a,
3011
3020
  limit: A,
3012
3021
  page: i,
3013
- buildQuery: (F, w) => `
3022
+ buildQuery: (C, w) => `
3014
3023
  {
3015
3024
  orderCreateds(
3016
3025
  ${b ? `where: { ${b} }` : ""},
3017
3026
  first: ${w},
3018
- skip: ${F * w},
3027
+ skip: ${C * w},
3019
3028
  orderBy: timestamp,
3020
3029
  orderDirection: desc,
3021
3030
  ) {
@@ -3045,13 +3054,13 @@ async function _a({
3045
3054
  }
3046
3055
  }
3047
3056
  `,
3048
- extractResults: (F) => {
3057
+ extractResults: (C) => {
3049
3058
  var w;
3050
- return ((w = F.data) == null ? void 0 : w.orderCreateds) || [];
3059
+ return ((w = C.data) == null ? void 0 : w.orderCreateds) || [];
3051
3060
  }
3052
3061
  });
3053
3062
  }
3054
- const va = async ({
3063
+ const Pa = async ({
3055
3064
  chainId: e,
3056
3065
  orders: a,
3057
3066
  signal: i
@@ -3064,11 +3073,11 @@ const va = async ({
3064
3073
  chainId: e,
3065
3074
  signal: i,
3066
3075
  limit: 1e3,
3067
- buildQuery: (x, F) => `
3076
+ buildQuery: (x, C) => `
3068
3077
  {
3069
3078
  statusNews(
3070
- first: ${F},
3071
- skip: ${x * F},
3079
+ first: ${C},
3080
+ skip: ${x * C},
3072
3081
  ${A}
3073
3082
  ) {
3074
3083
  twapId
@@ -3078,22 +3087,22 @@ const va = async ({
3078
3087
  }
3079
3088
  `,
3080
3089
  extractResults: (x) => {
3081
- var F;
3082
- return ((F = x.data) == null ? void 0 : F.statusNews) || [];
3090
+ var C;
3091
+ return ((C = x.data) == null ? void 0 : C.statusNews) || [];
3083
3092
  }
3084
3093
  });
3085
3094
  };
3086
3095
  function Ve(e) {
3087
3096
  return Array.from(new Set(e));
3088
3097
  }
3089
- const Ra = async ({
3098
+ const Ia = async ({
3090
3099
  chainId: e,
3091
3100
  orders: a,
3092
3101
  signal: i
3093
3102
  }) => {
3094
- const y = Ve(a.map((C) => C.Contract_id)), d = Ve(a.map((C) => C.twapAddress)).filter(Boolean);
3103
+ const y = Ve(a.map((F) => F.Contract_id)), d = Ve(a.map((F) => F.twapAddress)).filter(Boolean);
3095
3104
  if (y.length === 0) return [];
3096
- const A = y.join(", "), b = d.map((C) => `"${C}"`).join(", "), x = d.length ? `twapAddress_in: [${b}]` : "", w = `where: { ${[
3105
+ const A = y.join(", "), b = d.map((F) => `"${F}"`).join(", "), x = d.length ? `twapAddress_in: [${b}]` : "", w = `where: { ${[
3097
3106
  `TWAP_id_in: [${A}]`,
3098
3107
  x
3099
3108
  ].filter(Boolean).join(", ")} }`;
@@ -3101,9 +3110,9 @@ const Ra = async ({
3101
3110
  chainId: e,
3102
3111
  signal: i,
3103
3112
  limit: 1e3,
3104
- buildQuery: (C, T) => `
3113
+ buildQuery: (F, T) => `
3105
3114
  {
3106
- orderFilleds(first: ${T}, orderBy: timestamp, skip: ${C * T}, ${w}) {
3115
+ orderFilleds(first: ${T}, orderBy: timestamp, skip: ${F * T}, ${w}) {
3107
3116
  id
3108
3117
  dstAmountOut
3109
3118
  dstFee
@@ -3119,21 +3128,21 @@ const Ra = async ({
3119
3128
  }
3120
3129
  }
3121
3130
  `,
3122
- extractResults: (C) => {
3131
+ extractResults: (F) => {
3123
3132
  var T;
3124
- return (((T = C.data) == null ? void 0 : T.orderFilleds) || []).map((R) => ({
3133
+ return (((T = F.data) == null ? void 0 : T.orderFilleds) || []).map((R) => ({
3125
3134
  ...R,
3126
3135
  timestamp: new Date(R.timestamp).getTime()
3127
3136
  }));
3128
3137
  }
3129
3138
  });
3130
3139
  };
3131
- class Pa extends Error {
3140
+ class Na extends Error {
3132
3141
  constructor() {
3133
3142
  super("No graph endpoint found"), this.name = "NoGraphEndpointError";
3134
3143
  }
3135
3144
  }
3136
- const Ia = async ({
3145
+ const Ma = async ({
3137
3146
  chainId: e,
3138
3147
  signal: a,
3139
3148
  page: i,
@@ -3141,41 +3150,41 @@ const Ia = async ({
3141
3150
  filters: d
3142
3151
  }) => {
3143
3152
  try {
3144
- const A = await _a({
3153
+ const A = await Ra({
3145
3154
  chainId: e,
3146
3155
  signal: a,
3147
3156
  page: i,
3148
3157
  limit: y,
3149
3158
  filters: d
3150
3159
  }), [b, x] = await Promise.all([
3151
- Ra({ chainId: e, orders: A, signal: a }),
3152
- va({ chainId: e, orders: A, signal: a })
3153
- ]), F = A.map((S) => {
3154
- const C = b == null ? void 0 : b.filter(
3160
+ Ia({ chainId: e, orders: A, signal: a }),
3161
+ Pa({ chainId: e, orders: A, signal: a })
3162
+ ]), C = A.map((S) => {
3163
+ const F = b == null ? void 0 : b.filter(
3155
3164
  (T) => T.TWAP_id === Number(S.Contract_id) && Be(T.exchange, S.exchange) && Be(T.twapAddress, S.twapAddress)
3156
3165
  );
3157
- return ka(
3166
+ return _a(
3158
3167
  S,
3159
3168
  e,
3160
- C,
3161
- Na(S, C || [], x)
3169
+ F,
3170
+ Ua(S, F || [], x)
3162
3171
  );
3163
- }).sort((S, C) => C.createdAt - S.createdAt), w = /* @__PURE__ */ new Set();
3164
- return F.filter((S) => w.has(S.id) ? !1 : (w.add(S.id), !0));
3172
+ }).sort((S, F) => F.createdAt - S.createdAt), w = /* @__PURE__ */ new Set();
3173
+ return C.filter((S) => w.has(S.id) ? !1 : (w.add(S.id), !0));
3165
3174
  } catch {
3166
3175
  return [];
3167
3176
  }
3168
- }, Na = (e, a, i) => {
3177
+ }, Ua = (e, a, i) => {
3169
3178
  var x;
3170
3179
  const y = (x = i == null ? void 0 : i.find(
3171
- (F) => F.twapId === e.Contract_id.toString() && Be(F.twapAddress, e.twapAddress)
3172
- )) == null ? void 0 : x.status, A = nt(a).reduce((F, w) => F.plus(w.inAmount), new g(0)).toFixed(), b = st(e.ask_srcAmount, A);
3173
- return Ua(b, e.ask_deadline * 1e3, y);
3174
- }, st = (e, a) => {
3180
+ (C) => C.twapId === e.Contract_id.toString() && Be(C.twapAddress, e.twapAddress)
3181
+ )) == null ? void 0 : x.status, A = st(a).reduce((C, w) => C.plus(w.inAmount), new g(0)).toFixed(), b = rt(e.ask_srcAmount, A);
3182
+ return La(b, e.ask_deadline * 1e3, y);
3183
+ }, rt = (e, a) => {
3175
3184
  if (!a || !e) return 0;
3176
3185
  const i = g(a).dividedBy(e).toNumber();
3177
3186
  return i >= 0.99 ? 100 : i <= 0 ? 0 : Number((i * 100).toFixed(2));
3178
- }, Ua = (e, a, i) => e === 100 ? oe.Completed : i === "CANCELLED" ? oe.Cancelled : i === "COMPLETED" ? oe.Completed : a > Date.now() ? oe.Open : oe.Expired, In = async ({
3187
+ }, La = (e, a, i) => e === 100 ? oe.Completed : i === "CANCELLED" ? oe.Cancelled : i === "COMPLETED" ? oe.Completed : a > Date.now() ? oe.Open : oe.Expired, Mn = async ({
3179
3188
  signal: e,
3180
3189
  page: a,
3181
3190
  chainId: i,
@@ -3185,7 +3194,7 @@ const Ia = async ({
3185
3194
  isDev: b = !1,
3186
3195
  includeV1GraphOrders: x = !0
3187
3196
  }) => (await Promise.all([
3188
- !d || !x ? Promise.resolve([]) : Ia({
3197
+ !d || !x ? Promise.resolve([]) : Ma({
3189
3198
  chainId: i,
3190
3199
  signal: e,
3191
3200
  page: a,
@@ -3195,7 +3204,7 @@ const Ia = async ({
3195
3204
  configs: d.twapConfig ? [d.twapConfig] : []
3196
3205
  }
3197
3206
  }),
3198
- Ba({
3207
+ ka({
3199
3208
  chainId: i,
3200
3209
  signal: e,
3201
3210
  account: A,
@@ -3203,89 +3212,89 @@ const Ia = async ({
3203
3212
  partner: d == null ? void 0 : d.partner,
3204
3213
  isDev: b
3205
3214
  })
3206
- ]).then(([S, C]) => [...S, ...C])).sort((S, C) => C.createdAt - S.createdAt);
3215
+ ]).then(([S, F]) => [...S, ...F])).sort((S, F) => F.createdAt - S.createdAt);
3207
3216
  export {
3208
- nn as CRASH_ERROR_MESSAGE,
3217
+ rn as CRASH_ERROR_MESSAGE,
3209
3218
  O as Configs,
3210
3219
  qe as DEFAULT_FILL_DELAY,
3211
- tn as DEFAULT_STOP_LOSS_LIMIT_PERCENTAGE,
3212
- Ja as DEFAULT_STOP_LOSS_PERCENTAGE,
3213
- an as DEFAULT_TAKE_PROFIT_LIMIT_PERCENTAGE,
3214
- en as DEFAULT_TAKE_PROFIT_PERCENTAGE,
3215
- Za as DISCLAIMER_URL,
3216
- ta as EIP712_TYPES,
3217
- Va as ERC20_ABI,
3218
- qa as EXCLUSIVITY_OVERRIDE_BPS,
3219
- $a as FEES,
3220
- La as IWETH_ABI,
3221
- Kt as InputErrors,
3222
- Jt as LEGACY_EXCHANGES_MAP,
3220
+ nn as DEFAULT_STOP_LOSS_LIMIT_PERCENTAGE,
3221
+ tn as DEFAULT_STOP_LOSS_PERCENTAGE,
3222
+ sn as DEFAULT_TAKE_PROFIT_LIMIT_PERCENTAGE,
3223
+ an as DEFAULT_TAKE_PROFIT_PERCENTAGE,
3224
+ en as DISCLAIMER_URL,
3225
+ aa as EIP712_TYPES,
3226
+ za as ERC20_ABI,
3227
+ Xa as EXCLUSIVITY_OVERRIDE_BPS,
3228
+ Ga as FEES,
3229
+ Wa as IWETH_ABI,
3230
+ Ht as InputErrors,
3231
+ ea as LEGACY_EXCHANGES_MAP,
3223
3232
  De as MAX_ORDER_DURATION_MILLIS,
3224
- Ha as MIN_CHUNKS,
3225
- Me as MIN_FILL_DELAY_MILLIS,
3226
- jt as MIN_FILL_DELAY_MINUTES,
3233
+ qa as MIN_CHUNKS,
3234
+ Ue as MIN_FILL_DELAY_MILLIS,
3235
+ Qt as MIN_FILL_DELAY_MINUTES,
3227
3236
  $e as MIN_ORDER_DURATION_MILLIS,
3228
3237
  H as Module,
3229
- ja as ORBS_LOGO,
3230
- Qa as ORBS_LOGO_FALLBACK,
3231
- Xa as ORBS_SLTP_FAQ_URL,
3232
- Ga as ORBS_TWAP_FAQ_URL,
3233
- Ya as ORBS_WEBSITE_URL,
3234
- zt as OrderFilter,
3238
+ Ya as ORBS_LOGO,
3239
+ Za as ORBS_LOGO_FALLBACK,
3240
+ Qa as ORBS_SLTP_FAQ_URL,
3241
+ ja as ORBS_TWAP_FAQ_URL,
3242
+ Ja as ORBS_WEBSITE_URL,
3243
+ Kt as OrderFilter,
3235
3244
  oe as OrderStatus,
3236
3245
  V as OrderType,
3237
- ie as Partners,
3246
+ se as Partners,
3238
3247
  Ee as QUERY_PARAMS,
3239
- Wa as REPERMIT_ABI,
3240
- ea as REPERMIT_PRIMARY_TYPE,
3248
+ Ka as REPERMIT_ABI,
3249
+ ta as REPERMIT_PRIMARY_TYPE,
3241
3250
  ze as SPOT_VERSION,
3242
- Ka as SUGGEST_CHUNK_VALUE,
3243
- Qt as THE_GRAPH_ORDERS_API,
3244
- za as TWAP_ABI,
3245
- se as TimeUnit,
3246
- Ue as analytics,
3247
- vn as buildRePermitOrderData,
3248
- at as buildV2Order,
3251
+ $a as SUGGEST_CHUNK_VALUE,
3252
+ Yt as THE_GRAPH_ORDERS_API,
3253
+ Ha as TWAP_ABI,
3254
+ re as TimeUnit,
3255
+ Me as analytics,
3256
+ Pn as buildRePermitOrderData,
3257
+ nt as buildV2Order,
3249
3258
  Be as eqIgnoreCase,
3250
- In as getAccountOrders,
3251
- $t as getApiEndpoint,
3252
- An as getChunks,
3253
- la as getConfig,
3254
- bn as getDeadline,
3255
- un as getDestTokenAmount,
3256
- fn as getDestTokenMinAmountPerChunk,
3257
- yn as getDuration,
3258
- _n as getErrors,
3259
- ca as getEstimatedDelayBetweenChunksMillis,
3260
- kn as getMaxChunksError,
3261
- xn as getMaxFillDelayError,
3262
- wn as getMaxOrderDurationError,
3263
- hn as getMaxPossibleChunks,
3264
- On as getMinChunkSizeUsd,
3265
- Bn as getMinFillDelayError,
3266
- Dn as getMinOrderDurationError,
3267
- Sn as getMinTradeSizeError,
3268
- rn as getNetwork,
3269
- qt as getOrderApiEndpoints,
3270
- cn as getOrderExecutionRate,
3271
- on as getOrderFillDelayMillis,
3272
- pn as getOrderLimitPriceRate,
3273
- Xt as getOrderSinkExchange,
3274
- dn as getPartnerChains,
3259
+ Mn as getAccountOrders,
3260
+ qt as getApiEndpoint,
3261
+ bn as getChunks,
3262
+ fa as getConfig,
3263
+ xn as getDeadline,
3264
+ mn as getDestTokenAmount,
3265
+ yn as getDestTokenMinAmountPerChunk,
3266
+ hn as getDuration,
3267
+ Rn as getErrors,
3268
+ la as getEstimatedDelayBetweenChunksMillis,
3269
+ _n as getMaxChunksError,
3270
+ Cn as getMaxFillDelayError,
3271
+ Bn as getMaxOrderDurationError,
3272
+ En as getMaxPossibleChunks,
3273
+ vn as getMinChunkSizeUsd,
3274
+ kn as getMinFillDelayError,
3275
+ Sn as getMinOrderDurationError,
3276
+ On as getMinTradeSizeError,
3277
+ dn as getNetwork,
3278
+ Gt as getOrderApiEndpoints,
3279
+ ln as getOrderExecutionRate,
3280
+ cn as getOrderFillDelayMillis,
3281
+ un as getOrderLimitPriceRate,
3282
+ jt as getOrderSinkExchange,
3283
+ pn as getPartnerChains,
3275
3284
  G as getPartnerIdentifier,
3276
- ua as getPartners,
3277
- En as getSrcTokenChunkAmount,
3278
- Fn as getStopLossLimitPriceError,
3279
- gn as getStopLossPriceError,
3280
- Tn as getTakeProfitLimitPriceError,
3281
- Cn as getTakeProfitPriceError,
3282
- mn as getTriggerPricePerChunk,
3283
- ln as getTriggerPriceRate,
3284
- sn as isNativeAddress,
3285
+ ma as getPartners,
3286
+ gn as getSrcTokenChunkAmount,
3287
+ wn as getStopLossLimitPriceError,
3288
+ Fn as getStopLossPriceError,
3289
+ Dn as getTakeProfitLimitPriceError,
3290
+ Tn as getTakeProfitPriceError,
3291
+ An as getTriggerPricePerChunk,
3292
+ fn as getTriggerPriceRate,
3293
+ on as isNativeAddress,
3285
3294
  Je as maxUint256,
3286
- Zt as nativeTokenAddresses,
3295
+ Jt as nativeTokenAddresses,
3287
3296
  q as networks,
3288
- Rn as setUIVersion,
3289
- Pn as submitOrder,
3290
- Yt as zeroAddress
3297
+ In as setUIVersion,
3298
+ Nn as submitOrder,
3299
+ Zt as zeroAddress
3291
3300
  };