1- import { Cluster } from "@solana/web3.js" ;
1+ import { Cluster , PublicKey } from "@solana/web3.js" ;
22import BigNumber from "bignumber.js" ;
33import { ReserveType } from "./utils" ;
4+ import BN from "bn.js" ;
45
56export type PoolMetadataCoreType = {
67 name : string | null ;
@@ -20,7 +21,7 @@ export type EnvironmentType = Cluster | "production" | "beta";
2021export 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
4546export 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