@kamino-finance/klend-sdk
Version:
Typescript SDK for interacting with the Kamino Lending (klend) protocol
51 lines • 1.69 kB
TypeScript
import Decimal from 'decimal.js';
import { PublicKey } from '@solana/web3.js';
export declare const STAGING_PROGRAM_ID: PublicKey;
export declare const DEFAULT_KLEND_PROGRAM_ID: string;
export declare const U64_MAX = "18446744073709551615";
export declare const INITIAL_COLLATERAL_RATE: Decimal;
export type ENV = 'mainnet-beta' | 'devnet' | 'localnet';
export declare function isENV(value: any): value is ENV;
export declare function getApiEndpoint(programId: PublicKey): string;
export declare const CDN_ENDPOINT = "https://cdn.kamino.finance/kamino_lend_config_v2.json";
export declare const ONE_HUNDRED_PCT_IN_BPS = 10000;
export declare function getProgramId(env?: 'mainnet-beta' | 'staging'): PublicKey;
/**
* Number of slots per second
*/
export declare const SLOTS_PER_SECOND = 2;
/**
* Number of slots per minute
* 2 (slots per second) * 60 = 120
*/
export declare const SLOTS_PER_MINUTE: number;
/**
* Number of slots per hour
* 2 (slots per second) * 60 * 60 = 7200
*/
export declare const SLOTS_PER_HOUR: number;
/**
* Number of slots per day
* 2 (slots per second) * 60 * 60 * 24 = 172800
*/
export declare const SLOTS_PER_DAY: number;
/**
* Number of slots per year
* 2 (slots per second) * 60 * 60 * 24 * 365 = 63072000
*/
export declare const SLOTS_PER_YEAR: number;
/**
* Minimum bonus for autodeleverage liquidations in bps
*/
export declare const MIN_AUTODELEVERAGE_BONUS_BPS = 50;
/**
* WSOL Mint
*/
export declare const WRAPPED_SOL_MINT: PublicKey;
export declare const SOL_DECIMALS = 9;
/**
* USDC Mint
*/
export declare const USDC_MAINNET_MINT: PublicKey;
export declare const MAINNET_BETA_CHAIN_ID = 101;
//# sourceMappingURL=constants.d.ts.map