@1delta/margin-fetcher 5.0.67 → 5.0.68
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.d.ts +12 -1
- package/dist/index.js +680 -119
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PublicClient, Address, Hex } from 'viem';
|
|
2
2
|
import { Lender } from '@1delta/lender-registry';
|
|
3
3
|
export { hasCrossMarginRisk, isAaveType, isAaveV2Type, isAaveV32Type, isAaveV3Type, isCompoundV3, isCompoundV3Type, isInit, isMorphoType, isMultiMarket, isYLDR } from '@1delta/lender-registry';
|
|
4
|
-
import { DebitData, LenderDebitData, LstAcceptedInput } from '@1delta/calldata-sdk';
|
|
4
|
+
import { DebitData, LenderDebitData, LendingMode as LendingMode$1, LstAcceptedInput } from '@1delta/calldata-sdk';
|
|
5
5
|
import { RelayProxyConfig } from '@1delta/proxy-fetch';
|
|
6
6
|
import { TermMarketConfig, LiquityBranchConfig, LiquityConfigChain, RiverMarketConfig, RiverConfigChain, RiverChainData, InverseMarketConfig, InverseConfigChain, InverseChainData, FraxlendConfigChain, ResupplyConfigChain, CoolerConfigChain, LlamaLendMarketConfig, LlamaLendConfigChain, LlamaLendChainData, UsddMarketConfig, UsddConfigChain, UsddChainData, FrankencoinMarketConfig, FrankencoinConfigChain, FrankencoinChainData, TellerPoolConfig, MorphoTypeVaultEntry } from '@1delta/data-sdk';
|
|
7
7
|
export { MorphoLensAbi } from '@1delta/abis';
|
|
@@ -1632,6 +1632,17 @@ declare function needsLenderApproval(params: {
|
|
|
1632
1632
|
aaveV4Spoke?: string;
|
|
1633
1633
|
/** Silo: check the protected share token instead of collateral */
|
|
1634
1634
|
isProtected?: boolean;
|
|
1635
|
+
/**
|
|
1636
|
+
* This is a BORROW delegation check — resolve against the entry the borrow
|
|
1637
|
+
* grant actually lives on (Silo: debt share token; Aave: variable/stable
|
|
1638
|
+
* debt token's `borrowAllowance`; Venus: the comptroller's `updateDelegate`
|
|
1639
|
+
* boolean) instead of the withdraw-side key. Without it a borrow check
|
|
1640
|
+
* reads a withdraw allowance that is 0 for a borrow-only grant and the
|
|
1641
|
+
* permission is re-emitted forever.
|
|
1642
|
+
*/
|
|
1643
|
+
isBorrow?: boolean;
|
|
1644
|
+
/** Aave borrow checks: which debt token to resolve (default VARIABLE). */
|
|
1645
|
+
mode?: LendingMode$1;
|
|
1635
1646
|
}): boolean;
|
|
1636
1647
|
/**
|
|
1637
1648
|
* Checks whether an ERC20 or Permit2 token approval is needed for
|