Skip to content

Commit

Permalink
add type
Browse files Browse the repository at this point in the history
  • Loading branch information
0xodia committed Sep 9, 2024
1 parent dc4ec9a commit dd9d24a
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions solend-sdk/src/core/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Cluster } from "@solana/web3.js";
import { Cluster, PublicKey } from "@solana/web3.js";
import BigNumber from "bignumber.js";
import { ReserveType } from "./utils";
import BN from "bn.js";

export type PoolMetadataCoreType = {
name: string | null;
Expand All @@ -20,7 +21,7 @@ export type EnvironmentType = Cluster | "production" | "beta";
export type TokenMetadata = {
[mintAddress: string]: {
symbol: string;
logoUri: string | null;
logoUri: string | undefined;
decimals: number;
};
};
Expand All @@ -43,3 +44,33 @@ export type WalletAssetType = {
};

export type WalletType = Array<WalletAssetType>;

export type InputReserveConfigParams = {
optimalUtilizationRate: number;
maxUtilizationRate: number;
loanToValueRatio: number;
liquidationBonus: number;
liquidationThreshold: number;
minBorrowRate: number;
optimalBorrowRate: number;
maxBorrowRate: number;
superMaxBorrowRate: BN;
fees: {
borrowFeeWad: BN;
flashLoanFeeWad: BN;
hostFeePercentage: number;
};
depositLimit: BN;
borrowLimit: BN;
feeReceiver: PublicKey;
protocolLiquidationFee: number;
protocolTakeRate: number;
addedBorrowWeightBPS: BN;
reserveType: number;
maxLiquidationBonus: number;
maxLiquidationThreshold: number;
scaledPriceOffsetBPS: BN;
extraOracle?: PublicKey;
attributedBorrowLimitOpen: BN;
attributedBorrowLimitClose: BN;
}

0 comments on commit dd9d24a

Please sign in to comment.