@kamino-finance/klend-sdk
Version:
Typescript SDK for interacting with the Kamino Lending (klend) protocol
54 lines • 1.97 kB
TypeScript
import Decimal from 'decimal.js';
import { Address } from '@solana/kit';
import BN from 'bn.js';
export declare const STAGING_PROGRAM_ID: Address;
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: Address, apiBaseUrl?: string): string;
export declare const CDN_ENDPOINT = "https://cdn.kamino.finance";
export declare const ONE_HUNDRED_PCT_IN_BPS = 10000;
export declare function getProgramId(env?: 'mainnet-beta' | 'staging'): Address;
/**
* 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;
export declare const SOL_DECIMALS = 9;
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