@1delta/margin-fetcher 5.0.134 → 5.0.135

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/index.js CHANGED
@@ -68596,10 +68596,36 @@ var ERC4626_SHARE_RATE_PRICE_SPECS = [
68596
68596
  }
68597
68597
  }
68598
68598
  ];
68599
+ var yearnV3 = (tag, share, underlying, decimals) => ({
68600
+ tag,
68601
+ chainId: "1",
68602
+ share,
68603
+ shareDecimals: decimals,
68604
+ underlying,
68605
+ underlyingDecimals: decimals,
68606
+ read: {
68607
+ kind: "assets",
68608
+ address: share,
68609
+ fn: "convertToAssets",
68610
+ arg: 10n ** BigInt(decimals)
68611
+ }
68612
+ });
68613
+ var YEARN_V3_SHARE_RATE_PRICE_SPECS = [
68614
+ yearnV3("yvUSD", "0x696d02db93291651ed510704c9b286841d506987", USDC_1, 6),
68615
+ yearnV3(
68616
+ "yvcrvUSD-2",
68617
+ "0xbf319ddc2edc1eb6fdf9910e39b37be221c8805f",
68618
+ "0xf939e0a03fb07f59a73314e73794be0e57ac1b4e",
68619
+ // crvUSD
68620
+ 18
68621
+ ),
68622
+ yearnV3("yvWETH-2", "0xac37729b76db6438ce62042ae1270ee574ca7571", WETH_1, 18)
68623
+ ];
68599
68624
  var SHARE_RATE_PRICE_SPECS = [
68600
68625
  ...[...VAULT_SHARE_RATE_SPECS, ...EXPIRED_W_SAVINGS_SPECS].filter((s) => !(s.tag in NOT_PRICED)).map(priceSpecFromRateSpec),
68601
68626
  ...MELLOW_SHARE_RATE_PRICE_SPECS,
68602
- ...ERC4626_SHARE_RATE_PRICE_SPECS
68627
+ ...ERC4626_SHARE_RATE_PRICE_SPECS,
68628
+ ...YEARN_V3_SHARE_RATE_PRICE_SPECS
68603
68629
  ];
68604
68630
  var ABI3 = parseAbi([
68605
68631
  "function getReport(address asset) view returns (uint224 priceD18, uint32 timestamp, bool isSuspicious)"
@@ -96256,7 +96282,9 @@ var USER_SET_RATE_PREFIXES = [
96256
96282
  "QUILL",
96257
96283
  "ENOSYS_LOANS",
96258
96284
  "SONETA",
96259
- "EBISU"
96285
+ "EBISU",
96286
+ // Flex troves: each borrower sets its own rate within the market's range
96287
+ "FLEX"
96260
96288
  ];
96261
96289
  function collateralSymbolsByVenue(rows, fallbackChainId) {
96262
96290
  const byVenue = /* @__PURE__ */ new Map();