@kamino-finance/klend-sdk
Version:
Typescript SDK for interacting with the Kamino Lending (klend) protocol
59 lines • 2.15 kB
TypeScript
import Decimal from 'decimal.js';
import { PublicKey } from '@solana/web3.js';
import BN from 'bn.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 declare const SECONDS_PER_YEAR: number;
export declare const TOTAL_NUMBER_OF_IDS_TO_CHECK = 25;
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_v3.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;
export declare const SOL_DECIMALS = 9;
export declare const MAINNET_BETA_CHAIN_ID = 101;
export declare const BORROWS_LIMIT = 5;
export declare const DEPOSITS_LIMIT = 8;
export declare const DEFAULT_MAX_COMPUTE_UNITS = 1400000;
/**
* Padding for safe interest calculations
*/
export declare const SOL_PADDING_FOR_INTEREST: BN;
/**
* Minimum initial deposit required for the initialization of a reserve
*/
export declare const MIN_INITIAL_DEPOSIT = 100000;
export declare const MIN_VAULT_INITIAL_DEPOSIT = 1000000000;
export declare const VAULT_INITIAL_DEPOSIT = 1000;
//# sourceMappingURL=constants.d.ts.map