@1delta/margin-fetcher 0.0.408 → 0.0.409

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
@@ -23706,6 +23706,12 @@ function convertTermMaxMarketsToResponse(raw, chainId, prices = {}, _additionalY
23706
23706
  // up as a term product.
23707
23707
  stableBorrowRate: borrowAprPct,
23708
23708
  intrinsicYield: 0,
23709
+ // One-off GT-mint fee as a PERCENT of the amount borrowed, charged once at
23710
+ // borrow time (`issueFee = debt · mintGtFeeRatio / 1e8`). The canonical
23711
+ // top-level field — `fixedTerm.fees.originationFeePercent` alone is not
23712
+ // read by the cost math, which is why this fee was never folded into
23713
+ // borrow cost downstream. NOT an APR: never add it to a rate.
23714
+ originationFee: originationFeePercent || void 0,
23709
23715
  rewards: void 0,
23710
23716
  decimals: config.debtDecimals,
23711
23717
  config: {
@@ -23725,9 +23731,18 @@ function convertTermMaxMarketsToResponse(raw, chainId, prices = {}, _additionalY
23725
23731
  borrowingEnabled: !matured && borrowLiquidity > 0,
23726
23732
  depositsEnabled: !matured,
23727
23733
  hasStable: false,
23728
- // Borrowing IS fixed-term (see `terms` + `fixedTerm`), but it is real
23729
- // borrowing do NOT set this, or borrowable-only filters hide the market.
23730
- variableBorrowDisabled: false,
23734
+ // TermMax has NO variable rate at all — `variableBorrowRate` above is only
23735
+ // ever a MIRROR of the best term APR. When no order quotes the borrow side
23736
+ // the mirror is 0, and a consumer that reads it as a floating rate sees a
23737
+ // FREE borrow and levers against it (observed: 9 of 15 chain-1 pairs
23738
+ // sorting to the top of the optimizer at 128% "net APR").
23739
+ //
23740
+ // Flag it, exactly as Term Finance and Teller do — a `variableBorrowRate`
23741
+ // of 0 is NOT a free borrow. Consumers read the `terms[]` card (and
23742
+ // `fixedTerm`) instead. Deliberately unconditional rather than
23743
+ // `borrowAprPct === 0`: the semantic is "this lender has no variable
23744
+ // product", which does not change with book depth.
23745
+ variableBorrowDisabled: true,
23731
23746
  isActive: true,
23732
23747
  isFrozen: false
23733
23748
  };