@kamino-finance/klend-sdk 5.11.5 → 5.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  import Decimal from 'decimal.js';
2
2
  import { PROGRAM_ID } from '../idl_codegen/programId';
3
3
  import { PublicKey } from '@solana/web3.js';
4
+ import BN from 'bn.js';
4
5
 
5
6
  export const STAGING_PROGRAM_ID: PublicKey = new PublicKey('SLendK7ySfcEzyaFqy93gDnD3RtrpXJcnRwb6zFHJSh');
6
7
  export const DEFAULT_KLEND_PROGRAM_ID: string = PROGRAM_ID.toString();
@@ -81,6 +82,11 @@ export const DEPOSITS_LIMIT = 8;
81
82
 
82
83
  export const DEFAULT_MAX_COMPUTE_UNITS = 1_400_000;
83
84
 
85
+ /**
86
+ * Padding for safe interest calculations
87
+ */
88
+ export const SOL_PADDING_FOR_INTEREST = new BN('1000000');
89
+
84
90
  /**
85
91
  * Minimum initial deposit required for the initialization of a reserve
86
92
  */