@orbs-network/spot-ui 1.0.12 → 1.0.13

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
@@ -378,7 +378,7 @@ const rt = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
378
378
  stateMutability: "nonpayable",
379
379
  type: "function"
380
380
  }
381
- ], Ut = /* @__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"}]'), Lt = [
381
+ ], Lt = /* @__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"}]'), Ut = [
382
382
  {
383
383
  type: "constructor",
384
384
  inputs: [],
@@ -690,15 +690,15 @@ const rt = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
690
690
  }
691
691
  ]
692
692
  }
693
- ], Na = Nt, Ma = Mt, Ua = Lt, La = Ut;
693
+ ], Na = Nt, Ma = Mt, La = Ut, Ua = Lt;
694
694
  var K = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(K || {}), re = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(re || {}), Vt = /* @__PURE__ */ ((e) => (e.All = "ALL", e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(Vt || {}), ne = /* @__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))(ne || {}), 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 || {}), pe = /* @__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))(pe || {}), Wt = /* @__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))(Wt || {});
695
- const L = "0x0000000000000000000000000000000000000000", q = {
695
+ const U = "0x0000000000000000000000000000000000000000", q = {
696
696
  eth: {
697
697
  id: 1,
698
698
  name: "Ethereum",
699
699
  shortname: "eth",
700
700
  native: {
701
- address: L,
701
+ address: U,
702
702
  symbol: "ETH",
703
703
  decimals: 18,
704
704
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -719,7 +719,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
719
719
  name: "BinanceSmartChain",
720
720
  shortname: "bsc",
721
721
  native: {
722
- address: L,
722
+ address: U,
723
723
  symbol: "BNB",
724
724
  decimals: 18,
725
725
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/128x128/1839.png"
@@ -740,7 +740,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
740
740
  name: "Polygon",
741
741
  shortname: "poly",
742
742
  native: {
743
- address: L,
743
+ address: U,
744
744
  symbol: "POL",
745
745
  decimals: 18,
746
746
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/64x64/28321.png"
@@ -761,7 +761,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
761
761
  name: "Arbitrum",
762
762
  shortname: "arb",
763
763
  native: {
764
- address: L,
764
+ address: U,
765
765
  symbol: "ETH",
766
766
  decimals: 18,
767
767
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -782,7 +782,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
782
782
  name: "Sei",
783
783
  shortname: "sei",
784
784
  native: {
785
- address: L,
785
+ address: U,
786
786
  symbol: "SEI",
787
787
  decimals: 18,
788
788
  logoUrl: "https://assets.coingecko.com/coins/images/28205/standard/Sei_Logo_-_Transparent.png"
@@ -803,7 +803,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
803
803
  name: "Avalanche",
804
804
  shortname: "avax",
805
805
  native: {
806
- address: L,
806
+ address: U,
807
807
  symbol: "AVAX",
808
808
  decimals: 18,
809
809
  logoUrl: "https://app.1inch.io/assets/images/network-logos/avalanche.svg"
@@ -824,7 +824,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
824
824
  name: "Fantom",
825
825
  shortname: "ftm",
826
826
  native: {
827
- address: L,
827
+ address: U,
828
828
  symbol: "FTM",
829
829
  decimals: 18,
830
830
  logoUrl: "https://app.1inch.io/assets/images/network-logos/fantom.svg"
@@ -845,7 +845,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
845
845
  name: "Base",
846
846
  shortname: "base",
847
847
  native: {
848
- address: L,
848
+ address: U,
849
849
  symbol: "ETH",
850
850
  decimals: 18,
851
851
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/128x128/1027.png"
@@ -866,7 +866,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
866
866
  name: "Linea",
867
867
  shortname: "linea",
868
868
  native: {
869
- address: L,
869
+ address: U,
870
870
  symbol: "ETH",
871
871
  decimals: 18,
872
872
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -887,7 +887,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
887
887
  name: "zksync",
888
888
  shortname: "zksync",
889
889
  native: {
890
- address: L,
890
+ address: U,
891
891
  symbol: "ETH",
892
892
  decimals: 18,
893
893
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -908,7 +908,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
908
908
  name: "zkevm",
909
909
  shortname: "zkevm",
910
910
  native: {
911
- address: L,
911
+ address: U,
912
912
  symbol: "ETH",
913
913
  decimals: 18,
914
914
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -929,7 +929,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
929
929
  name: "manta",
930
930
  shortname: "manta",
931
931
  native: {
932
- address: L,
932
+ address: U,
933
933
  symbol: "ETH",
934
934
  decimals: 18,
935
935
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_manta.jpg"
@@ -950,7 +950,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
950
950
  name: "blast",
951
951
  shortname: "blast",
952
952
  native: {
953
- address: L,
953
+ address: U,
954
954
  symbol: "ETH",
955
955
  decimals: 18,
956
956
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_blast"
@@ -971,7 +971,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
971
971
  name: "sonic",
972
972
  shortname: "sonic",
973
973
  native: {
974
- address: L,
974
+ address: U,
975
975
  symbol: "S",
976
976
  decimals: 18,
977
977
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_sonic"
@@ -992,7 +992,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
992
992
  name: "scroll",
993
993
  shortname: "scroll",
994
994
  native: {
995
- address: L,
995
+ address: U,
996
996
  symbol: "ETH",
997
997
  decimals: 18,
998
998
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_scroll"
@@ -1013,7 +1013,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
1013
1013
  name: "Zircuit",
1014
1014
  shortname: "zircuit",
1015
1015
  native: {
1016
- address: L,
1016
+ address: U,
1017
1017
  symbol: "ETH",
1018
1018
  decimals: 18,
1019
1019
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -1034,7 +1034,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
1034
1034
  name: "flare",
1035
1035
  shortname: "flare",
1036
1036
  native: {
1037
- address: L,
1037
+ address: U,
1038
1038
  symbol: "FLR",
1039
1039
  decimals: 18,
1040
1040
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_flare?w=48&h=48"
@@ -1079,7 +1079,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
1079
1079
  name: "Katana",
1080
1080
  shortname: "katana",
1081
1081
  native: {
1082
- address: L,
1082
+ address: U,
1083
1083
  symbol: "ETH",
1084
1084
  decimals: 18,
1085
1085
  logoUrl: "https://katana.network/assets/katana-logo.svg"
@@ -1102,7 +1102,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
1102
1102
  name: "Bera",
1103
1103
  shortname: "bera",
1104
1104
  native: {
1105
- address: L,
1105
+ address: U,
1106
1106
  symbol: "BERA",
1107
1107
  decimals: 18,
1108
1108
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/128x128/24647.png"
@@ -1125,7 +1125,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
1125
1125
  name: "Monad",
1126
1126
  shortname: "monad",
1127
1127
  native: {
1128
- address: L,
1128
+ address: U,
1129
1129
  symbol: "MONAD",
1130
1130
  decimals: 18,
1131
1131
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/128x128/30495.png"
@@ -1146,7 +1146,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
1146
1146
  name: "Optimism",
1147
1147
  shortname: "optimism",
1148
1148
  native: {
1149
- address: L,
1149
+ address: U,
1150
1150
  symbol: "ETH",
1151
1151
  decimals: 18,
1152
1152
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/128x128/11840.png"
@@ -1167,7 +1167,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
1167
1167
  name: "Mantle",
1168
1168
  shortname: "mantle",
1169
1169
  native: {
1170
- address: L,
1170
+ address: U,
1171
1171
  symbol: "MNT",
1172
1172
  decimals: 18,
1173
1173
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/128x128/27075.png"
@@ -1183,7 +1183,7 @@ const L = "0x0000000000000000000000000000000000000000", q = {
1183
1183
  explorer: "https://mantlescan.xyz",
1184
1184
  eip1559: !0
1185
1185
  }
1186
- }, zt = "2.5.3", Ve = {
1186
+ }, zt = "2.5.6", Ve = {
1187
1187
  version: zt
1188
1188
  }, $t = "https://order-sink-dev.orbs.network", Kt = "https://order-sink.orbs.network", Ht = "https://order-sink-v2.orbs.network", je = Ve.version.split(".")[0], Qe = (e) => {
1189
1189
  const a = Number(je) >= 2;
@@ -1399,7 +1399,7 @@ var Ee = /* @__PURE__ */ ((e) => (e.FRESHNESS = "freshness", e.MIN_CHUNK_SIZE_US
1399
1399
  const Qa = "-5", Ya = "10", Za = "-10", Ja = "5", en = "Something went wrong";
1400
1400
  var Jt = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Oe = Math.ceil, J = Math.floor, X = "[BigNumber Error] ", He = X + "Number primitive has more than 15 significant digits: ", ae = 1e14, S = 14, _e = 9007199254740991, Pe = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], le = 1e7, z = 1e9;
1401
1401
  function Ze(e) {
1402
- var a, i, y, d = h.prototype = { constructor: h, toString: null, valueOf: null }, A = new h(1), E = 20, g = 4, F = -7, B = 21, k = -1e7, w = 1e7, C = !1, P = 1, I = 0, ie = {
1402
+ var a, i, y, d = h.prototype = { constructor: h, toString: null, valueOf: null }, A = new h(1), E = 20, g = 4, C = -7, w = 21, k = -1e7, D = 1e7, F = !1, P = 1, I = 0, ie = {
1403
1403
  prefix: "",
1404
1404
  groupSize: 3,
1405
1405
  secondaryGroupSize: 0,
@@ -1415,13 +1415,13 @@ function Ze(e) {
1415
1415
  if (!(l instanceof h)) return new h(t, n);
1416
1416
  if (n == null) {
1417
1417
  if (t && t._isBigNumber === !0) {
1418
- l.s = t.s, !t.c || t.e > w ? l.c = l.e = null : t.e < k ? l.c = [l.e = 0] : (l.e = t.e, l.c = t.c.slice());
1418
+ l.s = t.s, !t.c || t.e > D ? l.c = l.e = null : t.e < k ? l.c = [l.e = 0] : (l.e = t.e, l.c = t.c.slice());
1419
1419
  return;
1420
1420
  }
1421
1421
  if ((r = typeof t == "number") && t * 0 == 0) {
1422
1422
  if (l.s = 1 / t < 0 ? (t = -t, -1) : 1, t === ~~t) {
1423
1423
  for (p = 0, m = t; m >= 10; m /= 10, p++) ;
1424
- p > w ? l.c = l.e = null : (l.e = p, l.c = [t]);
1424
+ p > D ? l.c = l.e = null : (l.e = p, l.c = [t]);
1425
1425
  return;
1426
1426
  }
1427
1427
  f = String(t);
@@ -1459,7 +1459,7 @@ function Ze(e) {
1459
1459
  if (f = f.slice(m, ++c)) {
1460
1460
  if (c -= m, r && h.DEBUG && c > 15 && (t > _e || t !== J(t)))
1461
1461
  throw Error(He + l.s * t);
1462
- if ((p = p - m - 1) > w)
1462
+ if ((p = p - m - 1) > D)
1463
1463
  l.c = l.e = null;
1464
1464
  else if (p < k)
1465
1465
  l.c = [l.e = 0];
@@ -1480,22 +1480,22 @@ function Ze(e) {
1480
1480
  var n, s;
1481
1481
  if (t != null)
1482
1482
  if (typeof t == "object") {
1483
- if (t.hasOwnProperty(n = "DECIMAL_PLACES") && (s = t[n], N(s, 0, z, n), E = s), t.hasOwnProperty(n = "ROUNDING_MODE") && (s = t[n], N(s, 0, 8, n), g = s), t.hasOwnProperty(n = "EXPONENTIAL_AT") && (s = t[n], s && s.pop ? (N(s[0], -z, 0, n), N(s[1], 0, z, n), F = s[0], B = s[1]) : (N(s, -z, z, n), F = -(B = s < 0 ? -s : s))), t.hasOwnProperty(n = "RANGE"))
1483
+ if (t.hasOwnProperty(n = "DECIMAL_PLACES") && (s = t[n], N(s, 0, z, n), E = s), t.hasOwnProperty(n = "ROUNDING_MODE") && (s = t[n], N(s, 0, 8, n), g = s), t.hasOwnProperty(n = "EXPONENTIAL_AT") && (s = t[n], s && s.pop ? (N(s[0], -z, 0, n), N(s[1], 0, z, n), C = s[0], w = s[1]) : (N(s, -z, z, n), C = -(w = s < 0 ? -s : s))), t.hasOwnProperty(n = "RANGE"))
1484
1484
  if (s = t[n], s && s.pop)
1485
- N(s[0], -z, -1, n), N(s[1], 1, z, n), k = s[0], w = s[1];
1485
+ N(s[0], -z, -1, n), N(s[1], 1, z, n), k = s[0], D = s[1];
1486
1486
  else if (N(s, -z, z, n), s)
1487
- k = -(w = s < 0 ? -s : s);
1487
+ k = -(D = s < 0 ? -s : s);
1488
1488
  else
1489
1489
  throw Error(X + n + " cannot be zero: " + s);
1490
1490
  if (t.hasOwnProperty(n = "CRYPTO"))
1491
1491
  if (s = t[n], s === !!s)
1492
1492
  if (s)
1493
1493
  if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
1494
- C = s;
1494
+ F = s;
1495
1495
  else
1496
- throw C = !s, Error(X + "crypto unavailable");
1496
+ throw F = !s, Error(X + "crypto unavailable");
1497
1497
  else
1498
- C = s;
1498
+ F = s;
1499
1499
  else
1500
1500
  throw Error(X + n + " not true or false: " + s);
1501
1501
  if (t.hasOwnProperty(n = "MODULO_MODE") && (s = t[n], N(s, 0, 9, n), P = s), t.hasOwnProperty(n = "POW_PRECISION") && (s = t[n], N(s, 0, z, n), I = s), t.hasOwnProperty(n = "FORMAT"))
@@ -1511,9 +1511,9 @@ function Ze(e) {
1511
1511
  return {
1512
1512
  DECIMAL_PLACES: E,
1513
1513
  ROUNDING_MODE: g,
1514
- EXPONENTIAL_AT: [F, B],
1515
- RANGE: [k, w],
1516
- CRYPTO: C,
1514
+ EXPONENTIAL_AT: [C, w],
1515
+ RANGE: [k, D],
1516
+ CRYPTO: F,
1517
1517
  MODULO_MODE: P,
1518
1518
  POW_PRECISION: I,
1519
1519
  FORMAT: ie,
@@ -1550,7 +1550,7 @@ function Ze(e) {
1550
1550
  };
1551
1551
  return function(s) {
1552
1552
  var u, o, p, m, r, c = 0, f = [], l = new h(A);
1553
- if (s == null ? s = E : N(s, 0, z), m = Oe(s / S), C)
1553
+ if (s == null ? s = E : N(s, 0, z), m = Oe(s / S), F)
1554
1554
  if (crypto.getRandomValues) {
1555
1555
  for (u = crypto.getRandomValues(new Uint32Array(m *= 2)); c < m; )
1556
1556
  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);
@@ -1560,8 +1560,8 @@ function Ze(e) {
1560
1560
  r = (u[c] & 31) * 281474976710656 + u[c + 1] * 1099511627776 + u[c + 2] * 4294967296 + u[c + 3] * 16777216 + (u[c + 4] << 16) + (u[c + 5] << 8) + u[c + 6], r >= 9e15 ? crypto.randomBytes(7).copy(u, c) : (f.push(r % 1e14), c += 7);
1561
1561
  c = m / 7;
1562
1562
  } else
1563
- throw C = !1, Error(X + "crypto unavailable");
1564
- if (!C)
1563
+ throw F = !1, Error(X + "crypto unavailable");
1564
+ if (!F)
1565
1565
  for (; c < m; )
1566
1566
  r = n(), r < 9e15 && (f[c++] = r % 1e14);
1567
1567
  for (m = f[--c], s %= S, m && s && (r = Pe[S - s], f[c] = J(m / r) * r); f[c] === 0; f.pop(), c--) ;
@@ -1588,31 +1588,31 @@ function Ze(e) {
1588
1588
  return r.reverse();
1589
1589
  }
1590
1590
  return function(s, u, o, p, m) {
1591
- var r, c, f, l, b, T, D, _, M = s.indexOf("."), W = E, O = g;
1591
+ var r, c, f, l, b, T, B, _, M = s.indexOf("."), W = E, O = g;
1592
1592
  for (M >= 0 && (l = I, I = 0, s = s.replace(".", ""), _ = new h(u), T = _.pow(s.length - M), I = l, _.c = n(
1593
1593
  de(Z(T.c), T.e, "0"),
1594
1594
  10,
1595
1595
  o,
1596
1596
  t
1597
- ), _.e = _.c.length), D = n(s, u, o, m ? (r = Q, t) : (r = t, Q)), f = l = D.length; D[--l] == 0; D.pop()) ;
1598
- if (!D[0]) return r.charAt(0);
1599
- if (M < 0 ? --f : (T.c = D, T.e = f, T.s = p, T = a(T, _, W, O, o), D = T.c, b = T.r, f = T.e), c = f + W + 1, M = D[c], l = o / 2, b = b || c < 0 || D[c + 1] != null, b = O < 4 ? (M != null || b) && (O == 0 || O == (T.s < 0 ? 3 : 2)) : M > l || M == l && (O == 4 || b || O == 6 && D[c - 1] & 1 || O == (T.s < 0 ? 8 : 7)), c < 1 || !D[0])
1597
+ ), _.e = _.c.length), B = n(s, u, o, m ? (r = Q, t) : (r = t, Q)), f = l = B.length; B[--l] == 0; B.pop()) ;
1598
+ if (!B[0]) return r.charAt(0);
1599
+ if (M < 0 ? --f : (T.c = B, T.e = f, T.s = p, T = a(T, _, W, O, o), B = T.c, b = T.r, f = T.e), c = f + W + 1, M = B[c], l = o / 2, b = b || c < 0 || B[c + 1] != null, b = O < 4 ? (M != null || b) && (O == 0 || O == (T.s < 0 ? 3 : 2)) : M > l || M == l && (O == 4 || b || O == 6 && B[c - 1] & 1 || O == (T.s < 0 ? 8 : 7)), c < 1 || !B[0])
1600
1600
  s = b ? de(r.charAt(1), -W, r.charAt(0)) : r.charAt(0);
1601
1601
  else {
1602
- if (D.length = c, b)
1603
- for (--o; ++D[--c] > o; )
1604
- D[c] = 0, c || (++f, D = [1].concat(D));
1605
- for (l = D.length; !D[--l]; ) ;
1606
- for (M = 0, s = ""; M <= l; s += r.charAt(D[M++])) ;
1602
+ if (B.length = c, b)
1603
+ for (--o; ++B[--c] > o; )
1604
+ B[c] = 0, c || (++f, B = [1].concat(B));
1605
+ for (l = B.length; !B[--l]; ) ;
1606
+ for (M = 0, s = ""; M <= l; s += r.charAt(B[M++])) ;
1607
1607
  s = de(s, f, r.charAt(0));
1608
1608
  }
1609
1609
  return s;
1610
1610
  };
1611
1611
  })(), a = /* @__PURE__ */ (function() {
1612
1612
  function t(u, o, p) {
1613
- var m, r, c, f, l = 0, b = u.length, T = o % le, D = o / le | 0;
1613
+ var m, r, c, f, l = 0, b = u.length, T = o % le, B = o / le | 0;
1614
1614
  for (u = u.slice(); b--; )
1615
- c = u[b] % le, f = u[b] / le | 0, m = D * c + f * T, r = T * c + m % le * le + l, l = (r / p | 0) + (m / le | 0) + D * f, u[b] = r % p;
1615
+ c = u[b] % le, f = u[b] / le | 0, m = B * c + f * T, r = T * c + m % le * le + l, l = (r / p | 0) + (m / le | 0) + B * f, u[b] = r % p;
1616
1616
  return l && (u = [l].concat(u)), u;
1617
1617
  }
1618
1618
  function n(u, o, p, m) {
@@ -1633,31 +1633,31 @@ function Ze(e) {
1633
1633
  for (; !u[0] && u.length > 1; u.splice(0, 1)) ;
1634
1634
  }
1635
1635
  return function(u, o, p, m, r) {
1636
- var c, f, l, b, T, D, _, M, W, O, R, $, ge, ke, Se, se, he, Y = u.s == o.s ? 1 : -1, H = u.c, U = o.c;
1637
- if (!H || !H[0] || !U || !U[0])
1636
+ var c, f, l, b, T, B, _, M, W, O, R, $, ge, ke, Se, se, he, Y = u.s == o.s ? 1 : -1, H = u.c, L = o.c;
1637
+ if (!H || !H[0] || !L || !L[0])
1638
1638
  return new h(
1639
1639
  // Return NaN if either NaN, or both Infinity or 0.
1640
- !u.s || !o.s || (H ? U && H[0] == U[0] : !U) ? NaN : (
1640
+ !u.s || !o.s || (H ? L && H[0] == L[0] : !L) ? NaN : (
1641
1641
  // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
1642
- H && H[0] == 0 || !U ? Y * 0 : Y / 0
1642
+ H && H[0] == 0 || !L ? Y * 0 : Y / 0
1643
1643
  )
1644
1644
  );
1645
- for (M = new h(Y), W = M.c = [], f = u.e - o.e, Y = p + f + 1, r || (r = ae, f = ee(u.e / S) - ee(o.e / S), Y = Y / S | 0), l = 0; U[l] == (H[l] || 0); l++) ;
1646
- if (U[l] > (H[l] || 0) && f--, Y < 0)
1645
+ for (M = new h(Y), W = M.c = [], f = u.e - o.e, Y = p + f + 1, r || (r = ae, f = ee(u.e / S) - ee(o.e / S), Y = Y / S | 0), l = 0; L[l] == (H[l] || 0); l++) ;
1646
+ if (L[l] > (H[l] || 0) && f--, Y < 0)
1647
1647
  W.push(1), b = !0;
1648
1648
  else {
1649
- for (ke = H.length, se = U.length, l = 0, Y += 2, T = J(r / (U[0] + 1)), T > 1 && (U = t(U, T, r), H = t(H, T, r), se = U.length, ke = H.length), ge = se, O = H.slice(0, se), R = O.length; R < se; O[R++] = 0) ;
1650
- he = U.slice(), he = [0].concat(he), Se = U[0], U[1] >= r / 2 && Se++;
1649
+ for (ke = H.length, se = L.length, l = 0, Y += 2, T = J(r / (L[0] + 1)), T > 1 && (L = t(L, T, r), H = t(H, T, r), se = L.length, ke = H.length), ge = se, O = H.slice(0, se), R = O.length; R < se; O[R++] = 0) ;
1650
+ he = L.slice(), he = [0].concat(he), Se = L[0], L[1] >= r / 2 && Se++;
1651
1651
  do {
1652
- if (T = 0, c = n(U, O, se, R), c < 0) {
1652
+ if (T = 0, c = n(L, O, se, R), c < 0) {
1653
1653
  if ($ = O[0], se != R && ($ = $ * r + (O[1] || 0)), T = J($ / Se), T > 1)
1654
- for (T >= r && (T = r - 1), D = t(U, T, r), _ = D.length, R = O.length; n(D, O, _, R) == 1; )
1655
- T--, s(D, se < _ ? he : U, _, r), _ = D.length, c = 1;
1654
+ for (T >= r && (T = r - 1), B = t(L, T, r), _ = B.length, R = O.length; n(B, O, _, R) == 1; )
1655
+ T--, s(B, se < _ ? he : L, _, r), _ = B.length, c = 1;
1656
1656
  else
1657
- T == 0 && (c = T = 1), D = U.slice(), _ = D.length;
1658
- if (_ < R && (D = [0].concat(D)), s(O, D, R, r), R = O.length, c == -1)
1659
- for (; n(U, O, se, R) < 1; )
1660
- T++, s(O, se < R ? he : U, R, r), R = O.length;
1657
+ T == 0 && (c = T = 1), B = L.slice(), _ = B.length;
1658
+ if (_ < R && (B = [0].concat(B)), s(O, B, R, r), R = O.length, c == -1)
1659
+ for (; n(L, O, se, R) < 1; )
1660
+ T++, s(O, se < R ? he : L, R, r), R = O.length;
1661
1661
  } else c === 0 && (T++, O = [0]);
1662
1662
  W[l++] = T, O[0] ? O[R++] = H[ge] || 0 : (O = [H[ge]], R = 1);
1663
1663
  } while ((ge++ < ke || O[0] != null) && Y--);
@@ -1675,8 +1675,8 @@ function Ze(e) {
1675
1675
  var o, p, m, r, c;
1676
1676
  if (s == null ? s = g : N(s, 0, 8), !t.c) return t.toString();
1677
1677
  if (o = t.c[0], m = t.e, n == null)
1678
- c = Z(t.c), c = u == 1 || u == 2 && (m <= F || m >= B) ? Te(c, m) : de(c, m, "0");
1679
- else if (t = j(new h(t), n, s), p = t.e, c = Z(t.c), r = c.length, u == 1 || u == 2 && (n <= p || p <= F)) {
1678
+ c = Z(t.c), c = u == 1 || u == 2 && (m <= C || m >= w) ? Te(c, m) : de(c, m, "0");
1679
+ else if (t = j(new h(t), n, s), p = t.e, c = Z(t.c), r = c.length, u == 1 || u == 2 && (n <= p || p <= C)) {
1680
1680
  for (; r < n; c += "0", r++) ;
1681
1681
  c = Te(c, p);
1682
1682
  } else if (n -= m + (u === 2 && p > m), c = de(c, p, "0"), p + 1 > r) {
@@ -1693,7 +1693,7 @@ function Ze(e) {
1693
1693
  function be(t, n, s) {
1694
1694
  for (var u = 1, o = n.length; !n[--o]; n.pop()) ;
1695
1695
  for (o = n[0]; o >= 10; o /= 10, u++) ;
1696
- return (s = u + s * S - 1) > w ? t.c = t.e = null : s < k ? t.c = [t.e = 0] : (t.e = s, t.c = n), t;
1696
+ return (s = u + s * S - 1) > D ? t.c = t.e = null : s < k ? t.c = [t.e = 0] : (t.e = s, t.c = n), t;
1697
1697
  }
1698
1698
  y = /* @__PURE__ */ (function() {
1699
1699
  var t = /^(-?)0([xbo])(?=\w[\w.]*$)/i, n = /^([^.]+)\.$/, s = /^\.([^.]+)$/, u = /^-?(Infinity|NaN)$/, o = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
@@ -1702,8 +1702,8 @@ function Ze(e) {
1702
1702
  if (u.test(l))
1703
1703
  p.s = isNaN(l) ? null : l < 0 ? -1 : 1;
1704
1704
  else {
1705
- if (!r && (l = l.replace(t, function(b, T, D) {
1706
- return f = (D = D.toLowerCase()) == "x" ? 16 : D == "b" ? 2 : 8, !c || c == f ? T : b;
1705
+ if (!r && (l = l.replace(t, function(b, T, B) {
1706
+ return f = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !c || c == f ? T : b;
1707
1707
  }), c && (f = c, l = l.replace(n, "$1").replace(s, "0.$1")), m != l))
1708
1708
  return new h(l, f);
1709
1709
  if (h.DEBUG)
@@ -1749,13 +1749,13 @@ function Ze(e) {
1749
1749
  }
1750
1750
  for (p = b.length; b[--p] === 0; b.pop()) ;
1751
1751
  }
1752
- t.e > w ? t.c = t.e = null : t.e < k && (t.c = [t.e = 0]);
1752
+ t.e > D ? t.c = t.e = null : t.e < k && (t.c = [t.e = 0]);
1753
1753
  }
1754
1754
  return t;
1755
1755
  }
1756
1756
  function oe(t) {
1757
1757
  var n, s = t.e;
1758
- return s === null ? t.toString() : (n = Z(t.c), n = s <= F || s >= B ? Te(n, s) : de(n, s, "0"), t.s < 0 ? "-" + n : n);
1758
+ return s === null ? t.toString() : (n = Z(t.c), n = s <= C || s >= w ? Te(n, s) : de(n, s, "0"), t.s < 0 ? "-" + n : n);
1759
1759
  }
1760
1760
  return d.absoluteValue = d.abs = function() {
1761
1761
  var t = new h(this);
@@ -1866,13 +1866,13 @@ function Ze(e) {
1866
1866
  var s, u, o = this;
1867
1867
  return t = new h(t, n), !o.c || !t.s || t.c && !t.c[0] ? new h(NaN) : !t.c || o.c && !o.c[0] ? new h(o) : (P == 9 ? (u = t.s, t.s = 1, s = a(o, t, 0, 3), t.s = u, s.s *= u) : s = a(o, t, 0, P), t = o.minus(s.times(t)), !t.c[0] && P == 1 && (t.s = o.s), t);
1868
1868
  }, d.multipliedBy = d.times = function(t, n) {
1869
- var s, u, o, p, m, r, c, f, l, b, T, D, _, M, W, O = this, R = O.c, $ = (t = new h(t, n)).c;
1869
+ var s, u, o, p, m, r, c, f, l, b, T, B, _, M, W, O = this, R = O.c, $ = (t = new h(t, n)).c;
1870
1870
  if (!R || !$ || !R[0] || !$[0])
1871
1871
  return !O.s || !t.s || R && !R[0] && !$ || $ && !$[0] && !R ? t.c = t.e = t.s = null : (t.s *= O.s, !R || !$ ? t.c = t.e = null : (t.c = [0], t.e = 0)), t;
1872
1872
  for (u = ee(O.e / S) + ee(t.e / S), t.s *= O.s, c = R.length, b = $.length, c < b && (_ = R, R = $, $ = _, o = c, c = b, b = o), o = c + b, _ = []; o--; _.push(0)) ;
1873
1873
  for (M = ae, W = le, o = b; --o >= 0; ) {
1874
- for (s = 0, T = $[o] % W, D = $[o] / W | 0, m = c, p = o + m; p > o; )
1875
- f = R[--m] % W, l = R[m] / W | 0, r = D * f + l * T, f = T * f + r % W * W + _[p] + s, s = (f / M | 0) + (r / W | 0) + D * l, _[p--] = f % M;
1874
+ for (s = 0, T = $[o] % W, B = $[o] / W | 0, m = c, p = o + m; p > o; )
1875
+ f = R[--m] % W, l = R[m] / W | 0, r = B * f + l * T, f = T * f + r % W * W + _[p] + s, s = (f / M | 0) + (r / W | 0) + B * l, _[p--] = f % M;
1876
1876
  _[p] = s;
1877
1877
  }
1878
1878
  return s ? ++u : _.splice(0, 1), be(t, _, u);
@@ -1938,10 +1938,10 @@ function Ze(e) {
1938
1938
  else if (typeof s != "object")
1939
1939
  throw Error(X + "Argument not an object: " + s);
1940
1940
  if (u = o.toFixed(t, n), o.c) {
1941
- var p, m = u.split("."), r = +s.groupSize, c = +s.secondaryGroupSize, f = s.groupSeparator || "", l = m[0], b = m[1], T = o.s < 0, D = T ? l.slice(1) : l, _ = D.length;
1941
+ var p, m = u.split("."), r = +s.groupSize, c = +s.secondaryGroupSize, f = s.groupSeparator || "", l = m[0], b = m[1], T = o.s < 0, B = T ? l.slice(1) : l, _ = B.length;
1942
1942
  if (c && (p = r, r = c, c = p, _ -= p), r > 0 && _ > 0) {
1943
- for (p = _ % r || r, l = D.substr(0, p); p < _; p += r) l += f + D.substr(p, r);
1944
- c > 0 && (l += f + D.slice(p)), T && (l = "-" + l);
1943
+ for (p = _ % r || r, l = B.substr(0, p); p < _; p += r) l += f + B.substr(p, r);
1944
+ c > 0 && (l += f + B.slice(p)), T && (l = "-" + l);
1945
1945
  }
1946
1946
  u = b ? l + (s.decimalSeparator || "") + ((c = +s.fractionGroupSize) ? b.replace(
1947
1947
  new RegExp("\\d{" + c + "}\\B", "g"),
@@ -1950,22 +1950,22 @@ function Ze(e) {
1950
1950
  }
1951
1951
  return (s.prefix || "") + u + (s.suffix || "");
1952
1952
  }, d.toFraction = function(t) {
1953
- var n, s, u, o, p, m, r, c, f, l, b, T, D = this, _ = D.c;
1953
+ var n, s, u, o, p, m, r, c, f, l, b, T, B = this, _ = B.c;
1954
1954
  if (t != null && (r = new h(t), !r.isInteger() && (r.c || r.s !== 1) || r.lt(A)))
1955
1955
  throw Error(X + "Argument " + (r.isInteger() ? "out of range: " : "not an integer: ") + oe(r));
1956
- if (!_) return new h(D);
1957
- for (n = new h(A), f = s = new h(A), u = c = new h(A), T = Z(_), p = n.e = T.length - D.e - 1, n.c[0] = Pe[(m = p % S) < 0 ? S + m : m], t = !t || r.comparedTo(n) > 0 ? p > 0 ? n : f : r, m = w, w = 1 / 0, r = new h(T), c.c[0] = 0; l = a(r, n, 0, 1), o = s.plus(l.times(u)), o.comparedTo(t) != 1; )
1956
+ if (!_) return new h(B);
1957
+ for (n = new h(A), f = s = new h(A), u = c = new h(A), T = Z(_), p = n.e = T.length - B.e - 1, n.c[0] = Pe[(m = p % S) < 0 ? S + m : m], t = !t || r.comparedTo(n) > 0 ? p > 0 ? n : f : r, m = D, D = 1 / 0, r = new h(T), c.c[0] = 0; l = a(r, n, 0, 1), o = s.plus(l.times(u)), o.comparedTo(t) != 1; )
1958
1958
  s = u, u = o, f = c.plus(l.times(o = f)), c = o, n = r.minus(l.times(o = n)), r = o;
1959
- 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 = D.s, p = p * 2, b = a(f, u, p, g).minus(D).abs().comparedTo(
1960
- a(c, s, p, g).minus(D).abs()
1961
- ) < 1 ? [f, u] : [c, s], w = m, b;
1959
+ 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, b = a(f, u, p, g).minus(B).abs().comparedTo(
1960
+ a(c, s, p, g).minus(B).abs()
1961
+ ) < 1 ? [f, u] : [c, s], D = m, b;
1962
1962
  }, d.toNumber = function() {
1963
1963
  return +oe(this);
1964
1964
  }, d.toPrecision = function(t, n) {
1965
1965
  return t != null && N(t, 1, z), Ae(this, t, n, 2);
1966
1966
  }, d.toString = function(t) {
1967
1967
  var n, s = this, u = s.s, o = s.e;
1968
- return o === null ? u ? (n = "Infinity", u < 0 && (n = "-" + n)) : n = "NaN" : (t == null ? n = o <= F || o >= B ? Te(Z(s.c), o) : de(Z(s.c), o, "0") : t === 10 && ye ? (s = j(new h(s), E + o + 1, g), n = de(Z(s.c), s.e, "0")) : (N(t, 2, Q.length, "Base"), n = i(de(Z(s.c), o, "0"), 10, t, u, !0)), u < 0 && s.c[0] && (n = "-" + n)), n;
1968
+ return o === null ? u ? (n = "Infinity", u < 0 && (n = "-" + n)) : n = "NaN" : (t == null ? n = o <= C || o >= w ? Te(Z(s.c), o) : de(Z(s.c), o, "0") : t === 10 && ye ? (s = j(new h(s), E + o + 1, g), n = de(Z(s.c), s.e, "0")) : (N(t, 2, Q.length, "Base"), n = i(de(Z(s.c), o, "0"), 10, t, u, !0)), u < 0 && s.c[0] && (n = "-" + n)), n;
1969
1969
  }, d.valueOf = d.toJSON = function() {
1970
1970
  return oe(this);
1971
1971
  }, d._isBigNumber = !0, d[Symbol.toStringTag] = "BigNumber", d[Symbol.for("nodejs.util.inspect.custom")] = d.valueOf, e != null && h.set(e), h;
@@ -1983,14 +1983,14 @@ function Z(e) {
1983
1983
  return A.slice(0, d + 1 || 1);
1984
1984
  }
1985
1985
  function ue(e, a) {
1986
- var i, y, d = e.c, A = a.c, E = e.s, g = a.s, F = e.e, B = a.e;
1986
+ var i, y, d = e.c, A = a.c, E = e.s, g = a.s, C = e.e, w = a.e;
1987
1987
  if (!E || !g) return null;
1988
1988
  if (i = d && !d[0], y = A && !A[0], i || y) return i ? y ? 0 : -g : E;
1989
1989
  if (E != g) return E;
1990
- if (i = E < 0, y = F == B, !d || !A) return y ? 0 : !d ^ i ? 1 : -1;
1991
- if (!y) return F > B ^ i ? 1 : -1;
1992
- for (g = (F = d.length) < (B = A.length) ? F : B, E = 0; E < g; E++) if (d[E] != A[E]) return d[E] > A[E] ^ i ? 1 : -1;
1993
- return F == B ? 0 : F > B ^ i ? 1 : -1;
1990
+ if (i = E < 0, y = C == w, !d || !A) return y ? 0 : !d ^ i ? 1 : -1;
1991
+ if (!y) return C > w ^ i ? 1 : -1;
1992
+ for (g = (C = d.length) < (w = A.length) ? C : w, E = 0; E < g; E++) if (d[E] != A[E]) return d[E] > A[E] ^ i ? 1 : -1;
1993
+ return C == w ? 0 : C > w ^ i ? 1 : -1;
1994
1994
  }
1995
1995
  function N(e, a, i, y) {
1996
1996
  if (e < a || e > i || e !== J(e))
@@ -2025,7 +2025,7 @@ const ta = {
2025
2025
  56: { adapter: { "odos-v2": "0x6c17cc2984A87BD8b002c6E3C08dBB8c8Eb89E48", "pancakeswap-v2": "0xaf3532dca7b4a75cD06671614C093e9e8fb5b1F2" }, dex: { thena: { type: "default", solver: "odos-v2", router: "0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E", adapter: "0x9E61dEabe996236814c28eC69ab2A7405cB6f03E", fee: "0x15eBc8b5b3877512FFF23650188694A9a8891FAc" }, pancake: { type: "p2", solver: "pancakeswap-v2", router: "0xd9C500DfF816a1Da21A48A732d3498Bf09dc9AEB", permit2: "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768", adapter: "0x52Ed96B1AEd25818B6A284b063b055488E012b73", fee: "0x37A957f10F458e0d7fDECBE2917971b57F15c927" }, newera: { type: "default", solver: "odos-v2", router: "0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E", adapter: "0x6236a466CE5c368DC6686d69cAcf5561196B76ef", fee: "0x4E7454909eB6D539111D56b50d68897E933D2d11" }, agent: { type: "default", solver: "odos-v2", router: "0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E", adapter: "0x67Feba015c968c76cCB2EEabf197b4578640BE2C", fee: "0x03A70aC8126340d3cd6b5828816172693C398661" } } },
2026
2026
  137: { adapter: { "odos-v2": "0x5628D7383b42E14E83DA310de3e7E04E6b025418", "paraswap-v5": "0x179C4b8e982b5F1365d36CC8d0c1CEB621B7198D" }, dex: { quick: { type: "paraswap", solver: "paraswap-v5", router: "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57", adapter: "0x727e1CbA41Ff1ff11C32fa43DAb499b4317A1b65", fee: "0xd207DC6a6dA88f27c8DB78201F974161b1d84b1f" }, teafi: { type: "paraswap", solver: "paraswap-v5", router: "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57", adapter: "0xF710D67C783D2C14671EC1c61B0683DCb996F5c3", fee: "0x04Ff96e2c4D62b5771795d307AD679a25b3D2D50" }, agent: { type: "default", solver: "odos-v2", router: "0x4E3288c9ca110bCC82bf38F09A7b425c095d92Bf", adapter: "0x75A3d70Fa6d054d31C896b9Cf8AB06b1c1B829B8", fee: "0x03A70aC8126340d3cd6b5828816172693C398661" } } },
2027
2027
  143: { adapter: { "openocean-v2": "0xc7f07C830e22FCA94bF52F38C6707F9D396c6172", "kyber-v2": "0x6f4e5b8d7F6b037c62277992c39E7834D7C04596" }, dex: { yowie: { type: "default", solver: "openocean-v2", router: "0x6352a56caadC4F1E25CD6c75970Fa768A3304e64", adapter: "0xCA84Ab5a5A5bf2cff6AC0C835eF049365D13c6cB", fee: "0x6AF3eE77A3A3257777F5649aFa611b4C7Fd975Ef" }, pangolin: { type: "default", solver: "kyber-v2", router: "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", adapter: "0xf42106eBf985bF49b39eba0114F57FA05e7B52eD", fee: "0xde92da99D188Ceb54A11ec711EF52D808A6260B5" } } },
2028
- 146: { adapter: { "odos-v2": "0x0123695379045f9db515E6a77d8154959B94B599", "magpie-v3": "0xa5AB087b39dAf175650EFB4F7B8E977C1585a662", "openocean-v2": "0xc7f07C830e22FCA94bF52F38C6707F9D396c6172" }, dex: { spooky: { type: "default", solver: "magpie-v3", router: "0xc325856e5585823aaC0D1Fd46c35c608D95E65A9", adapter: "0x56083Eb47d4d7d520F4d2b4a0DC98BE56bb98068", fee: "0x840Df4684B35BC68BcdA3F6707A3c82A0D662f8b" }, swapx: { type: "default", solver: "openocean-v2", router: "0x6352a56caadC4F1E25CD6c75970Fa768A3304e64", adapter: "0xa7AE3ABf86C81cCEFEd6bE77045F2a32660c1B1c", fee: "0x6E03f7BC0f141894612AA017796096399623895F" }, shadow: { type: "default", solver: "magpie-v3", router: "0xc325856e5585823aaC0D1Fd46c35c608D95E65A9", adapter: "0x1adEE94aBa11F19981130F77a1B2620b67e4409A", fee: "0xb9e3751fAF3187E1bC468E56a707a8A91754460e" }, agent: { type: "default", solver: "openocean-v2", router: "0x6352a56caadC4F1E25CD6c75970Fa768A3304e64", adapter: "0xD87ee28806bc0060789C4789F123647f4Df25A6C", fee: "0x03A70aC8126340d3cd6b5828816172693C398661" } } },
2028
+ 146: { adapter: { "odos-v2": "0x0123695379045f9db515E6a77d8154959B94B599", "openocean-v2": "0xc7f07C830e22FCA94bF52F38C6707F9D396c6172", flytrade: "0x4914efb617fEa2Fd7529fdb365854Fd8f17bCBDE" }, dex: { spooky: { type: "default", solver: "flytrade", router: "0x20f6ee51340adeed01a59b0e65cb3703f3dc860c", adapter: "0x0F6533Fd45D13ad6AAa364023d6c05eCB2d3Ac2E", fee: "0x840Df4684B35BC68BcdA3F6707A3c82A0D662f8b" }, swapx: { type: "default", solver: "openocean-v2", router: "0x6352a56caadC4F1E25CD6c75970Fa768A3304e64", adapter: "0xa7AE3ABf86C81cCEFEd6bE77045F2a32660c1B1c", fee: "0x6E03f7BC0f141894612AA017796096399623895F" }, shadow: { type: "default", solver: "flytrade", router: "0x20f6ee51340adeed01a59b0e65cb3703f3dc860c", adapter: "0x39b024E187e5f35fea05953fECB9314a97de3d94", fee: "0xb9e3751fAF3187E1bC468E56a707a8A91754460e" }, agent: { type: "default", solver: "openocean-v2", router: "0x6352a56caadC4F1E25CD6c75970Fa768A3304e64", adapter: "0xD87ee28806bc0060789C4789F123647f4Df25A6C", fee: "0x03A70aC8126340d3cd6b5828816172693C398661" } } },
2029
2029
  1329: { adapter: { dragon: "0x1e84A9f30607959d2d8b1a04171ef7D9522Ef502", "openocean-v2": "0xc7f07C830e22FCA94bF52F38C6707F9D396c6172" }, dex: { dragon: { type: "default", solver: "dragon", router: "0x11DA6463D6Cb5a03411Dbf5ab6f6bc3997Ac7428", adapter: "0x1e84A9f30607959d2d8b1a04171ef7D9522Ef502", fee: "0x0dc1E0525202b32e89bA78ed55b1e5cEdB751334" }, nami: { type: "default", solver: "openocean-v2", router: "0x6352a56caadC4F1E25CD6c75970Fa768A3304e64", adapter: "0xba56F9A7865d430c8293851D576b5728Ca711ff5", fee: "0xeB58450e23632003f013568703F54446070E2E80" } } },
2030
2030
  5e3: { adapter: { "odos-v2": "0x3a0fA0f95ea07026c5f84D8d3444Dd6E15AE1874" }, dex: { agent: { type: "default", solver: "odos-v2", router: "0xD9F4e85489aDCD0bAF0Cd63b4231c6af58c26745", adapter: "0x9571D46B5A5AAb749E5aCd698D8F20814C7B23D3", fee: "0x03A70aC8126340d3cd6b5828816172693C398661" } } },
2031
2031
  8453: { adapter: { "odos-v2": "0x1c947387AFC3435135e3da51ccEAB20eD5377DeA", "pancakeswap-v2": "0x917b492557957f5dD3e69c04c8E1Ac3d6948c022", "kyber-v2": "0x6f4e5b8d7F6b037c62277992c39E7834D7C04596", trebleswap: "0x6f4938535879c668A797F2a6e9B912c54f9D43Cf", sushi: "0x11985E88847aEC23D1C3BCD77Ca0F4A704aB751c" }, dex: { pancake: { type: "p2", solver: "pancakeswap-v2", router: "0xFE6508f0015C778Bdcc1fB5465bA5ebE224C9912", permit2: "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768", adapter: "0xA7CcB11F1D20D1F915FC220F5Cb1646E4523bB75", fee: "0x37A957f10F458e0d7fDECBE2917971b57F15c927" }, quick: { type: "default", solver: "kyber-v2", router: "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", adapter: "0x0438644898F69bfF1018Cb01a81877D14d3e6493", fee: "0xd207DC6a6dA88f27c8DB78201F974161b1d84b1f" }, trebleswap: { type: "default", solver: "trebleswap", router: "0x347539D82A14C0A3a89769f1024774A545a151ac", adapter: "0x6f4938535879c668A797F2a6e9B912c54f9D43Cf", fee: "0x15fc883d7DF4e681Ddb9E43e7B1D8c61d4fC162C" }, sushiswap: { type: "default", solver: "sushi", router: "0xAC4c6e212A361c968F1725b4d055b47E63F80b75", adapter: "0x2e43A28FAf083717CcD9B246d97C61E1Bc9914Df", fee: "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc" }, agent: { type: "default", solver: "kyber-v2", router: "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", adapter: "0xc64d6E64A713EfbbCcB14413479c56461F9c0b77", fee: "0x03A70aC8126340d3cd6b5828816172693C398661" } } },
@@ -2051,9 +2051,9 @@ function aa() {
2051
2051
  });
2052
2052
  function y(d, A) {
2053
2053
  if (!d) return;
2054
- const { dex: E, salt: g, ...F } = e["*"] ?? {}, B = e[d];
2055
- if (!B) return;
2056
- const { dex: k, salt: w, ...C } = B, P = { ...F, ...C }, I = A == null ? void 0 : A.trim();
2054
+ const { dex: E, salt: g, ...C } = e["*"] ?? {}, w = e[d];
2055
+ if (!w) return;
2056
+ const { dex: k, salt: D, ...F } = w, P = { ...C, ...F }, I = A == null ? void 0 : A.trim();
2057
2057
  if (!I) return P;
2058
2058
  const ie = E == null ? void 0 : E[I], Q = k == null ? void 0 : k[I];
2059
2059
  if (!(!ie && !Q))
@@ -2257,15 +2257,16 @@ const fe = (e) => e ? e.value * e.unit : 0, sa = (e) => !e || e === "NaN" ? "0"
2257
2257
  twapConfig: oa(e, a)
2258
2258
  };
2259
2259
  }, ca = () => {
2260
- const e = Je.raw;
2261
- return Object.entries(e).filter(([a]) => a !== "*").flatMap(([a, i]) => {
2262
- const y = i == null ? void 0 : i.dex;
2263
- return !y || typeof y != "object" ? [] : Object.entries(y).map(([d]) => ({
2264
- chainId: Number(a),
2265
- name: d,
2266
- config: da(d, Number(a))
2260
+ var i;
2261
+ const e = Je.raw, a = ((i = e["*"]) == null ? void 0 : i.dex) ?? {};
2262
+ return console.log({ globalDex: a }), Object.entries(e).filter(([y]) => y !== "*").flatMap(([y, d]) => {
2263
+ const A = { ...a, ...(d == null ? void 0 : d.dex) ?? {} };
2264
+ return !A || typeof A != "object" ? [] : Object.entries(A).map(([E]) => ({
2265
+ chainId: Number(y),
2266
+ name: E,
2267
+ config: da(E, Number(y))
2267
2268
  }));
2268
- }).sort((a, i) => a.name.localeCompare(i.name));
2269
+ }).sort((y, d) => y.name.localeCompare(d.name));
2269
2270
  }, Bn = (e) => {
2270
2271
  const a = Be(
2271
2272
  Ee.MIN_CHUNK_SIZE_USD
@@ -2280,12 +2281,12 @@ const fe = (e) => e ? e.value * e.unit : 0, sa = (e) => !e || e === "NaN" ? "0"
2280
2281
  limitPriceError: A,
2281
2282
  tradesError: E,
2282
2283
  fillDelayError: g,
2283
- durationError: F,
2284
- balanceError: B,
2284
+ durationError: C,
2285
+ balanceError: w,
2285
2286
  minTradeSizeError: k
2286
2287
  }) => {
2287
2288
  if (!Be(Ee.IGNORE_ERRORS) && !(x(e || 0).isZero() || x(a || 0).isZero() || x(i || "0").isZero() || y))
2288
- return k || d || A || E || g || F || B;
2289
+ return k || d || A || E || g || C || w;
2289
2290
  }, pa = (e, a) => {
2290
2291
  const i = Date.now().toString(), y = parseInt((e / 1e3).toFixed(0)), d = sa(a / 1e3), A = Be(Ee.FRESHNESS), E = A ? parseInt(A) : 60;
2291
2292
  return {
@@ -2303,29 +2304,29 @@ const fe = (e) => e ? e.value * e.unit : 0, sa = (e) => !e || e === "NaN" ? "0"
2303
2304
  fillDelayMillis: A,
2304
2305
  slippage: E,
2305
2306
  account: g,
2306
- srcAmountPerTrade: F,
2307
- dstMinAmountPerTrade: B = "0",
2307
+ srcAmountPerTrade: C,
2308
+ dstMinAmountPerTrade: w = "0",
2308
2309
  triggerAmountPerTrade: k = "0",
2309
- config: w,
2310
- module: C
2310
+ config: D,
2311
+ module: F
2311
2312
  }) => {
2312
2313
  const { nonce: P, epoch: I, deadline: ie, freshness: Q } = pa(
2313
2314
  A,
2314
2315
  d
2315
- ), ye = Math.floor(Date.now() / 1e3).toString(), h = B, Ae = C === K.STOP_LOSS ? k : "0", xe = C === K.TAKE_PROFIT ? k : "0", be = {
2316
+ ), ye = Math.floor(Date.now() / 1e3).toString(), h = w, Ae = F === K.STOP_LOSS ? k : "0", xe = F === K.TAKE_PROFIT ? k : "0", be = {
2316
2317
  permitted: {
2317
2318
  token: a,
2318
2319
  amount: y
2319
2320
  },
2320
- spender: w.reactor,
2321
+ spender: D.reactor,
2321
2322
  nonce: P,
2322
2323
  deadline: ie,
2323
2324
  witness: {
2324
- reactor: w.reactor,
2325
- executor: w.executor,
2325
+ reactor: D.reactor,
2326
+ executor: D.executor,
2326
2327
  exchange: {
2327
- adapter: w.adapter,
2328
- ref: w.fee,
2328
+ adapter: D.adapter,
2329
+ ref: D.fee,
2329
2330
  share: 0,
2330
2331
  data: "0x"
2331
2332
  },
@@ -2340,7 +2341,7 @@ const fe = (e) => e ? e.value * e.unit : 0, sa = (e) => !e || e === "NaN" ? "0"
2340
2341
  freshness: Q,
2341
2342
  input: {
2342
2343
  token: a,
2343
- amount: F,
2344
+ amount: C,
2344
2345
  maxAmount: y
2345
2346
  },
2346
2347
  output: {
@@ -2357,23 +2358,23 @@ const fe = (e) => e ? e.value * e.unit : 0, sa = (e) => !e || e === "NaN" ? "0"
2357
2358
  name: "RePermit",
2358
2359
  version: "1",
2359
2360
  chainId: e,
2360
- verifyingContract: w.repermit
2361
+ verifyingContract: D.repermit
2361
2362
  },
2362
2363
  order: be,
2363
2364
  types: Zt,
2364
2365
  primaryType: Yt
2365
2366
  };
2366
2367
  }, la = 0.7, ua = `https://bi.orbs.network/putes/twap-ui-${la}`;
2367
- let Ue = "unknown";
2368
+ let Le = "unknown";
2368
2369
  function vn(e) {
2369
- Ue = e;
2370
+ Le = e;
2370
2371
  }
2371
2372
  function Ie() {
2372
2373
  const e = Math.random().toString(36).substring(2, 16), a = Math.random().toString(36).substring(2, 16), i = Date.now().toString(36);
2373
2374
  return `id_${e + a + i}`;
2374
2375
  }
2375
2376
  const fa = (e, a, i) => {
2376
- var y, d, A, E, g, F, B, k, w;
2377
+ var y, d, A, E, g, C, w, k, D;
2377
2378
  return {
2378
2379
  spotVersion: Ve.version,
2379
2380
  partner: e.partner,
@@ -2394,10 +2395,10 @@ const fa = (e, a, i) => {
2394
2395
  lensAddress: ((E = e.twapConfig) == null ? void 0 : E.lensAddress) || "",
2395
2396
  bidDelaySeconds: ((g = e.twapConfig) == null ? void 0 : g.bidDelaySeconds) || 0,
2396
2397
  minChunkSizeUsd: a,
2397
- name: ((F = e.twapConfig) == null ? void 0 : F.name) || "",
2398
- exchangeAddress: ((B = e.twapConfig) == null ? void 0 : B.exchangeAddress) || "",
2398
+ name: ((C = e.twapConfig) == null ? void 0 : C.name) || "",
2399
+ exchangeAddress: ((w = e.twapConfig) == null ? void 0 : w.exchangeAddress) || "",
2399
2400
  exchangeType: ((k = e.twapConfig) == null ? void 0 : k.exchangeType) || "",
2400
- pathfinderKey: ((w = e.twapConfig) == null ? void 0 : w.pathfinderKey) || ""
2401
+ pathfinderKey: ((D = e.twapConfig) == null ? void 0 : D.pathfinderKey) || ""
2401
2402
  };
2402
2403
  }, Ge = async (e) => {
2403
2404
  try {
@@ -2495,11 +2496,11 @@ class ma {
2495
2496
  dstToken: A,
2496
2497
  fromTokenAmount: E,
2497
2498
  srcChunkAmount: g,
2498
- minDstAmountOutPerTrade: F = "",
2499
- triggerPricePerTrade: B = "",
2499
+ minDstAmountOutPerTrade: C = "",
2500
+ triggerPricePerTrade: w = "",
2500
2501
  deadline: k,
2501
- fillDelay: w,
2502
- slippage: C,
2502
+ fillDelay: D,
2503
+ slippage: F,
2503
2504
  isMarketOrder: P,
2504
2505
  chunksAmount: I
2505
2506
  }) {
@@ -2511,11 +2512,11 @@ class ma {
2511
2512
  fromTokenAmount: E,
2512
2513
  chunksAmount: I,
2513
2514
  srcChunkAmount: g,
2514
- minDstAmountOutPerTrade: F,
2515
- triggerPricePerTrade: B,
2515
+ minDstAmountOutPerTrade: C,
2516
+ triggerPricePerTrade: w,
2516
2517
  deadline: k,
2517
- fillDelay: w,
2518
- slippage: C,
2518
+ fillDelay: D,
2519
+ slippage: F,
2519
2520
  chainId: i,
2520
2521
  walletAddress: a,
2521
2522
  module: y,
@@ -2543,7 +2544,7 @@ class ma {
2543
2544
  this.config = a, y !== ((d = this.data) == null ? void 0 : d.chainId) && (this.data = {
2544
2545
  _id: Ie(),
2545
2546
  action: "module-import",
2546
- uiVersion: Ue,
2547
+ uiVersion: Le,
2547
2548
  ...fa(a, i, y),
2548
2549
  origin: window.location.origin
2549
2550
  }, this.updateAndSend(this.data));
@@ -2567,7 +2568,7 @@ class ma {
2567
2568
  this.data = {
2568
2569
  _id: Ie(),
2569
2570
  action: "reset",
2570
- uiVersion: Ue,
2571
+ uiVersion: Le,
2571
2572
  origin: this.data.origin,
2572
2573
  spotVersion: Ve.version,
2573
2574
  partner: this.data.partner,
@@ -2604,9 +2605,9 @@ class ma {
2604
2605
  }
2605
2606
  }
2606
2607
  const Ne = new ma(), ya = (e) => {
2607
- var g;
2608
- const a = x(e.order.witness.output.limit || 0).gt(1), i = e.order.witness.output.stop, y = e.order.witness.output.triggerUpper, d = x(i || 0).eq(Ye) || x(y || 0).gt(0), A = x(i || 0).gt(0), E = ((g = e.metadata.chunks) == null ? void 0 : g.length) || x(e.order.witness.input.maxAmount).div(x(e.order.witness.input.amount)).toNumber();
2609
- return d ? a ? V.TAKE_PROFIT_LIMIT : V.TAKE_PROFIT_MARKET : A ? a ? V.STOP_LOSS_LIMIT : V.STOP_LOSS_MARKET : a ? E > 1 && a ? V.TWAP_LIMIT : a ? V.LIMIT : V.TWAP_MARKET : V.TWAP_MARKET;
2608
+ var w;
2609
+ const a = x(e.order.witness.output.limit || 0).gt(1), { stop: i, triggerLower: y, triggerUpper: d } = e.order.witness.output, A = x(i || 0).eq(Ye), E = A || x(d || 0).gt(0), g = !A && x(i || 0).gt(0) || x(y || 0).gt(0), C = ((w = e.metadata.chunks) == null ? void 0 : w.length) || x(e.order.witness.input.maxAmount).div(x(e.order.witness.input.amount)).toNumber();
2610
+ return E ? a ? V.TAKE_PROFIT_LIMIT : V.TAKE_PROFIT_MARKET : g ? 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;
2610
2611
  }, Aa = (e) => {
2611
2612
  var d;
2612
2613
  const a = ((d = e.metadata.chunks) == null ? void 0 : d.filter((A) => A.status === "success").length) || 0, i = e.metadata.expectedChunks || 0, y = x(a).dividedBy(i).toNumber();
@@ -2682,7 +2683,7 @@ const Ne = new ma(), ya = (e) => {
2682
2683
  signal: a
2683
2684
  }
2684
2685
  )).json();
2685
- return !g || !Array.isArray(g.orders) ? [] : (console.log(g.orders), g.orders.map(et));
2686
+ return !g || !Array.isArray(g.orders) ? [] : g.orders.map(et);
2686
2687
  } catch {
2687
2688
  return [];
2688
2689
  }
@@ -2699,8 +2700,8 @@ const Ne = new ma(), ya = (e) => {
2699
2700
  body: JSON.stringify(y)
2700
2701
  }), A = await d.json().catch(() => ({}));
2701
2702
  if (!d.ok || !(A != null && A.success)) {
2702
- const g = (A == null ? void 0 : A.message) ?? d.statusText ?? "Request failed", F = (A == null ? void 0 : A.code) ?? d.status;
2703
- throw new Error(`error:${g}, code:${F}`);
2703
+ const g = (A == null ? void 0 : A.message) ?? d.statusText ?? "Request failed", C = (A == null ? void 0 : A.code) ?? d.status;
2704
+ throw new Error(`error:${g}, code:${C}`);
2704
2705
  }
2705
2706
  if (!A.signedOrder || typeof A.signedOrder != "object")
2706
2707
  throw new Error("Invalid API response: missing signedOrder");
@@ -2723,13 +2724,13 @@ const Ne = new ma(), ya = (e) => {
2723
2724
  }) => {
2724
2725
  const g = wa(e);
2725
2726
  if (!g) throw new Oa();
2726
- const F = async (w) => {
2727
- let C = 0;
2728
- for (; C <= d; )
2727
+ const C = async (D) => {
2728
+ let F = 0;
2729
+ for (; F <= d; )
2729
2730
  try {
2730
2731
  const P = await fetch(g, {
2731
2732
  method: "POST",
2732
- body: JSON.stringify({ query: w }),
2733
+ body: JSON.stringify({ query: D }),
2733
2734
  signal: y,
2734
2735
  headers: { "Content-Type": "application/json" }
2735
2736
  });
@@ -2739,41 +2740,41 @@ const Ne = new ma(), ya = (e) => {
2739
2740
  throw new Error(I.errors[0].message);
2740
2741
  return i(I);
2741
2742
  } catch (P) {
2742
- if (C === d) throw P;
2743
- await new Promise((I) => setTimeout(I, 500 * 2 ** C)), C++;
2743
+ if (F === d) throw P;
2744
+ await new Promise((I) => setTimeout(I, 500 * 2 ** F)), F++;
2744
2745
  }
2745
2746
  return [];
2746
2747
  };
2747
- let B = 0;
2748
+ let w = 0;
2748
2749
  const k = [];
2749
2750
  if (E !== void 0) {
2750
- const w = a(E, A);
2751
+ const D = a(E, A);
2751
2752
  try {
2752
- return await F(w);
2753
+ return await C(D);
2753
2754
  } catch {
2754
2755
  console.warn(`Page ${E} failed, retrying one final time...`);
2755
2756
  try {
2756
- return await F(w);
2757
+ return await C(D);
2757
2758
  } catch {
2758
2759
  return [];
2759
2760
  }
2760
2761
  }
2761
2762
  }
2762
2763
  for (; ; ) {
2763
- const w = a(B, A);
2764
- let C;
2764
+ const D = a(w, A);
2765
+ let F;
2765
2766
  try {
2766
- C = await F(w);
2767
+ F = await C(D);
2767
2768
  } catch {
2768
- console.warn(`Page ${B} failed, retrying one final time...`);
2769
+ console.warn(`Page ${w} failed, retrying one final time...`);
2769
2770
  try {
2770
- C = await F(w);
2771
+ F = await C(D);
2771
2772
  } catch {
2772
2773
  return k;
2773
2774
  }
2774
2775
  }
2775
- if (k.push(...C), C.length < A) break;
2776
- B++;
2776
+ if (k.push(...F), F.length < A) break;
2777
+ w++;
2777
2778
  }
2778
2779
  return k;
2779
2780
  }, tt = (e) => e.map((a) => ({
@@ -2785,8 +2786,8 @@ const Ne = new ma(), ya = (e) => {
2785
2786
  const i = x(e || 0).gt(1);
2786
2787
  return !i && a === 1 ? V.TWAP_MARKET : a > 1 && i ? V.TWAP_LIMIT : i ? V.LIMIT : V.TWAP_MARKET;
2787
2788
  }, Da = (e, a, i, y) => {
2788
- var C;
2789
- const d = tt(i || []), A = new x(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(x.ROUND_FLOOR).toNumber(), g = (i == null ? void 0 : i.length) === A ? (C = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) == null ? void 0 : C.timestamp : void 0, F = d.reduce((P, I) => P.plus(I.inAmount), new x(0)).toFixed(), B = d.reduce((P, I) => P.plus(I.outAmount), new x(0)).toFixed(), k = at(e.ask_srcAmount, F), w = Xe(e.ask_dstMinAmount, A);
2789
+ var F;
2790
+ const d = tt(i || []), A = new x(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(x.ROUND_FLOOR).toNumber(), g = (i == null ? void 0 : i.length) === A ? (F = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) == null ? void 0 : F.timestamp : void 0, C = d.reduce((P, I) => P.plus(I.inAmount), new x(0)).toFixed(), w = d.reduce((P, I) => P.plus(I.outAmount), new x(0)).toFixed(), k = at(e.ask_srcAmount, C), D = Xe(e.ask_dstMinAmount, A);
2790
2791
  return {
2791
2792
  repermitDigest: "",
2792
2793
  version: 1,
@@ -2800,8 +2801,8 @@ const Ne = new ma(), ya = (e) => {
2800
2801
  twapAddress: e.twapAddress,
2801
2802
  maker: e.maker,
2802
2803
  progress: k,
2803
- dstAmountFilled: B,
2804
- srcAmountFilled: F,
2804
+ dstAmountFilled: w,
2805
+ srcAmountFilled: C,
2805
2806
  orderDollarValueIn: x(e.dollarValueIn || 0).toFixed(6),
2806
2807
  srcAmount: e.ask_srcAmount,
2807
2808
  dstMinAmountTotal: x(e.ask_dstMinAmount).multipliedBy(A).toString(),
@@ -2814,46 +2815,46 @@ const Ne = new ma(), ya = (e) => {
2814
2815
  srcAmountPerTrade: e.ask_srcBidAmount,
2815
2816
  txHash: e.transactionHash,
2816
2817
  totalTradesAmount: A,
2817
- isMarketPrice: [V.TWAP_MARKET].includes(w),
2818
+ isMarketPrice: [V.TWAP_MARKET].includes(D),
2818
2819
  chainId: a,
2819
2820
  filledOrderTimestamp: g || 0,
2820
2821
  status: y,
2821
2822
  rawOrder: e
2822
2823
  };
2823
2824
  }, Ba = (e) => {
2824
- var w;
2825
+ var D;
2825
2826
  if (!e) return "";
2826
2827
  const a = ce(
2827
2828
  e.accounts,
2828
- (C) => `"${C.toLowerCase()}"`
2829
+ (F) => `"${F.toLowerCase()}"`
2829
2830
  ), i = ce(
2830
2831
  ra(e.configs),
2831
- (C) => `"${C.toLowerCase()}"`
2832
+ (F) => `"${F.toLowerCase()}"`
2832
2833
  ), y = ce(
2833
2834
  e.inTokenSymbols,
2834
- (C) => `"${C.toUpperCase()}"`
2835
+ (F) => `"${F.toUpperCase()}"`
2835
2836
  ), d = ce(
2836
2837
  e.outTokenSymbols,
2837
- (C) => `"${C.toUpperCase()}"`
2838
+ (F) => `"${F.toUpperCase()}"`
2838
2839
  ), A = ce(
2839
2840
  e.inTokenAddresses,
2840
- (C) => `"${C.toLowerCase()}"`
2841
+ (F) => `"${F.toLowerCase()}"`
2841
2842
  ), E = ce(
2842
2843
  e.outTokenAddresses,
2843
- (C) => `"${C.toLowerCase()}"`
2844
+ (F) => `"${F.toLowerCase()}"`
2844
2845
  ), g = ce(
2845
2846
  e.transactionHashes,
2846
- (C) => `"${C.toLowerCase()}"`
2847
- ), F = ce(e.orderIds, (C) => `"${C}"`), B = i != null && i.length ? "" : ce(
2848
- (w = e.configs) == null ? void 0 : w.map((C) => C.twapAddress),
2849
- (C) => `"${C.toLowerCase()}"`
2847
+ (F) => `"${F.toLowerCase()}"`
2848
+ ), C = ce(e.orderIds, (F) => `"${F}"`), w = i != null && i.length ? "" : ce(
2849
+ (D = e.configs) == null ? void 0 : D.map((F) => F.twapAddress),
2850
+ (F) => `"${F.toLowerCase()}"`
2850
2851
  ), k = e.minDollarValueIn;
2851
2852
  return [
2852
2853
  i ? `exchange_in: [${i.join(", ")}]` : "",
2853
- B ? `twapAddress_in: [${B.join(", ")}]` : "",
2854
+ w ? `twapAddress_in: [${w.join(", ")}]` : "",
2854
2855
  a ? `maker_in: [${a.join(", ")}]` : "",
2855
2856
  g ? `transactionHash_in: [${g.join(", ")}]` : "",
2856
- F ? `Contract_id_in: [${F.join(", ")}]` : "",
2857
+ C ? `Contract_id_in: [${C.join(", ")}]` : "",
2857
2858
  k ? `dollarValueIn_gte: ${k}` : "",
2858
2859
  y ? `srcTokenSymbol_in: [${y.join(", ")}]` : "",
2859
2860
  d ? `dstTokenSymbol_in: [${d.join(", ")}]` : "",
@@ -2878,12 +2879,12 @@ async function ka({
2878
2879
  signal: a,
2879
2880
  limit: A,
2880
2881
  page: i,
2881
- buildQuery: (F, B) => `
2882
+ buildQuery: (C, w) => `
2882
2883
  {
2883
2884
  orderCreateds(
2884
2885
  ${E ? `where: { ${E} }` : ""},
2885
- first: ${B},
2886
- skip: ${F * B},
2886
+ first: ${w},
2887
+ skip: ${C * w},
2887
2888
  orderBy: timestamp,
2888
2889
  orderDirection: desc,
2889
2890
  ) {
@@ -2913,9 +2914,9 @@ async function ka({
2913
2914
  }
2914
2915
  }
2915
2916
  `,
2916
- extractResults: (F) => {
2917
- var B;
2918
- return ((B = F.data) == null ? void 0 : B.orderCreateds) || [];
2917
+ extractResults: (C) => {
2918
+ var w;
2919
+ return ((w = C.data) == null ? void 0 : w.orderCreateds) || [];
2919
2920
  }
2920
2921
  });
2921
2922
  }
@@ -2925,18 +2926,18 @@ const Sa = async ({
2925
2926
  signal: i
2926
2927
  }) => {
2927
2928
  if (a.length === 0) return [];
2928
- const y = Le(a.map((g) => g.Contract_id.toString()));
2929
+ const y = Ue(a.map((g) => g.Contract_id.toString()));
2929
2930
  if (!y.length) return [];
2930
2931
  const A = `where: { twapId_in: [${y.map((g) => `"${g}"`).join(", ")}]}`;
2931
2932
  return await ze({
2932
2933
  chainId: e,
2933
2934
  signal: i,
2934
2935
  limit: 1e3,
2935
- buildQuery: (g, F) => `
2936
+ buildQuery: (g, C) => `
2936
2937
  {
2937
2938
  statusNews(
2938
- first: ${F},
2939
- skip: ${g * F},
2939
+ first: ${C},
2940
+ skip: ${g * C},
2940
2941
  ${A}
2941
2942
  ) {
2942
2943
  twapId
@@ -2946,12 +2947,12 @@ const Sa = async ({
2946
2947
  }
2947
2948
  `,
2948
2949
  extractResults: (g) => {
2949
- var F;
2950
- return ((F = g.data) == null ? void 0 : F.statusNews) || [];
2950
+ var C;
2951
+ return ((C = g.data) == null ? void 0 : C.statusNews) || [];
2951
2952
  }
2952
2953
  });
2953
2954
  };
2954
- function Le(e) {
2955
+ function Ue(e) {
2955
2956
  return Array.from(new Set(e));
2956
2957
  }
2957
2958
  const va = async ({
@@ -2959,9 +2960,9 @@ const va = async ({
2959
2960
  orders: a,
2960
2961
  signal: i
2961
2962
  }) => {
2962
- const y = Le(a.map((w) => w.Contract_id)), d = Le(a.map((w) => w.twapAddress)).filter(Boolean);
2963
+ const y = Ue(a.map((D) => D.Contract_id)), d = Ue(a.map((D) => D.twapAddress)).filter(Boolean);
2963
2964
  if (y.length === 0) return [];
2964
- const A = y.join(", "), E = d.map((w) => `"${w}"`).join(", "), g = d.length ? `twapAddress_in: [${E}]` : "", B = `where: { ${[
2965
+ const A = y.join(", "), E = d.map((D) => `"${D}"`).join(", "), g = d.length ? `twapAddress_in: [${E}]` : "", w = `where: { ${[
2965
2966
  `TWAP_id_in: [${A}]`,
2966
2967
  g
2967
2968
  ].filter(Boolean).join(", ")} }`;
@@ -2969,9 +2970,9 @@ const va = async ({
2969
2970
  chainId: e,
2970
2971
  signal: i,
2971
2972
  limit: 1e3,
2972
- buildQuery: (w, C) => `
2973
+ buildQuery: (D, F) => `
2973
2974
  {
2974
- orderFilleds(first: ${C}, orderBy: timestamp, skip: ${w * C}, ${B}) {
2975
+ orderFilleds(first: ${F}, orderBy: timestamp, skip: ${D * F}, ${w}) {
2975
2976
  id
2976
2977
  dstAmountOut
2977
2978
  dstFee
@@ -2987,9 +2988,9 @@ const va = async ({
2987
2988
  }
2988
2989
  }
2989
2990
  `,
2990
- extractResults: (w) => {
2991
- var C;
2992
- return (((C = w.data) == null ? void 0 : C.orderFilleds) || []).map((P) => ({
2991
+ extractResults: (D) => {
2992
+ var F;
2993
+ return (((F = D.data) == null ? void 0 : F.orderFilleds) || []).map((P) => ({
2993
2994
  ...P,
2994
2995
  timestamp: new Date(P.timestamp).getTime()
2995
2996
  }));
@@ -3018,26 +3019,26 @@ const _a = async ({
3018
3019
  }), [E, g] = await Promise.all([
3019
3020
  va({ chainId: e, orders: A, signal: a }),
3020
3021
  Sa({ chainId: e, orders: A, signal: a })
3021
- ]), F = A.map((k) => {
3022
- const w = E == null ? void 0 : E.filter(
3023
- (C) => C.TWAP_id === Number(k.Contract_id) && De(C.exchange, k.exchange) && De(C.twapAddress, k.twapAddress)
3022
+ ]), C = A.map((k) => {
3023
+ const D = E == null ? void 0 : E.filter(
3024
+ (F) => F.TWAP_id === Number(k.Contract_id) && De(F.exchange, k.exchange) && De(F.twapAddress, k.twapAddress)
3024
3025
  );
3025
3026
  return Da(
3026
3027
  k,
3027
3028
  e,
3028
- w,
3029
- Pa(k, w || [], g)
3029
+ D,
3030
+ Pa(k, D || [], g)
3030
3031
  );
3031
- }).sort((k, w) => w.createdAt - k.createdAt), B = /* @__PURE__ */ new Set();
3032
- return F.filter((k) => B.has(k.id) ? !1 : (B.add(k.id), !0));
3032
+ }).sort((k, D) => D.createdAt - k.createdAt), w = /* @__PURE__ */ new Set();
3033
+ return C.filter((k) => w.has(k.id) ? !1 : (w.add(k.id), !0));
3033
3034
  } catch {
3034
3035
  return [];
3035
3036
  }
3036
3037
  }, Pa = (e, a, i) => {
3037
3038
  var g;
3038
3039
  const y = (g = i == null ? void 0 : i.find(
3039
- (F) => F.twapId === e.Contract_id.toString() && De(F.twapAddress, e.twapAddress)
3040
- )) == null ? void 0 : g.status, A = tt(a).reduce((F, B) => F.plus(B.inAmount), new x(0)).toFixed(), E = at(e.ask_srcAmount, A);
3040
+ (C) => C.twapId === e.Contract_id.toString() && De(C.twapAddress, e.twapAddress)
3041
+ )) == null ? void 0 : g.status, A = tt(a).reduce((C, w) => C.plus(w.inAmount), new x(0)).toFixed(), E = at(e.ask_srcAmount, A);
3041
3042
  return Ra(E, e.ask_deadline * 1e3, y);
3042
3043
  }, at = (e, a) => {
3043
3044
  if (!a || !e) return 0;
@@ -3054,7 +3055,7 @@ const _a = async ({
3054
3055
  }) => (await Promise.all([
3055
3056
  d ? _a({ chainId: i, signal: e, page: a, limit: y, filters: { accounts: [A], configs: d.twapConfig ? [d.twapConfig] : [] } }) : Promise.resolve([]),
3056
3057
  Ta({ chainId: i, signal: e, account: A, exchange: d == null ? void 0 : d.adapter, isDev: E })
3057
- ]).then(([B, k]) => [...B, ...k])).sort((B, k) => k.createdAt - B.createdAt);
3058
+ ]).then(([w, k]) => [...w, ...k])).sort((w, k) => k.createdAt - w.createdAt);
3058
3059
  export {
3059
3060
  en as CRASH_ERROR_MESSAGE,
3060
3061
  v as Configs,
@@ -3087,12 +3088,12 @@ export {
3087
3088
  V as OrderType,
3088
3089
  pe as Partners,
3089
3090
  Ee as QUERY_PARAMS,
3090
- Ua as REPERMIT_ABI,
3091
+ La as REPERMIT_ABI,
3091
3092
  Yt as REPERMIT_PRIMARY_TYPE,
3092
3093
  je as SPOT_VERSION,
3093
3094
  Va as SUGGEST_CHUNK_VALUE,
3094
3095
  Gt as THE_GRAPH_ORDERS_API,
3095
- La as TWAP_ABI,
3096
+ Ua as TWAP_ABI,
3096
3097
  ne as TimeUnit,
3097
3098
  Ne as analytics,
3098
3099
  Sn as buildRePermitOrderData,