Skip to content

Commit dd9d24a

Browse files
committed
add type
1 parent dc4ec9a commit dd9d24a

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

solend-sdk/src/core/types.ts

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { Cluster } from "@solana/web3.js";
1+
import { Cluster, PublicKey } from "@solana/web3.js";
22
import BigNumber from "bignumber.js";
33
import { ReserveType } from "./utils";
4+
import BN from "bn.js";
45

56
export type PoolMetadataCoreType = {
67
name: string | null;
@@ -20,7 +21,7 @@ export type EnvironmentType = Cluster | "production" | "beta";
2021
export type TokenMetadata = {
2122
[mintAddress: string]: {
2223
symbol: string;
23-
logoUri: string | null;
24+
logoUri: string | undefined;
2425
decimals: number;
2526
};
2627
};
@@ -43,3 +44,33 @@ export type WalletAssetType = {
4344
};
4445

4546
export type WalletType = Array<WalletAssetType>;
47+
48+
export type InputReserveConfigParams = {
49+
optimalUtilizationRate: number;
50+
maxUtilizationRate: number;
51+
loanToValueRatio: number;
52+
liquidationBonus: number;
53+
liquidationThreshold: number;
54+
minBorrowRate: number;
55+
optimalBorrowRate: number;
56+
maxBorrowRate: number;
57+
superMaxBorrowRate: BN;
58+
fees: {
59+
borrowFeeWad: BN;
60+
flashLoanFeeWad: BN;
61+
hostFeePercentage: number;
62+
};
63+
depositLimit: BN;
64+
borrowLimit: BN;
65+
feeReceiver: PublicKey;
66+
protocolLiquidationFee: number;
67+
protocolTakeRate: number;
68+
addedBorrowWeightBPS: BN;
69+
reserveType: number;
70+
maxLiquidationBonus: number;
71+
maxLiquidationThreshold: number;
72+
scaledPriceOffsetBPS: BN;
73+
extraOracle?: PublicKey;
74+
attributedBorrowLimitOpen: BN;
75+
attributedBorrowLimitClose: BN;
76+
}

0 commit comments

Comments
 (0)