@pyron-finance/pyron-client 2.8.2 → 2.9.0

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.
package/dist/index.d.cts CHANGED
@@ -4,8 +4,8 @@ import { TransactionResult } from '@fogo/sessions-sdk';
4
4
  import * as _solana_web3_js from '@solana/web3.js';
5
5
  import { PublicKey, TransactionInstruction, VersionedTransaction, Blockhash, Transaction, AddressLookupTableAccount, Connection, AccountMeta, Commitment, TransactionSignature, Signer, TransactionError, ConfirmOptions, SimulatedTransactionResponse, Keypair, SendOptions } from '@solana/web3.js';
6
6
  import { Storage } from 'unstorage';
7
- import { B as BankVaultType, a as BankExtendedMetadata, L as LendrIdlType, P as Program, b as BankMetadataMap, T as TLogger, A as Amount, c as LendrProgram, I as InstructionsWrapper, S as SolanaTransaction, d as TransactionOptions, E as ExtendedTransaction, e as ExtendedTransactionProperties, f as ExtendedV0Transaction, g as TransactionBroadcastType, W as WrappedI80F48, h as BankMetadata, i as IMetadataFetcher, j as Wallet, k as LendrConfig, l as BanksExtendedMetadataOverrideMap, M as MetadataService, m as BankExtendedMetadataMap, n as AccountType$1, o as LendingAccountDepositOrRepayWithSessionAccounts, p as LendingAccountWithdrawOrBorrowWithSessionAccounts, q as Environment } from './bank-metadata-C06TNYXi.cjs';
8
- export { v as BankAddress, r as LENDR_IDL, w as LogFn, u as MetadataServiceProps, t as TMetadata, s as metadataSchema } from './bank-metadata-C06TNYXi.cjs';
7
+ import { B as BankVaultType, a as BankExtendedMetadata, L as LendrIdlType, P as Program, b as BankMetadataMap, T as TLogger, A as Amount, c as LendrProgram, I as InstructionsWrapper, S as SolanaTransaction, d as TransactionOptions, E as ExtendedTransaction, e as ExtendedTransactionProperties, f as ExtendedV0Transaction, g as TransactionBroadcastType, W as WrappedI80F48, h as BankMetadata, i as IMetadataFetcher, j as Wallet, k as LendrConfig, l as BanksExtendedMetadataOverrideMap, M as MetadataService, m as BankExtendedMetadataMap, n as AccountType$1, o as LendingAccountDepositOrRepayWithSessionAccounts, p as LendingAccountWithdrawOrBorrowWithSessionAccounts, q as Environment } from './bank-metadata-DXKlJh78.cjs';
8
+ export { v as BankAddress, r as LENDR_IDL, w as LogFn, u as MetadataServiceProps, t as TMetadata, s as metadataSchema } from './bank-metadata-DXKlJh78.cjs';
9
9
  import BN from 'bn.js';
10
10
  import BigNumber from 'bignumber.js';
11
11
  import 'zod';
@@ -74,6 +74,11 @@ type PythPushFeedIdMap = Map<string, {
74
74
  shardId?: number;
75
75
  }>;
76
76
  declare function buildFeedIdMap(bankConfigs: BankConfigRaw[], connection: Connection): Promise<PythPushFeedIdMap>;
77
+ /**
78
+ * Gets the Fogo stake pool address from a bank config if it uses FogoStakePoolWithPythPush oracle setup.
79
+ * Returns null if the bank doesn't use this oracle type or if the stake pool address is not set.
80
+ */
81
+ declare function getFogoStakePoolAddress(bankConfig: BankConfig): PublicKey | null;
77
82
  declare function findOracleKey(bankConfig: BankConfig, feedIdMap?: PythPushFeedIdMap): {
78
83
  oracleKey: PublicKey;
79
84
  shardId?: number;
@@ -1250,7 +1255,8 @@ declare enum OracleSetup {
1250
1255
  StakedWithPythPush = "StakedWithPythPush",
1251
1256
  KaminoPythPush = "KaminoPythPush",
1252
1257
  KaminoSwitchboardPull = "KaminoSwitchboardPull",
1253
- Fixed = "Fixed"
1258
+ Fixed = "Fixed",
1259
+ FogoStakePoolWithPythPush = "FogoStakePoolWithPythPush"
1254
1260
  }
1255
1261
  declare enum AssetTag {
1256
1262
  DEFAULT = 0,
@@ -1575,6 +1581,8 @@ type OracleSetupRaw = {
1575
1581
  kaminoSwitchboardPull: {};
1576
1582
  } | {
1577
1583
  fixed: {};
1584
+ } | {
1585
+ fogoStakePoolWithPythPush: {};
1578
1586
  };
1579
1587
  interface OracleConfigOptRaw {
1580
1588
  setup: OracleSetupRaw;
@@ -1806,7 +1814,7 @@ declare function crankPythOracleIx(oracles: {
1806
1814
 
1807
1815
  declare function getPriceWithConfidence(oraclePrice: OraclePrice, weighted: boolean): PriceWithConfidence;
1808
1816
  declare function getPrice(oraclePrice: OraclePrice, priceBias?: PriceBias, weightedPrice?: boolean): BigNumber;
1809
- type SupportedOracleSetup = OracleSetup.PythLegacy | OracleSetup.PythPushOracle | OracleSetup.StakedWithPythPush | OracleSetup.SwitchboardV2 | OracleSetup.SwitchboardPull | OracleSetup.KaminoPythPush | OracleSetup.KaminoSwitchboardPull | OracleSetup.Fixed;
1817
+ type SupportedOracleSetup = OracleSetup.PythLegacy | OracleSetup.PythPushOracle | OracleSetup.StakedWithPythPush | OracleSetup.SwitchboardV2 | OracleSetup.SwitchboardPull | OracleSetup.KaminoPythPush | OracleSetup.KaminoSwitchboardPull | OracleSetup.Fixed | OracleSetup.FogoStakePoolWithPythPush;
1810
1818
  declare function isOracleSetupSupported(oracleSetup: OracleSetup): oracleSetup is SupportedOracleSetup;
1811
1819
  declare function parseOraclePriceData(oracleSetup: SupportedOracleSetup, rawData: Buffer, fixedPrice?: BigNumber, logger?: TLogger): OraclePrice;
1812
1820
 
@@ -2996,6 +3004,39 @@ remainingAccounts: AccountMeta[], args: {
2996
3004
  */
2997
3005
  seed?: BN;
2998
3006
  }): Promise<_solana_web3_js.TransactionInstruction>;
3007
+ /**
3008
+ * Creates an instruction to add a permissionless Fogo Stake Pool LST bank to a lending pool.
3009
+ * This is similar to the staked bank instruction but uses the Fogo Stake Pool program
3010
+ * and the FogoStakePoolWithPythPush oracle setup.
3011
+ *
3012
+ * @param ldProgram - The lendr program instance
3013
+ * @param accounts - The accounts required for this instruction
3014
+ * @param remainingAccounts - The remaining accounts required for oracle validation (pyth oracle)
3015
+ * @param args - Optional arguments for this instruction
3016
+ */
3017
+ declare function makePoolAddPermissionlessFogoStakePoolBankIx(ldProgram: LendrProgram, accounts: {
3018
+ stakedSettings: PublicKey;
3019
+ feePayer: PublicKey;
3020
+ bankMint: PublicKey;
3021
+ stakePool: PublicKey;
3022
+ lendrGroup?: PublicKey;
3023
+ /**
3024
+ * The token program to use for this instruction, defaults to the SPL token program
3025
+ */
3026
+ tokenProgram?: PublicKey;
3027
+ },
3028
+ /**
3029
+ * The remaining accounts required for this instruction. Should include:
3030
+ * - pythOracle: The pyth oracle key (non writable & non signer)
3031
+ */
3032
+ remainingAccounts: AccountMeta[], args: {
3033
+ /**
3034
+ * The seed to use for the bank account. Defaults to 0 (new BN(0)).
3035
+ * If the seed is not specified, the seed is set to 0, and the bank account
3036
+ * will be created at the address derived from the group, mint, and seed.
3037
+ */
3038
+ seed?: BN;
3039
+ }): Promise<_solana_web3_js.TransactionInstruction>;
2999
3040
  declare function makePoolAddBankIx(ldProgram: LendrProgram, accounts: {
3000
3041
  lendrGroup: PublicKey;
3001
3042
  feePayer: PublicKey;
@@ -3065,6 +3106,7 @@ declare const instructions: {
3065
3106
  makeGroupInitIx: typeof makeGroupInitIx;
3066
3107
  makeCloseAccountIx: typeof makeCloseAccountIx;
3067
3108
  makePoolAddPermissionlessStakedBankIx: typeof makePoolAddPermissionlessStakedBankIx;
3109
+ makePoolAddPermissionlessFogoStakePoolBankIx: typeof makePoolAddPermissionlessFogoStakePoolBankIx;
3068
3110
  makeLendingPoolConfigureBankOracleIx: typeof makeLendingPoolConfigureBankOracleIx;
3069
3111
  makePulseHealthIx: typeof makePulseHealthIx;
3070
3112
  makeLendingAccountSettleEmissionsIx: typeof makeLendingAccountSettleEmissionsIx;
@@ -3118,6 +3160,7 @@ declare const SYSVAR_RENT_ID: PublicKey;
3118
3160
  declare const SYSVAR_CLOCK_ID: PublicKey;
3119
3161
  declare const SYSVAR_STAKE_HISTORY_ID: PublicKey;
3120
3162
  declare const STAKE_CONFIG_ID: PublicKey;
3163
+ declare const FOGO_STAKE_POOL_PROGRAM_ID: PublicKey;
3121
3164
 
3122
3165
  declare const WSOL_MINT: PublicKey;
3123
3166
  declare const WSOL_EXTENDED_METADATA: BankExtendedMetadata;
@@ -3166,6 +3209,44 @@ declare function parseTransactionError(error: any, ldrProgramId: PublicKey): {
3166
3209
  };
3167
3210
  declare function parseErrorFromLogs(logs: string[], ldrProgramId: PublicKey): ProgramErrorWithDescription | null;
3168
3211
 
3212
+ declare const MIN_STAKE_POOL_SIZE = 539;
3213
+ declare const MAX_STAKE_POOL_SIZE = 700;
3214
+ interface FogoStakePoolData {
3215
+ accountType: number;
3216
+ poolMint: PublicKey;
3217
+ totalLamports: bigint;
3218
+ poolTokenSupply: bigint;
3219
+ lastUpdateEpoch: bigint;
3220
+ }
3221
+ /**
3222
+ * Parses a Fogo Stake Pool account buffer.
3223
+ *
3224
+ * Only extracts fields needed for price calculation:
3225
+ * - total_lamports
3226
+ * - pool_token_supply
3227
+ * - last_update_epoch (for staleness check)
3228
+ * - pool_mint (for validation)
3229
+ */
3230
+ declare function parseFogoStakePool(data: Buffer): FogoStakePoolData;
3231
+ /**
3232
+ * Calculates the exchange rate for a Fogo Stake Pool.
3233
+ *
3234
+ * Exchange rate = total_lamports / pool_token_supply
3235
+ *
3236
+ * Unlike spl-single-pool, Fogo does NOT subtract 1 SOL reserve.
3237
+ * The rate represents how many lamports each LST token is worth.
3238
+ */
3239
+ declare function calculateFogoExchangeRate(stakePool: FogoStakePoolData): number;
3240
+ /**
3241
+ * Validates a Fogo Stake Pool's data integrity.
3242
+ *
3243
+ * Checks:
3244
+ * - Exchange rate is >= 1.0 (LST always worth >= underlying)
3245
+ * - Exchange rate is < 3.0 (200%+ rewards would be extraordinary)
3246
+ * - Pool has non-zero supply and lamports
3247
+ */
3248
+ declare function validateFogoStakePool(stakePool: FogoStakePoolData): boolean;
3249
+
3169
3250
  /** Number of slots that can pass before a publisher's price is no longer included in the aggregate. */
3170
3251
  declare const MAX_SLOT_DIFFERENCE = 25;
3171
3252
  interface Price {
@@ -3482,7 +3563,10 @@ type index_CrossbarSimulatePayload = CrossbarSimulatePayload;
3482
3563
  type index_CurrentResult = CurrentResult;
3483
3564
  type index_Ema = Ema;
3484
3565
  type index_FeedResponse = FeedResponse;
3566
+ type index_FogoStakePoolData = FogoStakePoolData;
3485
3567
  declare const index_MAX_SLOT_DIFFERENCE: typeof MAX_SLOT_DIFFERENCE;
3568
+ declare const index_MAX_STAKE_POOL_SIZE: typeof MAX_STAKE_POOL_SIZE;
3569
+ declare const index_MIN_STAKE_POOL_SIZE: typeof MIN_STAKE_POOL_SIZE;
3486
3570
  type index_OracleSubmission = OracleSubmission;
3487
3571
  type index_Price = Price;
3488
3572
  type index_PriceComponent = PriceComponent;
@@ -3495,6 +3579,7 @@ type index_PullFeedAccountData = PullFeedAccountData;
3495
3579
  declare const index_SWITCHBOARD_ONDEMANDE_PRICE_PRECISION: typeof SWITCHBOARD_ONDEMANDE_PRICE_PRECISION;
3496
3580
  declare const index_SinglePoolInstruction: typeof SinglePoolInstruction;
3497
3581
  type index_StakeAccount = StakeAccount;
3582
+ declare const index_calculateFogoExchangeRate: typeof calculateFogoExchangeRate;
3498
3583
  declare const index_createAccountIx: typeof createAccountIx;
3499
3584
  declare const index_createPoolOnrampIx: typeof createPoolOnrampIx;
3500
3585
  declare const index_decodeSwitchboardPullFeedData: typeof decodeSwitchboardPullFeedData;
@@ -3511,12 +3596,14 @@ declare const index_getStakeAccount: typeof getStakeAccount;
3511
3596
  declare const index_getSwitchboardProgram: typeof getSwitchboardProgram;
3512
3597
  declare const index_initializeStakedPoolIxs: typeof initializeStakedPoolIxs;
3513
3598
  declare const index_initializeStakedPoolTx: typeof initializeStakedPoolTx;
3599
+ declare const index_parseFogoStakePool: typeof parseFogoStakePool;
3514
3600
  declare const index_parsePriceData: typeof parsePriceData;
3515
3601
  declare const index_parsePriceInfo: typeof parsePriceInfo;
3516
3602
  declare const index_replenishPoolIx: typeof replenishPoolIx;
3517
3603
  declare const index_switchboardAccountCoder: typeof switchboardAccountCoder;
3604
+ declare const index_validateFogoStakePool: typeof validateFogoStakePool;
3518
3605
  declare namespace index {
3519
- export { index_AccountType as AccountType, index_AggregatorAccount as AggregatorAccount, index_AggregatorAccountData as AggregatorAccountData, type index_Base as Base, index_CorpAction as CorpAction, type index_CrossbarSimulatePayload as CrossbarSimulatePayload, type index_CurrentResult as CurrentResult, type index_Ema as Ema, type index_FeedResponse as FeedResponse, index_MAX_SLOT_DIFFERENCE as MAX_SLOT_DIFFERENCE, type index_OracleSubmission as OracleSubmission, type index_Price as Price, type index_PriceComponent as PriceComponent, type index_PriceData as PriceData, index_PriceStatus as PriceStatus, index_PriceType as PriceType, type index_PullFeedAccountData as PullFeedAccountData, index_SWITCHBOARD_ONDEMANDE_PRICE_PRECISION as SWITCHBOARD_ONDEMANDE_PRICE_PRECISION, index_SinglePoolInstruction as SinglePoolInstruction, type index_StakeAccount as StakeAccount, index_createAccountIx as createAccountIx, index_createPoolOnrampIx as createPoolOnrampIx, index_decodeSwitchboardPullFeedData as decodeSwitchboardPullFeedData, index_findMplMetadataAddress as findMplMetadataAddress, index_findPoolAddress as findPoolAddress, index_findPoolMintAddress as findPoolMintAddress, index_findPoolMintAddressByVoteAccount as findPoolMintAddressByVoteAccount, index_findPoolMintAuthorityAddress as findPoolMintAuthorityAddress, index_findPoolMplAuthorityAddress as findPoolMplAuthorityAddress, index_findPoolOnRampAddress as findPoolOnRampAddress, index_findPoolStakeAddress as findPoolStakeAddress, index_findPoolStakeAuthorityAddress as findPoolStakeAuthorityAddress, index_getStakeAccount as getStakeAccount, index_getSwitchboardProgram as getSwitchboardProgram, index_initializeStakedPoolIxs as initializeStakedPoolIxs, index_initializeStakedPoolTx as initializeStakedPoolTx, index_parsePriceData as parsePriceData, index_parsePriceInfo as parsePriceInfo, index_replenishPoolIx as replenishPoolIx, index_switchboardAccountCoder as switchboardAccountCoder };
3606
+ export { index_AccountType as AccountType, index_AggregatorAccount as AggregatorAccount, index_AggregatorAccountData as AggregatorAccountData, type index_Base as Base, index_CorpAction as CorpAction, type index_CrossbarSimulatePayload as CrossbarSimulatePayload, type index_CurrentResult as CurrentResult, type index_Ema as Ema, type index_FeedResponse as FeedResponse, type index_FogoStakePoolData as FogoStakePoolData, index_MAX_SLOT_DIFFERENCE as MAX_SLOT_DIFFERENCE, index_MAX_STAKE_POOL_SIZE as MAX_STAKE_POOL_SIZE, index_MIN_STAKE_POOL_SIZE as MIN_STAKE_POOL_SIZE, type index_OracleSubmission as OracleSubmission, type index_Price as Price, type index_PriceComponent as PriceComponent, type index_PriceData as PriceData, index_PriceStatus as PriceStatus, index_PriceType as PriceType, type index_PullFeedAccountData as PullFeedAccountData, index_SWITCHBOARD_ONDEMANDE_PRICE_PRECISION as SWITCHBOARD_ONDEMANDE_PRICE_PRECISION, index_SinglePoolInstruction as SinglePoolInstruction, type index_StakeAccount as StakeAccount, index_calculateFogoExchangeRate as calculateFogoExchangeRate, index_createAccountIx as createAccountIx, index_createPoolOnrampIx as createPoolOnrampIx, index_decodeSwitchboardPullFeedData as decodeSwitchboardPullFeedData, index_findMplMetadataAddress as findMplMetadataAddress, index_findPoolAddress as findPoolAddress, index_findPoolMintAddress as findPoolMintAddress, index_findPoolMintAddressByVoteAccount as findPoolMintAddressByVoteAccount, index_findPoolMintAuthorityAddress as findPoolMintAuthorityAddress, index_findPoolMplAuthorityAddress as findPoolMplAuthorityAddress, index_findPoolOnRampAddress as findPoolOnRampAddress, index_findPoolStakeAddress as findPoolStakeAddress, index_findPoolStakeAuthorityAddress as findPoolStakeAuthorityAddress, index_getStakeAccount as getStakeAccount, index_getSwitchboardProgram as getSwitchboardProgram, index_initializeStakedPoolIxs as initializeStakedPoolIxs, index_initializeStakedPoolTx as initializeStakedPoolTx, index_parseFogoStakePool as parseFogoStakePool, index_parsePriceData as parsePriceData, index_parsePriceInfo as parsePriceInfo, index_replenishPoolIx as replenishPoolIx, index_switchboardAccountCoder as switchboardAccountCoder, index_validateFogoStakePool as validateFogoStakePool };
3520
3607
  }
3521
3608
 
3522
- export { AccountFlags, AccountType$1 as AccountType, type ActionEmodeImpact, type ActiveEmodePair, type ActiveStakePoolMap, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceRaw, type BalanceType, type BalanceTypeDto, Bank, BankConfig, type BankConfigCompactRaw, type BankConfigDto, BankConfigFlag, type BankConfigOpt, type BankConfigOptRaw, type BankConfigRaw, type BankConfigRawDto, type BankConfigType, BankFlags, type BankMap, type BankMetadataRaw, type BankRaw, type BankRawDto, type BankType, type BankTypeDto, BankVaultType, type BroadcastMethodType, DEFAULT_CLUSTER, DEFAULT_COMMITMENT, DEFAULT_CONFIRM_OPTS, DEFAULT_ORACLE_MAX_AGE, DEFAULT_PROCESS_TX_OPTS, DEFAULT_PROCESS_TX_STRATEGY, DEFAULT_SEND_OPTS, DISABLED_FLAG, DUMMY_USDC_MINT, DataFetcher, DummyMetadataFetcher, type EmodeConfigRaw, type EmodeConfigRawDto, type EmodeEntry, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, type EmodeImpact, EmodeImpactStatus, type EmodePair, EmodeSettings, type EmodeSettingsDto, type EmodeSettingsRaw, type EmodeSettingsRawDto, type EmodeSettingsType, EmodeTag, Environment, FLASHLOAN_ENABLED_FLAG, type FetchGroupDataFn, type FetchRawBanksArgs, type FlashLoanArgs, type FlashloanActionResult, FogoMetadataFetcher, GROUP_PK, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, type HealthCacheRaw, HealthCacheSimulationError, type HealthCacheType, type HealthCacheTypeDto, IMetadataFetcher, type InterestRateConfig, type InterestRateConfigCompactRaw, type InterestRateConfigDto, type InterestRateConfigOpt, type InterestRateConfigOptRaw, type InterestRateConfigRaw, JUPITER_V6_PROGRAM, LENDR_PROGRAM, LENDR_SPONSORED_SHARD_ID, LST_MINT, LUT_PROGRAM_AUTHORITY_INDEX, LendingAccountDepositOrRepayWithSessionAccounts, LendingAccountWithdrawOrBorrowWithSessionAccounts, LendrAccount, type LendrAccountRaw, type LendrAccountType, type LendrAccountTypeDto, LendrAccountWrapper, LendrClient, type LendrClientFetchOptions, type LendrClientOptions, type LendrClientProps, LendrConfig, LendrGroup, type LendrGroupRaw, type LendrGroupType, type LendrGroupTypeDto, LendrIdlType, LendrProgram, LendrRequirementType, type LendrRequirementTypeRaw, type LoopProps, type LoopTxProps, MAX_ACCOUNT_KEYS, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeBorrowIxOpts, type MakeBorrowWithSessionIxOpts, type MakeDepositIxOpts, type MakeDepositWithSessionIxOpts, type MakeRepayIxOpts, type MakeRepayWithSessionIxOpts, type MakeWithdrawIxOpts, type MakeWithdrawWithSessionIxOpts, MetadataService, MetaplexMetadataFetcher, type MintData, type MintDataMap, OperationalState, type OperationalStateRaw, type OracleConfigOpt, type OracleConfigOptRaw, type OraclePrice, type OraclePriceDto, type OraclePriceMap, OracleSetup, type OracleSetupRaw, PDA_BANK_FEE_VAULT_AUTH_SEED, PDA_BANK_FEE_VAULT_SEED, PDA_BANK_INSURANCE_VAULT_AUTH_SEED, PDA_BANK_INSURANCE_VAULT_SEED, PDA_BANK_LIQUIDITY_VAULT_AUTH_SEED, PDA_BANK_LIQUIDITY_VAULT_SEED, PRIORITY_TX_SIZE, PROGRAM_ID, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, PriceBias, type PriceWithConfidence, type PriceWithConfidenceDto, type PriorityFees, ProcessTransactionError, ProcessTransactionErrorType, type ProcessTransactionOpts, type ProcessTransactionStrategy, type ProcessTransactionsClientOpts, type ProgramError, type ProgramErrorWithDescription, type PythPushFeedIdMap, type RatePoint, type RatePointDto, type RatePointRaw, type RepayWithCollateralProps, type RepayWithCollateralTxProps, RiskTier, type RiskTierRaw, SINGLE_POOL_PROGRAM_ID, SKIP_SIMULATION, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, type SimulationResult, type SpecificBroadcastMethod, type SpecificBroadcastMethodType, type StakeAccount$1 as StakeAccount, type StakePoolMevMap, type SupportedOracleSetup, TLogger, TRANSFER_ACCOUNT_AUTHORITY_FLAG, type TransactionBuilderResult, USDC_DECIMALS, USDC_MINT, type ValidatorRateData, type ValidatorStakeGroup, type ValidatorStakeGroupDto, WSOL_EXTENDED_METADATA, WSOL_MINT, accountFlagToBN, addOracleToBanksIx, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankRawToDto, buildFeedIdMap, computeAccountValue, computeActiveEmodePairs, computeAssetUsdValue, computeBalanceUsdValue, computeBaseInterestRate, computeClaimedEmissions, computeEmodeImpacts, computeFreeCollateral, computeFreeCollateralLegacy, computeHealthAccountMetas, computeHealthCheckAccounts, computeHealthComponents, computeHealthComponentsLegacy, computeHealthComponentsWithoutBiasLegacy, computeInterestRates, computeLiabilityUsdValue, computeLoopingParams, computeMaxLeverage, computeNetApy, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeTotalOutstandingEmissions, computeTvl, computeUsdValue, computeUtilizationRate, confirmTransaction, crankPythOracleIx, createLendrAccountTx, createUpdateFeedIx, decodeAccountRaw, decodeBankRaw, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToLendrAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, feedIdToString, fetchLendrAccountAddresses, fetchLendrAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchPythOracleData, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleData, findOracleKey, findPythPushOracleAddress, freezeBankConfigIx, getActiveAccountFlags, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getActiveStaleBanks, getAssetQuantity, getAssetShares, getAssetWeight, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getConfig, getConfigPda, getHealthCacheStatusDescription, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getPrice, getPriceFeedAccountForProgram, getPriceWithConfidence, getTotalAssetQuantity, getTotalLiabilityQuantity, getTreasuryPda, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, instructions, isOracleSetupSupported, isWeightedPrice, lendrAccountToDto, makeAddPermissionlessStakedBankIx, makeBundleTipIx, makePoolAddBankIx$1 as makePoolAddBankIx, makePoolConfigureBankIx$1 as makePoolConfigureBankIx, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx$1 as makePulseHealthIx, makeTxPriorityIx, makeUnwrapSolIx, makeVersionedTransaction, makeWrapSolIxs, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseErrorFromLogs, parseLendrAccountRaw, parseOperationalState, parseOracleSetup, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseTransactionError, processTransactions, serializeBankConfigOpt, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateTransactions, toBankConfigDto, toBankDto, toEmodeSettingsDto, toInterestRateConfigDto, validatorStakeGroupToDto, index as vendor };
3609
+ export { AccountFlags, AccountType$1 as AccountType, type ActionEmodeImpact, type ActiveEmodePair, type ActiveStakePoolMap, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceRaw, type BalanceType, type BalanceTypeDto, Bank, BankConfig, type BankConfigCompactRaw, type BankConfigDto, BankConfigFlag, type BankConfigOpt, type BankConfigOptRaw, type BankConfigRaw, type BankConfigRawDto, type BankConfigType, BankFlags, type BankMap, type BankMetadataRaw, type BankRaw, type BankRawDto, type BankType, type BankTypeDto, BankVaultType, type BroadcastMethodType, DEFAULT_CLUSTER, DEFAULT_COMMITMENT, DEFAULT_CONFIRM_OPTS, DEFAULT_ORACLE_MAX_AGE, DEFAULT_PROCESS_TX_OPTS, DEFAULT_PROCESS_TX_STRATEGY, DEFAULT_SEND_OPTS, DISABLED_FLAG, DUMMY_USDC_MINT, DataFetcher, DummyMetadataFetcher, type EmodeConfigRaw, type EmodeConfigRawDto, type EmodeEntry, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, type EmodeImpact, EmodeImpactStatus, type EmodePair, EmodeSettings, type EmodeSettingsDto, type EmodeSettingsRaw, type EmodeSettingsRawDto, type EmodeSettingsType, EmodeTag, Environment, FLASHLOAN_ENABLED_FLAG, FOGO_STAKE_POOL_PROGRAM_ID, type FetchGroupDataFn, type FetchRawBanksArgs, type FlashLoanArgs, type FlashloanActionResult, FogoMetadataFetcher, GROUP_PK, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, type HealthCacheRaw, HealthCacheSimulationError, type HealthCacheType, type HealthCacheTypeDto, IMetadataFetcher, type InterestRateConfig, type InterestRateConfigCompactRaw, type InterestRateConfigDto, type InterestRateConfigOpt, type InterestRateConfigOptRaw, type InterestRateConfigRaw, JUPITER_V6_PROGRAM, LENDR_PROGRAM, LENDR_SPONSORED_SHARD_ID, LST_MINT, LUT_PROGRAM_AUTHORITY_INDEX, LendingAccountDepositOrRepayWithSessionAccounts, LendingAccountWithdrawOrBorrowWithSessionAccounts, LendrAccount, type LendrAccountRaw, type LendrAccountType, type LendrAccountTypeDto, LendrAccountWrapper, LendrClient, type LendrClientFetchOptions, type LendrClientOptions, type LendrClientProps, LendrConfig, LendrGroup, type LendrGroupRaw, type LendrGroupType, type LendrGroupTypeDto, LendrIdlType, LendrProgram, LendrRequirementType, type LendrRequirementTypeRaw, type LoopProps, type LoopTxProps, MAX_ACCOUNT_KEYS, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeBorrowIxOpts, type MakeBorrowWithSessionIxOpts, type MakeDepositIxOpts, type MakeDepositWithSessionIxOpts, type MakeRepayIxOpts, type MakeRepayWithSessionIxOpts, type MakeWithdrawIxOpts, type MakeWithdrawWithSessionIxOpts, MetadataService, MetaplexMetadataFetcher, type MintData, type MintDataMap, OperationalState, type OperationalStateRaw, type OracleConfigOpt, type OracleConfigOptRaw, type OraclePrice, type OraclePriceDto, type OraclePriceMap, OracleSetup, type OracleSetupRaw, PDA_BANK_FEE_VAULT_AUTH_SEED, PDA_BANK_FEE_VAULT_SEED, PDA_BANK_INSURANCE_VAULT_AUTH_SEED, PDA_BANK_INSURANCE_VAULT_SEED, PDA_BANK_LIQUIDITY_VAULT_AUTH_SEED, PDA_BANK_LIQUIDITY_VAULT_SEED, PRIORITY_TX_SIZE, PROGRAM_ID, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, PriceBias, type PriceWithConfidence, type PriceWithConfidenceDto, type PriorityFees, ProcessTransactionError, ProcessTransactionErrorType, type ProcessTransactionOpts, type ProcessTransactionStrategy, type ProcessTransactionsClientOpts, type ProgramError, type ProgramErrorWithDescription, type PythPushFeedIdMap, type RatePoint, type RatePointDto, type RatePointRaw, type RepayWithCollateralProps, type RepayWithCollateralTxProps, RiskTier, type RiskTierRaw, SINGLE_POOL_PROGRAM_ID, SKIP_SIMULATION, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, type SimulationResult, type SpecificBroadcastMethod, type SpecificBroadcastMethodType, type StakeAccount$1 as StakeAccount, type StakePoolMevMap, type SupportedOracleSetup, TLogger, TRANSFER_ACCOUNT_AUTHORITY_FLAG, type TransactionBuilderResult, USDC_DECIMALS, USDC_MINT, type ValidatorRateData, type ValidatorStakeGroup, type ValidatorStakeGroupDto, WSOL_EXTENDED_METADATA, WSOL_MINT, accountFlagToBN, addOracleToBanksIx, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankRawToDto, buildFeedIdMap, computeAccountValue, computeActiveEmodePairs, computeAssetUsdValue, computeBalanceUsdValue, computeBaseInterestRate, computeClaimedEmissions, computeEmodeImpacts, computeFreeCollateral, computeFreeCollateralLegacy, computeHealthAccountMetas, computeHealthCheckAccounts, computeHealthComponents, computeHealthComponentsLegacy, computeHealthComponentsWithoutBiasLegacy, computeInterestRates, computeLiabilityUsdValue, computeLoopingParams, computeMaxLeverage, computeNetApy, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeTotalOutstandingEmissions, computeTvl, computeUsdValue, computeUtilizationRate, confirmTransaction, crankPythOracleIx, createLendrAccountTx, createUpdateFeedIx, decodeAccountRaw, decodeBankRaw, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToLendrAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, feedIdToString, fetchLendrAccountAddresses, fetchLendrAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchPythOracleData, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleData, findOracleKey, findPythPushOracleAddress, freezeBankConfigIx, getActiveAccountFlags, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getActiveStaleBanks, getAssetQuantity, getAssetShares, getAssetWeight, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getConfig, getConfigPda, getFogoStakePoolAddress, getHealthCacheStatusDescription, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getPrice, getPriceFeedAccountForProgram, getPriceWithConfidence, getTotalAssetQuantity, getTotalLiabilityQuantity, getTreasuryPda, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, instructions, isOracleSetupSupported, isWeightedPrice, lendrAccountToDto, makeAddPermissionlessStakedBankIx, makeBundleTipIx, makePoolAddBankIx$1 as makePoolAddBankIx, makePoolConfigureBankIx$1 as makePoolConfigureBankIx, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx$1 as makePulseHealthIx, makeTxPriorityIx, makeUnwrapSolIx, makeVersionedTransaction, makeWrapSolIxs, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseErrorFromLogs, parseLendrAccountRaw, parseOperationalState, parseOracleSetup, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseTransactionError, processTransactions, serializeBankConfigOpt, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateTransactions, toBankConfigDto, toBankDto, toEmodeSettingsDto, toInterestRateConfigDto, validatorStakeGroupToDto, index as vendor };
package/dist/index.d.ts CHANGED
@@ -4,8 +4,8 @@ import { TransactionResult } from '@fogo/sessions-sdk';
4
4
  import * as _solana_web3_js from '@solana/web3.js';
5
5
  import { PublicKey, TransactionInstruction, VersionedTransaction, Blockhash, Transaction, AddressLookupTableAccount, Connection, AccountMeta, Commitment, TransactionSignature, Signer, TransactionError, ConfirmOptions, SimulatedTransactionResponse, Keypair, SendOptions } from '@solana/web3.js';
6
6
  import { Storage } from 'unstorage';
7
- import { B as BankVaultType, a as BankExtendedMetadata, L as LendrIdlType, P as Program, b as BankMetadataMap, T as TLogger, A as Amount, c as LendrProgram, I as InstructionsWrapper, S as SolanaTransaction, d as TransactionOptions, E as ExtendedTransaction, e as ExtendedTransactionProperties, f as ExtendedV0Transaction, g as TransactionBroadcastType, W as WrappedI80F48, h as BankMetadata, i as IMetadataFetcher, j as Wallet, k as LendrConfig, l as BanksExtendedMetadataOverrideMap, M as MetadataService, m as BankExtendedMetadataMap, n as AccountType$1, o as LendingAccountDepositOrRepayWithSessionAccounts, p as LendingAccountWithdrawOrBorrowWithSessionAccounts, q as Environment } from './bank-metadata-C06TNYXi.js';
8
- export { v as BankAddress, r as LENDR_IDL, w as LogFn, u as MetadataServiceProps, t as TMetadata, s as metadataSchema } from './bank-metadata-C06TNYXi.js';
7
+ import { B as BankVaultType, a as BankExtendedMetadata, L as LendrIdlType, P as Program, b as BankMetadataMap, T as TLogger, A as Amount, c as LendrProgram, I as InstructionsWrapper, S as SolanaTransaction, d as TransactionOptions, E as ExtendedTransaction, e as ExtendedTransactionProperties, f as ExtendedV0Transaction, g as TransactionBroadcastType, W as WrappedI80F48, h as BankMetadata, i as IMetadataFetcher, j as Wallet, k as LendrConfig, l as BanksExtendedMetadataOverrideMap, M as MetadataService, m as BankExtendedMetadataMap, n as AccountType$1, o as LendingAccountDepositOrRepayWithSessionAccounts, p as LendingAccountWithdrawOrBorrowWithSessionAccounts, q as Environment } from './bank-metadata-DXKlJh78.js';
8
+ export { v as BankAddress, r as LENDR_IDL, w as LogFn, u as MetadataServiceProps, t as TMetadata, s as metadataSchema } from './bank-metadata-DXKlJh78.js';
9
9
  import BN from 'bn.js';
10
10
  import BigNumber from 'bignumber.js';
11
11
  import 'zod';
@@ -74,6 +74,11 @@ type PythPushFeedIdMap = Map<string, {
74
74
  shardId?: number;
75
75
  }>;
76
76
  declare function buildFeedIdMap(bankConfigs: BankConfigRaw[], connection: Connection): Promise<PythPushFeedIdMap>;
77
+ /**
78
+ * Gets the Fogo stake pool address from a bank config if it uses FogoStakePoolWithPythPush oracle setup.
79
+ * Returns null if the bank doesn't use this oracle type or if the stake pool address is not set.
80
+ */
81
+ declare function getFogoStakePoolAddress(bankConfig: BankConfig): PublicKey | null;
77
82
  declare function findOracleKey(bankConfig: BankConfig, feedIdMap?: PythPushFeedIdMap): {
78
83
  oracleKey: PublicKey;
79
84
  shardId?: number;
@@ -1250,7 +1255,8 @@ declare enum OracleSetup {
1250
1255
  StakedWithPythPush = "StakedWithPythPush",
1251
1256
  KaminoPythPush = "KaminoPythPush",
1252
1257
  KaminoSwitchboardPull = "KaminoSwitchboardPull",
1253
- Fixed = "Fixed"
1258
+ Fixed = "Fixed",
1259
+ FogoStakePoolWithPythPush = "FogoStakePoolWithPythPush"
1254
1260
  }
1255
1261
  declare enum AssetTag {
1256
1262
  DEFAULT = 0,
@@ -1575,6 +1581,8 @@ type OracleSetupRaw = {
1575
1581
  kaminoSwitchboardPull: {};
1576
1582
  } | {
1577
1583
  fixed: {};
1584
+ } | {
1585
+ fogoStakePoolWithPythPush: {};
1578
1586
  };
1579
1587
  interface OracleConfigOptRaw {
1580
1588
  setup: OracleSetupRaw;
@@ -1806,7 +1814,7 @@ declare function crankPythOracleIx(oracles: {
1806
1814
 
1807
1815
  declare function getPriceWithConfidence(oraclePrice: OraclePrice, weighted: boolean): PriceWithConfidence;
1808
1816
  declare function getPrice(oraclePrice: OraclePrice, priceBias?: PriceBias, weightedPrice?: boolean): BigNumber;
1809
- type SupportedOracleSetup = OracleSetup.PythLegacy | OracleSetup.PythPushOracle | OracleSetup.StakedWithPythPush | OracleSetup.SwitchboardV2 | OracleSetup.SwitchboardPull | OracleSetup.KaminoPythPush | OracleSetup.KaminoSwitchboardPull | OracleSetup.Fixed;
1817
+ type SupportedOracleSetup = OracleSetup.PythLegacy | OracleSetup.PythPushOracle | OracleSetup.StakedWithPythPush | OracleSetup.SwitchboardV2 | OracleSetup.SwitchboardPull | OracleSetup.KaminoPythPush | OracleSetup.KaminoSwitchboardPull | OracleSetup.Fixed | OracleSetup.FogoStakePoolWithPythPush;
1810
1818
  declare function isOracleSetupSupported(oracleSetup: OracleSetup): oracleSetup is SupportedOracleSetup;
1811
1819
  declare function parseOraclePriceData(oracleSetup: SupportedOracleSetup, rawData: Buffer, fixedPrice?: BigNumber, logger?: TLogger): OraclePrice;
1812
1820
 
@@ -2996,6 +3004,39 @@ remainingAccounts: AccountMeta[], args: {
2996
3004
  */
2997
3005
  seed?: BN;
2998
3006
  }): Promise<_solana_web3_js.TransactionInstruction>;
3007
+ /**
3008
+ * Creates an instruction to add a permissionless Fogo Stake Pool LST bank to a lending pool.
3009
+ * This is similar to the staked bank instruction but uses the Fogo Stake Pool program
3010
+ * and the FogoStakePoolWithPythPush oracle setup.
3011
+ *
3012
+ * @param ldProgram - The lendr program instance
3013
+ * @param accounts - The accounts required for this instruction
3014
+ * @param remainingAccounts - The remaining accounts required for oracle validation (pyth oracle)
3015
+ * @param args - Optional arguments for this instruction
3016
+ */
3017
+ declare function makePoolAddPermissionlessFogoStakePoolBankIx(ldProgram: LendrProgram, accounts: {
3018
+ stakedSettings: PublicKey;
3019
+ feePayer: PublicKey;
3020
+ bankMint: PublicKey;
3021
+ stakePool: PublicKey;
3022
+ lendrGroup?: PublicKey;
3023
+ /**
3024
+ * The token program to use for this instruction, defaults to the SPL token program
3025
+ */
3026
+ tokenProgram?: PublicKey;
3027
+ },
3028
+ /**
3029
+ * The remaining accounts required for this instruction. Should include:
3030
+ * - pythOracle: The pyth oracle key (non writable & non signer)
3031
+ */
3032
+ remainingAccounts: AccountMeta[], args: {
3033
+ /**
3034
+ * The seed to use for the bank account. Defaults to 0 (new BN(0)).
3035
+ * If the seed is not specified, the seed is set to 0, and the bank account
3036
+ * will be created at the address derived from the group, mint, and seed.
3037
+ */
3038
+ seed?: BN;
3039
+ }): Promise<_solana_web3_js.TransactionInstruction>;
2999
3040
  declare function makePoolAddBankIx(ldProgram: LendrProgram, accounts: {
3000
3041
  lendrGroup: PublicKey;
3001
3042
  feePayer: PublicKey;
@@ -3065,6 +3106,7 @@ declare const instructions: {
3065
3106
  makeGroupInitIx: typeof makeGroupInitIx;
3066
3107
  makeCloseAccountIx: typeof makeCloseAccountIx;
3067
3108
  makePoolAddPermissionlessStakedBankIx: typeof makePoolAddPermissionlessStakedBankIx;
3109
+ makePoolAddPermissionlessFogoStakePoolBankIx: typeof makePoolAddPermissionlessFogoStakePoolBankIx;
3068
3110
  makeLendingPoolConfigureBankOracleIx: typeof makeLendingPoolConfigureBankOracleIx;
3069
3111
  makePulseHealthIx: typeof makePulseHealthIx;
3070
3112
  makeLendingAccountSettleEmissionsIx: typeof makeLendingAccountSettleEmissionsIx;
@@ -3118,6 +3160,7 @@ declare const SYSVAR_RENT_ID: PublicKey;
3118
3160
  declare const SYSVAR_CLOCK_ID: PublicKey;
3119
3161
  declare const SYSVAR_STAKE_HISTORY_ID: PublicKey;
3120
3162
  declare const STAKE_CONFIG_ID: PublicKey;
3163
+ declare const FOGO_STAKE_POOL_PROGRAM_ID: PublicKey;
3121
3164
 
3122
3165
  declare const WSOL_MINT: PublicKey;
3123
3166
  declare const WSOL_EXTENDED_METADATA: BankExtendedMetadata;
@@ -3166,6 +3209,44 @@ declare function parseTransactionError(error: any, ldrProgramId: PublicKey): {
3166
3209
  };
3167
3210
  declare function parseErrorFromLogs(logs: string[], ldrProgramId: PublicKey): ProgramErrorWithDescription | null;
3168
3211
 
3212
+ declare const MIN_STAKE_POOL_SIZE = 539;
3213
+ declare const MAX_STAKE_POOL_SIZE = 700;
3214
+ interface FogoStakePoolData {
3215
+ accountType: number;
3216
+ poolMint: PublicKey;
3217
+ totalLamports: bigint;
3218
+ poolTokenSupply: bigint;
3219
+ lastUpdateEpoch: bigint;
3220
+ }
3221
+ /**
3222
+ * Parses a Fogo Stake Pool account buffer.
3223
+ *
3224
+ * Only extracts fields needed for price calculation:
3225
+ * - total_lamports
3226
+ * - pool_token_supply
3227
+ * - last_update_epoch (for staleness check)
3228
+ * - pool_mint (for validation)
3229
+ */
3230
+ declare function parseFogoStakePool(data: Buffer): FogoStakePoolData;
3231
+ /**
3232
+ * Calculates the exchange rate for a Fogo Stake Pool.
3233
+ *
3234
+ * Exchange rate = total_lamports / pool_token_supply
3235
+ *
3236
+ * Unlike spl-single-pool, Fogo does NOT subtract 1 SOL reserve.
3237
+ * The rate represents how many lamports each LST token is worth.
3238
+ */
3239
+ declare function calculateFogoExchangeRate(stakePool: FogoStakePoolData): number;
3240
+ /**
3241
+ * Validates a Fogo Stake Pool's data integrity.
3242
+ *
3243
+ * Checks:
3244
+ * - Exchange rate is >= 1.0 (LST always worth >= underlying)
3245
+ * - Exchange rate is < 3.0 (200%+ rewards would be extraordinary)
3246
+ * - Pool has non-zero supply and lamports
3247
+ */
3248
+ declare function validateFogoStakePool(stakePool: FogoStakePoolData): boolean;
3249
+
3169
3250
  /** Number of slots that can pass before a publisher's price is no longer included in the aggregate. */
3170
3251
  declare const MAX_SLOT_DIFFERENCE = 25;
3171
3252
  interface Price {
@@ -3482,7 +3563,10 @@ type index_CrossbarSimulatePayload = CrossbarSimulatePayload;
3482
3563
  type index_CurrentResult = CurrentResult;
3483
3564
  type index_Ema = Ema;
3484
3565
  type index_FeedResponse = FeedResponse;
3566
+ type index_FogoStakePoolData = FogoStakePoolData;
3485
3567
  declare const index_MAX_SLOT_DIFFERENCE: typeof MAX_SLOT_DIFFERENCE;
3568
+ declare const index_MAX_STAKE_POOL_SIZE: typeof MAX_STAKE_POOL_SIZE;
3569
+ declare const index_MIN_STAKE_POOL_SIZE: typeof MIN_STAKE_POOL_SIZE;
3486
3570
  type index_OracleSubmission = OracleSubmission;
3487
3571
  type index_Price = Price;
3488
3572
  type index_PriceComponent = PriceComponent;
@@ -3495,6 +3579,7 @@ type index_PullFeedAccountData = PullFeedAccountData;
3495
3579
  declare const index_SWITCHBOARD_ONDEMANDE_PRICE_PRECISION: typeof SWITCHBOARD_ONDEMANDE_PRICE_PRECISION;
3496
3580
  declare const index_SinglePoolInstruction: typeof SinglePoolInstruction;
3497
3581
  type index_StakeAccount = StakeAccount;
3582
+ declare const index_calculateFogoExchangeRate: typeof calculateFogoExchangeRate;
3498
3583
  declare const index_createAccountIx: typeof createAccountIx;
3499
3584
  declare const index_createPoolOnrampIx: typeof createPoolOnrampIx;
3500
3585
  declare const index_decodeSwitchboardPullFeedData: typeof decodeSwitchboardPullFeedData;
@@ -3511,12 +3596,14 @@ declare const index_getStakeAccount: typeof getStakeAccount;
3511
3596
  declare const index_getSwitchboardProgram: typeof getSwitchboardProgram;
3512
3597
  declare const index_initializeStakedPoolIxs: typeof initializeStakedPoolIxs;
3513
3598
  declare const index_initializeStakedPoolTx: typeof initializeStakedPoolTx;
3599
+ declare const index_parseFogoStakePool: typeof parseFogoStakePool;
3514
3600
  declare const index_parsePriceData: typeof parsePriceData;
3515
3601
  declare const index_parsePriceInfo: typeof parsePriceInfo;
3516
3602
  declare const index_replenishPoolIx: typeof replenishPoolIx;
3517
3603
  declare const index_switchboardAccountCoder: typeof switchboardAccountCoder;
3604
+ declare const index_validateFogoStakePool: typeof validateFogoStakePool;
3518
3605
  declare namespace index {
3519
- export { index_AccountType as AccountType, index_AggregatorAccount as AggregatorAccount, index_AggregatorAccountData as AggregatorAccountData, type index_Base as Base, index_CorpAction as CorpAction, type index_CrossbarSimulatePayload as CrossbarSimulatePayload, type index_CurrentResult as CurrentResult, type index_Ema as Ema, type index_FeedResponse as FeedResponse, index_MAX_SLOT_DIFFERENCE as MAX_SLOT_DIFFERENCE, type index_OracleSubmission as OracleSubmission, type index_Price as Price, type index_PriceComponent as PriceComponent, type index_PriceData as PriceData, index_PriceStatus as PriceStatus, index_PriceType as PriceType, type index_PullFeedAccountData as PullFeedAccountData, index_SWITCHBOARD_ONDEMANDE_PRICE_PRECISION as SWITCHBOARD_ONDEMANDE_PRICE_PRECISION, index_SinglePoolInstruction as SinglePoolInstruction, type index_StakeAccount as StakeAccount, index_createAccountIx as createAccountIx, index_createPoolOnrampIx as createPoolOnrampIx, index_decodeSwitchboardPullFeedData as decodeSwitchboardPullFeedData, index_findMplMetadataAddress as findMplMetadataAddress, index_findPoolAddress as findPoolAddress, index_findPoolMintAddress as findPoolMintAddress, index_findPoolMintAddressByVoteAccount as findPoolMintAddressByVoteAccount, index_findPoolMintAuthorityAddress as findPoolMintAuthorityAddress, index_findPoolMplAuthorityAddress as findPoolMplAuthorityAddress, index_findPoolOnRampAddress as findPoolOnRampAddress, index_findPoolStakeAddress as findPoolStakeAddress, index_findPoolStakeAuthorityAddress as findPoolStakeAuthorityAddress, index_getStakeAccount as getStakeAccount, index_getSwitchboardProgram as getSwitchboardProgram, index_initializeStakedPoolIxs as initializeStakedPoolIxs, index_initializeStakedPoolTx as initializeStakedPoolTx, index_parsePriceData as parsePriceData, index_parsePriceInfo as parsePriceInfo, index_replenishPoolIx as replenishPoolIx, index_switchboardAccountCoder as switchboardAccountCoder };
3606
+ export { index_AccountType as AccountType, index_AggregatorAccount as AggregatorAccount, index_AggregatorAccountData as AggregatorAccountData, type index_Base as Base, index_CorpAction as CorpAction, type index_CrossbarSimulatePayload as CrossbarSimulatePayload, type index_CurrentResult as CurrentResult, type index_Ema as Ema, type index_FeedResponse as FeedResponse, type index_FogoStakePoolData as FogoStakePoolData, index_MAX_SLOT_DIFFERENCE as MAX_SLOT_DIFFERENCE, index_MAX_STAKE_POOL_SIZE as MAX_STAKE_POOL_SIZE, index_MIN_STAKE_POOL_SIZE as MIN_STAKE_POOL_SIZE, type index_OracleSubmission as OracleSubmission, type index_Price as Price, type index_PriceComponent as PriceComponent, type index_PriceData as PriceData, index_PriceStatus as PriceStatus, index_PriceType as PriceType, type index_PullFeedAccountData as PullFeedAccountData, index_SWITCHBOARD_ONDEMANDE_PRICE_PRECISION as SWITCHBOARD_ONDEMANDE_PRICE_PRECISION, index_SinglePoolInstruction as SinglePoolInstruction, type index_StakeAccount as StakeAccount, index_calculateFogoExchangeRate as calculateFogoExchangeRate, index_createAccountIx as createAccountIx, index_createPoolOnrampIx as createPoolOnrampIx, index_decodeSwitchboardPullFeedData as decodeSwitchboardPullFeedData, index_findMplMetadataAddress as findMplMetadataAddress, index_findPoolAddress as findPoolAddress, index_findPoolMintAddress as findPoolMintAddress, index_findPoolMintAddressByVoteAccount as findPoolMintAddressByVoteAccount, index_findPoolMintAuthorityAddress as findPoolMintAuthorityAddress, index_findPoolMplAuthorityAddress as findPoolMplAuthorityAddress, index_findPoolOnRampAddress as findPoolOnRampAddress, index_findPoolStakeAddress as findPoolStakeAddress, index_findPoolStakeAuthorityAddress as findPoolStakeAuthorityAddress, index_getStakeAccount as getStakeAccount, index_getSwitchboardProgram as getSwitchboardProgram, index_initializeStakedPoolIxs as initializeStakedPoolIxs, index_initializeStakedPoolTx as initializeStakedPoolTx, index_parseFogoStakePool as parseFogoStakePool, index_parsePriceData as parsePriceData, index_parsePriceInfo as parsePriceInfo, index_replenishPoolIx as replenishPoolIx, index_switchboardAccountCoder as switchboardAccountCoder, index_validateFogoStakePool as validateFogoStakePool };
3520
3607
  }
3521
3608
 
3522
- export { AccountFlags, AccountType$1 as AccountType, type ActionEmodeImpact, type ActiveEmodePair, type ActiveStakePoolMap, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceRaw, type BalanceType, type BalanceTypeDto, Bank, BankConfig, type BankConfigCompactRaw, type BankConfigDto, BankConfigFlag, type BankConfigOpt, type BankConfigOptRaw, type BankConfigRaw, type BankConfigRawDto, type BankConfigType, BankFlags, type BankMap, type BankMetadataRaw, type BankRaw, type BankRawDto, type BankType, type BankTypeDto, BankVaultType, type BroadcastMethodType, DEFAULT_CLUSTER, DEFAULT_COMMITMENT, DEFAULT_CONFIRM_OPTS, DEFAULT_ORACLE_MAX_AGE, DEFAULT_PROCESS_TX_OPTS, DEFAULT_PROCESS_TX_STRATEGY, DEFAULT_SEND_OPTS, DISABLED_FLAG, DUMMY_USDC_MINT, DataFetcher, DummyMetadataFetcher, type EmodeConfigRaw, type EmodeConfigRawDto, type EmodeEntry, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, type EmodeImpact, EmodeImpactStatus, type EmodePair, EmodeSettings, type EmodeSettingsDto, type EmodeSettingsRaw, type EmodeSettingsRawDto, type EmodeSettingsType, EmodeTag, Environment, FLASHLOAN_ENABLED_FLAG, type FetchGroupDataFn, type FetchRawBanksArgs, type FlashLoanArgs, type FlashloanActionResult, FogoMetadataFetcher, GROUP_PK, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, type HealthCacheRaw, HealthCacheSimulationError, type HealthCacheType, type HealthCacheTypeDto, IMetadataFetcher, type InterestRateConfig, type InterestRateConfigCompactRaw, type InterestRateConfigDto, type InterestRateConfigOpt, type InterestRateConfigOptRaw, type InterestRateConfigRaw, JUPITER_V6_PROGRAM, LENDR_PROGRAM, LENDR_SPONSORED_SHARD_ID, LST_MINT, LUT_PROGRAM_AUTHORITY_INDEX, LendingAccountDepositOrRepayWithSessionAccounts, LendingAccountWithdrawOrBorrowWithSessionAccounts, LendrAccount, type LendrAccountRaw, type LendrAccountType, type LendrAccountTypeDto, LendrAccountWrapper, LendrClient, type LendrClientFetchOptions, type LendrClientOptions, type LendrClientProps, LendrConfig, LendrGroup, type LendrGroupRaw, type LendrGroupType, type LendrGroupTypeDto, LendrIdlType, LendrProgram, LendrRequirementType, type LendrRequirementTypeRaw, type LoopProps, type LoopTxProps, MAX_ACCOUNT_KEYS, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeBorrowIxOpts, type MakeBorrowWithSessionIxOpts, type MakeDepositIxOpts, type MakeDepositWithSessionIxOpts, type MakeRepayIxOpts, type MakeRepayWithSessionIxOpts, type MakeWithdrawIxOpts, type MakeWithdrawWithSessionIxOpts, MetadataService, MetaplexMetadataFetcher, type MintData, type MintDataMap, OperationalState, type OperationalStateRaw, type OracleConfigOpt, type OracleConfigOptRaw, type OraclePrice, type OraclePriceDto, type OraclePriceMap, OracleSetup, type OracleSetupRaw, PDA_BANK_FEE_VAULT_AUTH_SEED, PDA_BANK_FEE_VAULT_SEED, PDA_BANK_INSURANCE_VAULT_AUTH_SEED, PDA_BANK_INSURANCE_VAULT_SEED, PDA_BANK_LIQUIDITY_VAULT_AUTH_SEED, PDA_BANK_LIQUIDITY_VAULT_SEED, PRIORITY_TX_SIZE, PROGRAM_ID, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, PriceBias, type PriceWithConfidence, type PriceWithConfidenceDto, type PriorityFees, ProcessTransactionError, ProcessTransactionErrorType, type ProcessTransactionOpts, type ProcessTransactionStrategy, type ProcessTransactionsClientOpts, type ProgramError, type ProgramErrorWithDescription, type PythPushFeedIdMap, type RatePoint, type RatePointDto, type RatePointRaw, type RepayWithCollateralProps, type RepayWithCollateralTxProps, RiskTier, type RiskTierRaw, SINGLE_POOL_PROGRAM_ID, SKIP_SIMULATION, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, type SimulationResult, type SpecificBroadcastMethod, type SpecificBroadcastMethodType, type StakeAccount$1 as StakeAccount, type StakePoolMevMap, type SupportedOracleSetup, TLogger, TRANSFER_ACCOUNT_AUTHORITY_FLAG, type TransactionBuilderResult, USDC_DECIMALS, USDC_MINT, type ValidatorRateData, type ValidatorStakeGroup, type ValidatorStakeGroupDto, WSOL_EXTENDED_METADATA, WSOL_MINT, accountFlagToBN, addOracleToBanksIx, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankRawToDto, buildFeedIdMap, computeAccountValue, computeActiveEmodePairs, computeAssetUsdValue, computeBalanceUsdValue, computeBaseInterestRate, computeClaimedEmissions, computeEmodeImpacts, computeFreeCollateral, computeFreeCollateralLegacy, computeHealthAccountMetas, computeHealthCheckAccounts, computeHealthComponents, computeHealthComponentsLegacy, computeHealthComponentsWithoutBiasLegacy, computeInterestRates, computeLiabilityUsdValue, computeLoopingParams, computeMaxLeverage, computeNetApy, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeTotalOutstandingEmissions, computeTvl, computeUsdValue, computeUtilizationRate, confirmTransaction, crankPythOracleIx, createLendrAccountTx, createUpdateFeedIx, decodeAccountRaw, decodeBankRaw, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToLendrAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, feedIdToString, fetchLendrAccountAddresses, fetchLendrAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchPythOracleData, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleData, findOracleKey, findPythPushOracleAddress, freezeBankConfigIx, getActiveAccountFlags, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getActiveStaleBanks, getAssetQuantity, getAssetShares, getAssetWeight, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getConfig, getConfigPda, getHealthCacheStatusDescription, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getPrice, getPriceFeedAccountForProgram, getPriceWithConfidence, getTotalAssetQuantity, getTotalLiabilityQuantity, getTreasuryPda, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, instructions, isOracleSetupSupported, isWeightedPrice, lendrAccountToDto, makeAddPermissionlessStakedBankIx, makeBundleTipIx, makePoolAddBankIx$1 as makePoolAddBankIx, makePoolConfigureBankIx$1 as makePoolConfigureBankIx, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx$1 as makePulseHealthIx, makeTxPriorityIx, makeUnwrapSolIx, makeVersionedTransaction, makeWrapSolIxs, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseErrorFromLogs, parseLendrAccountRaw, parseOperationalState, parseOracleSetup, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseTransactionError, processTransactions, serializeBankConfigOpt, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateTransactions, toBankConfigDto, toBankDto, toEmodeSettingsDto, toInterestRateConfigDto, validatorStakeGroupToDto, index as vendor };
3609
+ export { AccountFlags, AccountType$1 as AccountType, type ActionEmodeImpact, type ActiveEmodePair, type ActiveStakePoolMap, AssetTag, BUNDLE_TX_SIZE, Balance, type BalanceRaw, type BalanceType, type BalanceTypeDto, Bank, BankConfig, type BankConfigCompactRaw, type BankConfigDto, BankConfigFlag, type BankConfigOpt, type BankConfigOptRaw, type BankConfigRaw, type BankConfigRawDto, type BankConfigType, BankFlags, type BankMap, type BankMetadataRaw, type BankRaw, type BankRawDto, type BankType, type BankTypeDto, BankVaultType, type BroadcastMethodType, DEFAULT_CLUSTER, DEFAULT_COMMITMENT, DEFAULT_CONFIRM_OPTS, DEFAULT_ORACLE_MAX_AGE, DEFAULT_PROCESS_TX_OPTS, DEFAULT_PROCESS_TX_STRATEGY, DEFAULT_SEND_OPTS, DISABLED_FLAG, DUMMY_USDC_MINT, DataFetcher, DummyMetadataFetcher, type EmodeConfigRaw, type EmodeConfigRawDto, type EmodeEntry, type EmodeEntryDto, EmodeEntryFlags, EmodeFlags, type EmodeImpact, EmodeImpactStatus, type EmodePair, EmodeSettings, type EmodeSettingsDto, type EmodeSettingsRaw, type EmodeSettingsRawDto, type EmodeSettingsType, EmodeTag, Environment, FLASHLOAN_ENABLED_FLAG, FOGO_STAKE_POOL_PROGRAM_ID, type FetchGroupDataFn, type FetchRawBanksArgs, type FlashLoanArgs, type FlashloanActionResult, FogoMetadataFetcher, GROUP_PK, HOURS_PER_YEAR, HealthCache, HealthCacheFlags, type HealthCacheRaw, HealthCacheSimulationError, type HealthCacheType, type HealthCacheTypeDto, IMetadataFetcher, type InterestRateConfig, type InterestRateConfigCompactRaw, type InterestRateConfigDto, type InterestRateConfigOpt, type InterestRateConfigOptRaw, type InterestRateConfigRaw, JUPITER_V6_PROGRAM, LENDR_PROGRAM, LENDR_SPONSORED_SHARD_ID, LST_MINT, LUT_PROGRAM_AUTHORITY_INDEX, LendingAccountDepositOrRepayWithSessionAccounts, LendingAccountWithdrawOrBorrowWithSessionAccounts, LendrAccount, type LendrAccountRaw, type LendrAccountType, type LendrAccountTypeDto, LendrAccountWrapper, LendrClient, type LendrClientFetchOptions, type LendrClientOptions, type LendrClientProps, LendrConfig, LendrGroup, type LendrGroupRaw, type LendrGroupType, type LendrGroupTypeDto, LendrIdlType, LendrProgram, LendrRequirementType, type LendrRequirementTypeRaw, type LoopProps, type LoopTxProps, MAX_ACCOUNT_KEYS, MAX_CONFIDENCE_INTERVAL_RATIO, MAX_TX_SIZE, MAX_U64, MPL_METADATA_PROGRAM_ID, type MakeBorrowIxOpts, type MakeBorrowWithSessionIxOpts, type MakeDepositIxOpts, type MakeDepositWithSessionIxOpts, type MakeRepayIxOpts, type MakeRepayWithSessionIxOpts, type MakeWithdrawIxOpts, type MakeWithdrawWithSessionIxOpts, MetadataService, MetaplexMetadataFetcher, type MintData, type MintDataMap, OperationalState, type OperationalStateRaw, type OracleConfigOpt, type OracleConfigOptRaw, type OraclePrice, type OraclePriceDto, type OraclePriceMap, OracleSetup, type OracleSetupRaw, PDA_BANK_FEE_VAULT_AUTH_SEED, PDA_BANK_FEE_VAULT_SEED, PDA_BANK_INSURANCE_VAULT_AUTH_SEED, PDA_BANK_INSURANCE_VAULT_SEED, PDA_BANK_LIQUIDITY_VAULT_AUTH_SEED, PDA_BANK_LIQUIDITY_VAULT_SEED, PRIORITY_TX_SIZE, PROGRAM_ID, PYTH_PRICE_CONF_INTERVALS, PYTH_PUSH_ORACLE_ID, PYTH_SPONSORED_SHARD_ID, PriceBias, type PriceWithConfidence, type PriceWithConfidenceDto, type PriorityFees, ProcessTransactionError, ProcessTransactionErrorType, type ProcessTransactionOpts, type ProcessTransactionStrategy, type ProcessTransactionsClientOpts, type ProgramError, type ProgramErrorWithDescription, type PythPushFeedIdMap, type RatePoint, type RatePointDto, type RatePointRaw, type RepayWithCollateralProps, type RepayWithCollateralTxProps, RiskTier, type RiskTierRaw, SINGLE_POOL_PROGRAM_ID, SKIP_SIMULATION, STAKE_CONFIG_ID, STAKE_PROGRAM_ID, SWB_PRICE_CONF_INTERVALS, SYSTEM_PROGRAM_ID, SYSVAR_CLOCK_ID, SYSVAR_RENT_ID, SYSVAR_STAKE_HISTORY_ID, type SimulationResult, type SpecificBroadcastMethod, type SpecificBroadcastMethodType, type StakeAccount$1 as StakeAccount, type StakePoolMevMap, type SupportedOracleSetup, TLogger, TRANSFER_ACCOUNT_AUTHORITY_FLAG, type TransactionBuilderResult, USDC_DECIMALS, USDC_MINT, type ValidatorRateData, type ValidatorStakeGroup, type ValidatorStakeGroupDto, WSOL_EXTENDED_METADATA, WSOL_MINT, accountFlagToBN, addOracleToBanksIx, balanceToDto, bankConfigRawToDto, bankConfigToBankConfigRaw, bankRawToDto, buildFeedIdMap, computeAccountValue, computeActiveEmodePairs, computeAssetUsdValue, computeBalanceUsdValue, computeBaseInterestRate, computeClaimedEmissions, computeEmodeImpacts, computeFreeCollateral, computeFreeCollateralLegacy, computeHealthAccountMetas, computeHealthCheckAccounts, computeHealthComponents, computeHealthComponentsLegacy, computeHealthComponentsWithoutBiasLegacy, computeInterestRates, computeLiabilityUsdValue, computeLoopingParams, computeMaxLeverage, computeNetApy, computeQuantity, computeQuantityUi, computeRemainingCapacity, computeTotalOutstandingEmissions, computeTvl, computeUsdValue, computeUtilizationRate, confirmTransaction, crankPythOracleIx, createLendrAccountTx, createUpdateFeedIx, decodeAccountRaw, decodeBankRaw, dtoToBalance, dtoToBank, dtoToBankConfig, dtoToBankConfigRaw, dtoToBankRaw, dtoToEmodeSettings, dtoToEmodeSettingsRaw, dtoToGroup, dtoToHealthCache, dtoToInterestRateConfig, dtoToLendrAccount, dtoToOraclePrice, dtoToValidatorStakeGroup, emodeSettingsRawToDto, extractPythOracleKeys, feedIdToString, fetchLendrAccountAddresses, fetchLendrAccountData, fetchMultipleBanks, fetchNativeStakeAccounts, fetchOracleData, fetchPythOracleData, fetchStakeAccount, fetchStakePoolActiveStates, fetchStakePoolMev, fetchSwbOracleData, findOracleKey, findPythPushOracleAddress, freezeBankConfigIx, getActiveAccountFlags, getActiveEmodeEntryFlags, getActiveEmodeFlags, getActiveHealthCacheFlags, getActiveStaleBanks, getAssetQuantity, getAssetShares, getAssetWeight, getBalanceUsdValueWithPriceBias, getBankVaultAuthority, getBankVaultSeeds, getConfig, getConfigPda, getFogoStakePoolAddress, getHealthCacheStatusDescription, getLiabilityQuantity, getLiabilityShares, getLiabilityWeight, getPrice, getPriceFeedAccountForProgram, getPriceWithConfidence, getTotalAssetQuantity, getTotalLiabilityQuantity, getTreasuryPda, groupToDto, hasAccountFlag, hasEmodeEntryFlag, hasEmodeFlag, hasHealthCacheFlag, healthCacheToDto, instructions, isOracleSetupSupported, isWeightedPrice, lendrAccountToDto, makeAddPermissionlessStakedBankIx, makeBundleTipIx, makePoolAddBankIx$1 as makePoolAddBankIx, makePoolConfigureBankIx$1 as makePoolConfigureBankIx, makePriorityFeeIx, makePriorityFeeMicroIx, makePulseHealthIx$1 as makePulseHealthIx, makeTxPriorityIx, makeUnwrapSolIx, makeVersionedTransaction, makeWrapSolIxs, oraclePriceToDto, parseBalanceRaw, parseBankConfigRaw, parseBankRaw, parseEmodeSettingsRaw, parseEmodeTag, parseErrorFromLogs, parseLendrAccountRaw, parseOperationalState, parseOracleSetup, parseOraclePriceData as parsePriceInfo, parseRiskTier, parseTransactionError, processTransactions, serializeBankConfigOpt, serializeOperationalState, serializeOracleSetup, serializeOracleSetupToIndex, serializeRiskTier, simulateAccountHealthCache, simulateAccountHealthCacheWithFallback, simulateTransactions, toBankConfigDto, toBankDto, toEmodeSettingsDto, toInterestRateConfigDto, validatorStakeGroupToDto, index as vendor };