@descent-protocol/sdk
Version:
A Typescript library for interacting with the Descent Protocol
29 lines (28 loc) • 1.04 kB
TypeScript
import { AddressLike, BytesLike, Signer } from 'ethers';
import { Internal } from '../libs/internal';
import { ICollateral } from '../types';
export type StaticcallStruct = {
target: AddressLike;
callData: BytesLike;
};
declare const getVault: (collateral: ICollateral, owner: string, chainId: string, internal: Internal, signer: Signer) => Promise<{
healthFactor: string;
depositedCollateral: any;
collateralLocked: bigint;
borrowedAmount: any;
accruedFees: any;
currentCollateralRatio: any;
availableCollateral: any;
availablexNGN: any;
}>;
declare const checkVaultSetupStatus: (owner: string, chainId: string, signer: Signer) => Promise<any>;
declare const getCollateralData: (collateral: ICollateral, chainId: string, signer: Signer) => Promise<{
totalDepositedCollateral: any;
totalBorrowedAmount: any;
liquidationThreshold: any;
debtCeiling: any;
rate: any;
minDeposit: any;
collateralPrice: any;
}>;
export { getVault, getCollateralData, checkVaultSetupStatus };