@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
354 lines • 33.8 kB
TypeScript
/**
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
import { type Address, type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from '@solana/kit';
/** IntegerOverflow: Integer overflow */
export declare const YVAULTS_ERROR__INTEGER_OVERFLOW = 6000;
/** OperationForbidden: Operation Forbidden */
export declare const YVAULTS_ERROR__OPERATION_FORBIDDEN = 6001;
/** ZeroAmount: [DEPRECATED] Zero amount */
export declare const YVAULTS_ERROR__ZERO_AMOUNT = 6002;
/** UnableToDeserializeAccount: Unable to deserialize account */
export declare const YVAULTS_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT = 6003;
/** VaultBalanceDoesNotMatchTokenA: [DEPRECATED] Vault balance does not match for token A */
export declare const YVAULTS_ERROR__VAULT_BALANCE_DOES_NOT_MATCH_TOKEN_A = 6004;
/** VaultBalanceDoesNotMatchTokenB: [DEPRECATED] Vault balance does not match for token B */
export declare const YVAULTS_ERROR__VAULT_BALANCE_DOES_NOT_MATCH_TOKEN_B = 6005;
/** SharesIssuedAmountDoesNotMatch: [DEPRECATED] Shares issued amount does not match */
export declare const YVAULTS_ERROR__SHARES_ISSUED_AMOUNT_DOES_NOT_MATCH = 6006;
/** GlobalConfigKeyError: Key is not present in global config */
export declare const YVAULTS_ERROR__GLOBAL_CONFIG_KEY_ERROR = 6007;
/** SystemInEmergencyMode: [DEPRECATED] System is in emergency mode */
export declare const YVAULTS_ERROR__SYSTEM_IN_EMERGENCY_MODE = 6008;
/** GlobalDepositBlocked: Global deposit is currently blocked */
export declare const YVAULTS_ERROR__GLOBAL_DEPOSIT_BLOCKED = 6009;
/** GlobalWithdrawBlocked: Global withdraw is currently blocked */
export declare const YVAULTS_ERROR__GLOBAL_WITHDRAW_BLOCKED = 6010;
/** GlobalInvestBlocked: Global invest is currently blocked */
export declare const YVAULTS_ERROR__GLOBAL_INVEST_BLOCKED = 6011;
/** OutOfRangeIntegralConversion: Out of range integral conversion attempted */
export declare const YVAULTS_ERROR__OUT_OF_RANGE_INTEGRAL_CONVERSION = 6012;
/** MathOverflow: [DEPRECATED] Mathematical operation with overflow */
export declare const YVAULTS_ERROR__MATH_OVERFLOW = 6013;
/** TooMuchLiquidityToWithdraw: Unable to withdraw more liquidity than available in position */
export declare const YVAULTS_ERROR__TOO_MUCH_LIQUIDITY_TO_WITHDRAW = 6014;
/** DepositAmountsZero: Deposit amounts must be greater than zero */
export declare const YVAULTS_ERROR__DEPOSIT_AMOUNTS_ZERO = 6015;
/** SharesZero: Number of shares to withdraw must be greater than zero */
export declare const YVAULTS_ERROR__SHARES_ZERO = 6016;
/** StrategyNotActive: Strategy not active */
export declare const YVAULTS_ERROR__STRATEGY_NOT_ACTIVE = 6017;
/** UnharvestedAmounts: There are unharvested gains */
export declare const YVAULTS_ERROR__UNHARVESTED_AMOUNTS = 6018;
/** InvalidRewardMapping: Reward mapping incorrect */
export declare const YVAULTS_ERROR__INVALID_REWARD_MAPPING = 6019;
/** InvalidRewardIndex: Reward index incorrect */
export declare const YVAULTS_ERROR__INVALID_REWARD_INDEX = 6020;
/** OwnRewardUninitialized: Cannot use uninitialized reward vault */
export declare const YVAULTS_ERROR__OWN_REWARD_UNINITIALIZED = 6021;
/** PriceNotValid: Price is not valid */
export declare const YVAULTS_ERROR__PRICE_NOT_VALID = 6022;
/** SwapRewardImbalanced: Must provide almost equal amounts of tokens */
export declare const YVAULTS_ERROR__SWAP_REWARD_IMBALANCED = 6023;
/** SwapRewardTooSmall: Swap reward is zero or less than requested */
export declare const YVAULTS_ERROR__SWAP_REWARD_TOO_SMALL = 6024;
/** SwapRewardLessThanRequested: Swap reward is less than what user requested as minimum */
export declare const YVAULTS_ERROR__SWAP_REWARD_LESS_THAN_REQUESTED = 6025;
/** SwapRewardLessThanMinimum: Swap reward is less than minimum acceptable */
export declare const YVAULTS_ERROR__SWAP_REWARD_LESS_THAN_MINIMUM = 6026;
/** WrongDiscriminator: Wrong discriminator */
export declare const YVAULTS_ERROR__WRONG_DISCRIMINATOR = 6027;
/** WrongMint: Wrong mint */
export declare const YVAULTS_ERROR__WRONG_MINT = 6028;
/** WrongVault: Wrong vault */
export declare const YVAULTS_ERROR__WRONG_VAULT = 6029;
/** SwapAmountsZero: Swap amounts must be greater than zero */
export declare const YVAULTS_ERROR__SWAP_AMOUNTS_ZERO = 6030;
/** PriceTooOld: Price too old */
export declare const YVAULTS_ERROR__PRICE_TOO_OLD = 6031;
/** CannotInvestZeroAmount: Cannot invest zero amount */
export declare const YVAULTS_ERROR__CANNOT_INVEST_ZERO_AMOUNT = 6032;
/** MaxInvestableZero: Cannot have zero investable amount */
export declare const YVAULTS_ERROR__MAX_INVESTABLE_ZERO = 6033;
/** CollectFeesBlocked: Collect fees is blocked */
export declare const YVAULTS_ERROR__COLLECT_FEES_BLOCKED = 6034;
/** CollectRewardsBlocked: Collect rewards is blocked */
export declare const YVAULTS_ERROR__COLLECT_REWARDS_BLOCKED = 6035;
/** SwapRewardsBlocked: Swap rewards is blocked */
export declare const YVAULTS_ERROR__SWAP_REWARDS_BLOCKED = 6036;
/** WrongRewardCollateralID: Reward collateral ID is incorrect for strategy */
export declare const YVAULTS_ERROR__WRONG_REWARD_COLLATERAL_I_D = 6037;
/** InvalidPositionAccount: Position account doesn't match internal records */
export declare const YVAULTS_ERROR__INVALID_POSITION_ACCOUNT = 6038;
/** CouldNotDeserializeScope: Scope account could not be deserialized */
export declare const YVAULTS_ERROR__COULD_NOT_DESERIALIZE_SCOPE = 6039;
/** WrongCollateralID: [DEPRECATED] Collateral ID invalid for strategy */
export declare const YVAULTS_ERROR__WRONG_COLLATERAL_I_D = 6040;
/** CollateralTokensExceedDepositCap: Collaterals exceed deposit cap */
export declare const YVAULTS_ERROR__COLLATERAL_TOKENS_EXCEED_DEPOSIT_CAP = 6041;
/** SwapUnevenVaultsBlocked: Swap uneven vaults is blocked */
export declare const YVAULTS_ERROR__SWAP_UNEVEN_VAULTS_BLOCKED = 6042;
/** VaultsAreAlreadyBalanced: Cannot swap as vaults are already balanced */
export declare const YVAULTS_ERROR__VAULTS_ARE_ALREADY_BALANCED = 6043;
/** CannotSwapUnevenOutOfRange: Cannot swap uneven vaults when position is out of range */
export declare const YVAULTS_ERROR__CANNOT_SWAP_UNEVEN_OUT_OF_RANGE = 6044;
/** DivideByZero: Cannot divide by zero */
export declare const YVAULTS_ERROR__DIVIDE_BY_ZERO = 6045;
/** DeltaATooLarge: [DEPRECATED] Delta A too large */
export declare const YVAULTS_ERROR__DELTA_A_TOO_LARGE = 6046;
/** DeltaBTooLarge: [DEPRECATED] Delta B too large */
export declare const YVAULTS_ERROR__DELTA_B_TOO_LARGE = 6047;
/** CannotExecutiveWithdrawZeroAmount: [DEPRECATED] Cannot executive withdraw zero amount */
export declare const YVAULTS_ERROR__CANNOT_EXECUTIVE_WITHDRAW_ZERO_AMOUNT = 6048;
/** CannotWithdrawZeroAmount: Cannot withdraw zero amount */
export declare const YVAULTS_ERROR__CANNOT_WITHDRAW_ZERO_AMOUNT = 6049;
/** CannotCollectFeesOnZeroLiquidityPosition: [DEPRECATED] Cannot collect fees on zero liquidity position */
export declare const YVAULTS_ERROR__CANNOT_COLLECT_FEES_ON_ZERO_LIQUIDITY_POSITION = 6050;
/** StrategyNotActiveWhenDepositing: Cannot deposit inactive position */
export declare const YVAULTS_ERROR__STRATEGY_NOT_ACTIVE_WHEN_DEPOSITING = 6051;
/** CannotOpenPositionWithExistingPosition: Cannot open position with existing opened position */
export declare const YVAULTS_ERROR__CANNOT_OPEN_POSITION_WITH_EXISTING_POSITION = 6052;
/** CollateralTokensExceedDepositCapPerIxn: Collaterals exceed deposit ixn cap */
export declare const YVAULTS_ERROR__COLLATERAL_TOKENS_EXCEED_DEPOSIT_CAP_PER_IXN = 6053;
/** CannotDepositOutOfRange: Cannot deposit when strategy out of range */
export declare const YVAULTS_ERROR__CANNOT_DEPOSIT_OUT_OF_RANGE = 6054;
/** CannotInvestOutOfRange: Cannot invest when strategy out of range */
export declare const YVAULTS_ERROR__CANNOT_INVEST_OUT_OF_RANGE = 6055;
/** WithdrawalCapReached: Withdrawal cap is reached */
export declare const YVAULTS_ERROR__WITHDRAWAL_CAP_REACHED = 6056;
/** TimestampDecrease: Timestamp decrease */
export declare const YVAULTS_ERROR__TIMESTAMP_DECREASE = 6057;
/** CPINotAllowed: CPI not allowed */
export declare const YVAULTS_ERROR__C_P_I_NOT_ALLOWED = 6058;
/** OrcaPriceTooDifferentFromScope: Cannot use orca price as it is too different from scope price */
export declare const YVAULTS_ERROR__ORCA_PRICE_TOO_DIFFERENT_FROM_SCOPE = 6059;
/** LowerTickLargerThanUpperTick: Lower tick larger than upper tick */
export declare const YVAULTS_ERROR__LOWER_TICK_LARGER_THAN_UPPER_TICK = 6060;
/** LowerTickTooLow: Lower tick is lower than the minimal supported low tick */
export declare const YVAULTS_ERROR__LOWER_TICK_TOO_LOW = 6061;
/** UpperTickTooLarge: Upper tick is larger than the maximum supported tick */
export declare const YVAULTS_ERROR__UPPER_TICK_TOO_LARGE = 6062;
/** LowerTickNotMultipleOfTickSpacing: Lower tick is not a multiple of tick spacing */
export declare const YVAULTS_ERROR__LOWER_TICK_NOT_MULTIPLE_OF_TICK_SPACING = 6063;
/** UpperTickNotMultipleOfTickSpacing: Upper tick is not a multiple of tick spacing */
export declare const YVAULTS_ERROR__UPPER_TICK_NOT_MULTIPLE_OF_TICK_SPACING = 6064;
/** CannotChangeAdminAuthority: Cannot change admin authority */
export declare const YVAULTS_ERROR__CANNOT_CHANGE_ADMIN_AUTHORITY = 6065;
/** CannotResizeAccount: Cannot resize with smaller new size */
export declare const YVAULTS_ERROR__CANNOT_RESIZE_ACCOUNT = 6066;
/** ScopeChainUpdateFailed: Scope chain update failed */
export declare const YVAULTS_ERROR__SCOPE_CHAIN_UPDATE_FAILED = 6067;
/** PriceTooDivergentFromTwap: Price too divergent from twap */
export declare const YVAULTS_ERROR__PRICE_TOO_DIVERGENT_FROM_TWAP = 6068;
/** ExistingRewardOverride: [DEPRECATED] Can not override the existing reward */
export declare const YVAULTS_ERROR__EXISTING_REWARD_OVERRIDE = 6069;
/** WrongKaminoRewardId: Kamino reward id exceeds the available slots */
export declare const YVAULTS_ERROR__WRONG_KAMINO_REWARD_ID = 6070;
/** KaminoRewardNotExist: Kamino reward is not initialized */
export declare const YVAULTS_ERROR__KAMINO_REWARD_NOT_EXIST = 6071;
/** KaminoRewardAlreadyExists: Kamino reward is already initialized */
export declare const YVAULTS_ERROR__KAMINO_REWARD_ALREADY_EXISTS = 6072;
/** KaminoCollateralNotValid: Kamino collateral is not valid */
export declare const YVAULTS_ERROR__KAMINO_COLLATERAL_NOT_VALID = 6073;
/** KaminoRewardExceedsAvailableAmount: [DEPRECATED] Expected kamino reward is bigger then the available amount within the vault */
export declare const YVAULTS_ERROR__KAMINO_REWARD_EXCEEDS_AVAILABLE_AMOUNT = 6074;
/** SwapUnevenVaultsOvershoot: Swap uneven vaults result in the opposite unbalance of the vaults */
export declare const YVAULTS_ERROR__SWAP_UNEVEN_VAULTS_OVERSHOOT = 6075;
/** BpsNotInRange: Bps parameter passed to instruction is not in range */
export declare const YVAULTS_ERROR__BPS_NOT_IN_RANGE = 6076;
/** EmergencySwapBlocked: Emergency Swap is blocked */
export declare const YVAULTS_ERROR__EMERGENCY_SWAP_BLOCKED = 6077;
/** StrategyNotFrozen: Strategy is expected to be frozen for this operation */
export declare const YVAULTS_ERROR__STRATEGY_NOT_FROZEN = 6078;
/** UnexpectedTokenAmountsPostSwap: Token left in vault post swap are lower than expected */
export declare const YVAULTS_ERROR__UNEXPECTED_TOKEN_AMOUNTS_POST_SWAP = 6079;
/** AccountNotBelongToDEX: Account doesn't belong to the DEX */
export declare const YVAULTS_ERROR__ACCOUNT_NOT_BELONG_TO_D_E_X = 6080;
/** WrongDEXProgramID: Wrong DEX program ID */
export declare const YVAULTS_ERROR__WRONG_D_E_X_PROGRAM_I_D = 6081;
/** OrcaRewardUninitialized: Cannot use uninitialized orca reward vault */
export declare const YVAULTS_ERROR__ORCA_REWARD_UNINITIALIZED = 6082;
/** InvalidAdminAuthority: Invalid admin authority */
export declare const YVAULTS_ERROR__INVALID_ADMIN_AUTHORITY = 6083;
/** PriceIsBiggerThanHeuristic: Token price is bigger than heuristic */
export declare const YVAULTS_ERROR__PRICE_IS_BIGGER_THAN_HEURISTIC = 6084;
/** PriceIsLowerThanHeuristic: Token price is lower than heuristic */
export declare const YVAULTS_ERROR__PRICE_IS_LOWER_THAN_HEURISTIC = 6085;
/** AccountDifferentThanExpected: Account different than expected */
export declare const YVAULTS_ERROR__ACCOUNT_DIFFERENT_THAN_EXPECTED = 6086;
/** SwapAmountsTooSmall: Swap amount below the minimum value */
export declare const YVAULTS_ERROR__SWAP_AMOUNTS_TOO_SMALL = 6087;
/** InvalidDexProgramId: Invalid dex program id */
export declare const YVAULTS_ERROR__INVALID_DEX_PROGRAM_ID = 6088;
/** StrategyDepositBlocked: Strategy deposit is currently blocked */
export declare const YVAULTS_ERROR__STRATEGY_DEPOSIT_BLOCKED = 6089;
/** StrategyInvestBlocked: Strategy invest is currently blocked */
export declare const YVAULTS_ERROR__STRATEGY_INVEST_BLOCKED = 6090;
/** StrategyWithdrawBlocked: Strategy withdraw is currently blocked */
export declare const YVAULTS_ERROR__STRATEGY_WITHDRAW_BLOCKED = 6091;
/** WrongSwapVaultDirection: Vault swap can't be performed in the required direction */
export declare const YVAULTS_ERROR__WRONG_SWAP_VAULT_DIRECTION = 6092;
/** SwapVaultsTooBig: Provided amount for vault swap is over the limit */
export declare const YVAULTS_ERROR__SWAP_VAULTS_TOO_BIG = 6093;
/** SwapVaultsCashOutputBelowMinimum: Token out for cash based vault swap is below minimum expected */
export declare const YVAULTS_ERROR__SWAP_VAULTS_CASH_OUTPUT_BELOW_MINIMUM = 6094;
/** FlashIxsNotEnded: Flash ixs initiated without the closing ix in the transaction */
export declare const YVAULTS_ERROR__FLASH_IXS_NOT_ENDED = 6095;
/** FlashTxWithUnexpectedIxs: Some unexpected instructions are present in the tx. Either before or after the flash ixs, or some ix target the same program between */
export declare const YVAULTS_ERROR__FLASH_TX_WITH_UNEXPECTED_IXS = 6096;
/** FlashIxsAccountMismatch: Some accounts differ between the two flash ixs */
export declare const YVAULTS_ERROR__FLASH_IXS_ACCOUNT_MISMATCH = 6097;
/** FlashIxsIncludeScope: A scope ix is present in a flash tx */
export declare const YVAULTS_ERROR__FLASH_IXS_INCLUDE_SCOPE = 6098;
/** FlashVaultSwapBlocked: Flash vault swap is blocked on this strategy */
export declare const YVAULTS_ERROR__FLASH_VAULT_SWAP_BLOCKED = 6099;
/** FlashVaultSwapWrongAmountToLeave: Unexpected amount of tokens in ata prior flash vault swap (wrong amount_to_leave_to_user) */
export declare const YVAULTS_ERROR__FLASH_VAULT_SWAP_WRONG_AMOUNT_TO_LEAVE = 6100;
/** DepositLessThanMinimum: Deposit amount less than minimal allowed */
export declare const YVAULTS_ERROR__DEPOSIT_LESS_THAN_MINIMUM = 6101;
/** DepositWithoutInvestDisallowed: Cannot deposit without invest */
export declare const YVAULTS_ERROR__DEPOSIT_WITHOUT_INVEST_DISALLOWED = 6102;
/** InvalidScopeChain: Invalid Scope Chain */
export declare const YVAULTS_ERROR__INVALID_SCOPE_CHAIN = 6103;
/** InvalidScopeTWAPChain: Invalid Scope TWAP Chain */
export declare const YVAULTS_ERROR__INVALID_SCOPE_T_W_A_P_CHAIN = 6104;
/** PositionHasRemainingLiquidity: Existent position has liquidity, new position creation is forbidden */
export declare const YVAULTS_ERROR__POSITION_HAS_REMAINING_LIQUIDITY = 6105;
/** PoolRebalancing: Deposit is not allowed as pool is rebalancing */
export declare const YVAULTS_ERROR__POOL_REBALANCING = 6106;
/** PermissionlessRebalancingDisabled: Permissionless rebalancing is disabled */
export declare const YVAULTS_ERROR__PERMISSIONLESS_REBALANCING_DISABLED = 6107;
/** ManualRebalanceInvalidOwner: Only the owner of the strategy can manually rebalance it */
export declare const YVAULTS_ERROR__MANUAL_REBALANCE_INVALID_OWNER = 6108;
/** InvalidRebalanceType: Invalid rebalance type for the strategy */
export declare const YVAULTS_ERROR__INVALID_REBALANCE_TYPE = 6109;
/** NoRebalanceNecessary: No rebalance necessary based on current rebalance type/parameters */
export declare const YVAULTS_ERROR__NO_REBALANCE_NECESSARY = 6110;
/** TickArraysDoNotMatchRebalance: The given tick arrays do not match the rebalance result */
export declare const YVAULTS_ERROR__TICK_ARRAYS_DO_NOT_MATCH_REBALANCE = 6111;
/** StrategyPositionNotValid: Expected strategy position to be initialized */
export declare const YVAULTS_ERROR__STRATEGY_POSITION_NOT_VALID = 6112;
/** CouldNotDeserializeRebalanceState: Rebalance state could not be deserialized */
export declare const YVAULTS_ERROR__COULD_NOT_DESERIALIZE_REBALANCE_STATE = 6113;
/** CouldNotSerializeRebalanceState: Rebalance state could not be serialized */
export declare const YVAULTS_ERROR__COULD_NOT_SERIALIZE_REBALANCE_STATE = 6114;
/** CouldNotDeserializeRebalanceParams: Rebalance params could not be deserialized */
export declare const YVAULTS_ERROR__COULD_NOT_DESERIALIZE_REBALANCE_PARAMS = 6115;
/** NotEnoughTokensForRatio: Deposit is not allowed as token amounts are not enough to match our holdings ratio */
export declare const YVAULTS_ERROR__NOT_ENOUGH_TOKENS_FOR_RATIO = 6116;
/** AmountsRepresentZeroShares: The provided amounts are too small */
export declare const YVAULTS_ERROR__AMOUNTS_REPRESENT_ZERO_SHARES = 6117;
/** MaxLossExceeded: Rouding errors exceed the maximal loss tolerance */
export declare const YVAULTS_ERROR__MAX_LOSS_EXCEEDED = 6118;
/** RewardNotStrategyToken: Reward does not match strategy token */
export declare const YVAULTS_ERROR__REWARD_NOT_STRATEGY_TOKEN = 6119;
/** DecimalToU64ConversionFailed: Decimal to u64 conversion failed */
export declare const YVAULTS_ERROR__DECIMAL_TO_U64_CONVERSION_FAILED = 6120;
/** DecimalOperationFailed: Decimal operation failed */
export declare const YVAULTS_ERROR__DECIMAL_OPERATION_FAILED = 6121;
/** VaultBalancesCausesWrongSharesIssuance: Deposit is not allowed as the strategy is not fully invested in the pool */
export declare const YVAULTS_ERROR__VAULT_BALANCES_CAUSES_WRONG_SHARES_ISSUANCE = 6122;
/** TokenDisabled: Token cannot be used in strategy creation */
export declare const YVAULTS_ERROR__TOKEN_DISABLED = 6123;
/** InvalidReferencePriceType: Invalid reference price type */
export declare const YVAULTS_ERROR__INVALID_REFERENCE_PRICE_TYPE = 6124;
/** TokenToSwapNotEnough: Token amount to be swapped is not enough */
export declare const YVAULTS_ERROR__TOKEN_TO_SWAP_NOT_ENOUGH = 6125;
/** TokenAccountBalanceMismatch: Token amount in ata is different than the expected amount */
export declare const YVAULTS_ERROR__TOKEN_ACCOUNT_BALANCE_MISMATCH = 6126;
/** UnexpectedProgramIdForPrerequisiteIx: Unexpected programID for prerequisite ix */
export declare const YVAULTS_ERROR__UNEXPECTED_PROGRAM_ID_FOR_PREREQUISITE_IX = 6127;
/** ComputeFeesAndRewardsUpdateError: Got an error from the dex specific function while computing the fees/rewards update */
export declare const YVAULTS_ERROR__COMPUTE_FEES_AND_REWARDS_UPDATE_ERROR = 6128;
/** SharesNotZero: There must be no shares issued when closing a strategy */
export declare const YVAULTS_ERROR__SHARES_NOT_ZERO = 6129;
/** InvalidScopeStakingRateChain: Invalid Scope staking rate Chain */
export declare const YVAULTS_ERROR__INVALID_SCOPE_STAKING_RATE_CHAIN = 6130;
/** StakingRateNotValid: Staking rate (provided by Scope) is not valid */
export declare const YVAULTS_ERROR__STAKING_RATE_NOT_VALID = 6131;
/** DecimalToU128ConversionFailed: Decimal to u128 conversion failed */
export declare const YVAULTS_ERROR__DECIMAL_TO_U128_CONVERSION_FAILED = 6132;
/** DecimalNegativeSqrtRoot: Decimal sqrt on negative number */
export declare const YVAULTS_ERROR__DECIMAL_NEGATIVE_SQRT_ROOT = 6133;
/** DriftingOppositeDirection: Drifting strategy is moving in the opposite direction */
export declare const YVAULTS_ERROR__DRIFTING_OPPOSITE_DIRECTION = 6134;
/** WrongRewardCollateralId: Wrong reward collateral_id */
export declare const YVAULTS_ERROR__WRONG_REWARD_COLLATERAL_ID = 6135;
/** CollateralInfoAlreadyExists: Collateral info already exists for given index */
export declare const YVAULTS_ERROR__COLLATERAL_INFO_ALREADY_EXISTS = 6136;
/** InvestTooEarly: Invest is too early after the position was opened */
export declare const YVAULTS_ERROR__INVEST_TOO_EARLY = 6137;
/** SwapUnevenTooEarly: Swap uneven is too early after the position was opened */
export declare const YVAULTS_ERROR__SWAP_UNEVEN_TOO_EARLY = 6138;
/** FlashSwapTooEarly: Flash swap is too early after the position was opened */
export declare const YVAULTS_ERROR__FLASH_SWAP_TOO_EARLY = 6139;
/** RebalancesCapReached: Rebalance caps reached, no rebalances are allowed until the end of the current interval */
export declare const YVAULTS_ERROR__REBALANCES_CAP_REACHED = 6140;
/** SwapUnevenInvalidAuthority: Cannot swap uneven because authority is set and the given signer does not correspond */
export declare const YVAULTS_ERROR__SWAP_UNEVEN_INVALID_AUTHORITY = 6141;
/** InvalidTick: Invalid tick requested */
export declare const YVAULTS_ERROR__INVALID_TICK = 6142;
/** MeteoraMathOverflow: Meteora math overflowed */
export declare const YVAULTS_ERROR__METEORA_MATH_OVERFLOW = 6143;
/** StrategyTickArrayNotValid: Expected strategy tick arrays to be initialized */
export declare const YVAULTS_ERROR__STRATEGY_TICK_ARRAY_NOT_VALID = 6144;
/** WrongEventAuthority: Wrong event authority */
export declare const YVAULTS_ERROR__WRONG_EVENT_AUTHORITY = 6145;
/** StrategyFieldUpdateNotAllowed: Strategy field update is not allowed */
export declare const YVAULTS_ERROR__STRATEGY_FIELD_UPDATE_NOT_ALLOWED = 6146;
/** UnsupportedDex: DEX is not supported for this operation */
export declare const YVAULTS_ERROR__UNSUPPORTED_DEX = 6147;
/** InvalidBPSValue: Invalid BPS value provided */
export declare const YVAULTS_ERROR__INVALID_B_P_S_VALUE = 6148;
/** RewardVaultOverrideNotAllowed: Reward vault override not allowed */
export declare const YVAULTS_ERROR__REWARD_VAULT_OVERRIDE_NOT_ALLOWED = 6149;
/** ComputeFeesAndRewardsInvalidReward: Got invalid reward from the dex specific function while computing the fees/rewards update */
export declare const YVAULTS_ERROR__COMPUTE_FEES_AND_REWARDS_INVALID_REWARD = 6150;
/** EmptyTreasury: No tokens to withdraw from treasury fee vault */
export declare const YVAULTS_ERROR__EMPTY_TREASURY = 6151;
/** ChangingPoolRewardMintMismatch: New pool reward mint does not match the old pool reward mint */
export declare const YVAULTS_ERROR__CHANGING_POOL_REWARD_MINT_MISMATCH = 6152;
/** ProvidedRewardVaultMismatch: The provided reward vault does not match the strategy state */
export declare const YVAULTS_ERROR__PROVIDED_REWARD_VAULT_MISMATCH = 6153;
/** RepeatedMint: The provided reward vault does not match the strategy state */
export declare const YVAULTS_ERROR__REPEATED_MINT = 6154;
/** UnsupportedTokenExtension: The token extension is not supported by the program */
export declare const YVAULTS_ERROR__UNSUPPORTED_TOKEN_EXTENSION = 6155;
/** UnsupportedDexForToken22: Cannot initialize strategy with this dex while having a mint with token22 */
export declare const YVAULTS_ERROR__UNSUPPORTED_DEX_FOR_TOKEN22 = 6156;
/** GlobalConfigInvalidScopePriceIndex: Scope price index is not present in global config */
export declare const YVAULTS_ERROR__GLOBAL_CONFIG_INVALID_SCOPE_PRICE_INDEX = 6157;
/** GlobalConfigScopePricesIdsFull: Scope prices ids array in global config is full */
export declare const YVAULTS_ERROR__GLOBAL_CONFIG_SCOPE_PRICES_IDS_FULL = 6158;
/** GlobalConfigAlreadyContainsScopePriceId: Scope prices ids array already contains given scope price id */
export declare const YVAULTS_ERROR__GLOBAL_CONFIG_ALREADY_CONTAINS_SCOPE_PRICE_ID = 6159;
/** GlobalConfigExpectedScopePricesAccount: Expected scope prices account being passed in when adding or updating a scope prices feed */
export declare const YVAULTS_ERROR__GLOBAL_CONFIG_EXPECTED_SCOPE_PRICES_ACCOUNT = 6160;
/** RewardScopePriceAccountNotPresent: A reward scope price account should have been passed in, but it is missing */
export declare const YVAULTS_ERROR__REWARD_SCOPE_PRICE_ACCOUNT_NOT_PRESENT = 6161;
/** IncorrectScopePricesAccountID: Incorrect scope prices account id passed in */
export declare const YVAULTS_ERROR__INCORRECT_SCOPE_PRICES_ACCOUNT_I_D = 6162;
/** CouldNotCalculatePriceTwap: Could not calculate get_price_usd_unchecked() */
export declare const YVAULTS_ERROR__COULD_NOT_CALCULATE_PRICE_TWAP = 6163;
/** ReferencePriceTooFarFromPoolPrice: Reference price is too far from the current pool price */
export declare const YVAULTS_ERROR__REFERENCE_PRICE_TOO_FAR_FROM_POOL_PRICE = 6164;
/** InvestCooldownNotElapsed: Invest cooldown has not elapsed */
export declare const YVAULTS_ERROR__INVEST_COOLDOWN_NOT_ELAPSED = 6165;
/** InvestAmountBelowMinimum: Uninvested value is below the minimum invest trigger */
export declare const YVAULTS_ERROR__INVEST_AMOUNT_BELOW_MINIMUM = 6166;
export type YvaultsError = typeof YVAULTS_ERROR__ACCOUNT_DIFFERENT_THAN_EXPECTED | typeof YVAULTS_ERROR__ACCOUNT_NOT_BELONG_TO_D_E_X | typeof YVAULTS_ERROR__AMOUNTS_REPRESENT_ZERO_SHARES | typeof YVAULTS_ERROR__BPS_NOT_IN_RANGE | typeof YVAULTS_ERROR__CANNOT_CHANGE_ADMIN_AUTHORITY | typeof YVAULTS_ERROR__CANNOT_COLLECT_FEES_ON_ZERO_LIQUIDITY_POSITION | typeof YVAULTS_ERROR__CANNOT_DEPOSIT_OUT_OF_RANGE | typeof YVAULTS_ERROR__CANNOT_EXECUTIVE_WITHDRAW_ZERO_AMOUNT | typeof YVAULTS_ERROR__CANNOT_INVEST_OUT_OF_RANGE | typeof YVAULTS_ERROR__CANNOT_INVEST_ZERO_AMOUNT | typeof YVAULTS_ERROR__CANNOT_OPEN_POSITION_WITH_EXISTING_POSITION | typeof YVAULTS_ERROR__CANNOT_RESIZE_ACCOUNT | typeof YVAULTS_ERROR__CANNOT_SWAP_UNEVEN_OUT_OF_RANGE | typeof YVAULTS_ERROR__CANNOT_WITHDRAW_ZERO_AMOUNT | typeof YVAULTS_ERROR__CHANGING_POOL_REWARD_MINT_MISMATCH | typeof YVAULTS_ERROR__COLLATERAL_INFO_ALREADY_EXISTS | typeof YVAULTS_ERROR__COLLATERAL_TOKENS_EXCEED_DEPOSIT_CAP | typeof YVAULTS_ERROR__COLLATERAL_TOKENS_EXCEED_DEPOSIT_CAP_PER_IXN | typeof YVAULTS_ERROR__COLLECT_FEES_BLOCKED | typeof YVAULTS_ERROR__COLLECT_REWARDS_BLOCKED | typeof YVAULTS_ERROR__COMPUTE_FEES_AND_REWARDS_INVALID_REWARD | typeof YVAULTS_ERROR__COMPUTE_FEES_AND_REWARDS_UPDATE_ERROR | typeof YVAULTS_ERROR__COULD_NOT_CALCULATE_PRICE_TWAP | typeof YVAULTS_ERROR__COULD_NOT_DESERIALIZE_REBALANCE_PARAMS | typeof YVAULTS_ERROR__COULD_NOT_DESERIALIZE_REBALANCE_STATE | typeof YVAULTS_ERROR__COULD_NOT_DESERIALIZE_SCOPE | typeof YVAULTS_ERROR__COULD_NOT_SERIALIZE_REBALANCE_STATE | typeof YVAULTS_ERROR__C_P_I_NOT_ALLOWED | typeof YVAULTS_ERROR__DECIMAL_NEGATIVE_SQRT_ROOT | typeof YVAULTS_ERROR__DECIMAL_OPERATION_FAILED | typeof YVAULTS_ERROR__DECIMAL_TO_U128_CONVERSION_FAILED | typeof YVAULTS_ERROR__DECIMAL_TO_U64_CONVERSION_FAILED | typeof YVAULTS_ERROR__DELTA_A_TOO_LARGE | typeof YVAULTS_ERROR__DELTA_B_TOO_LARGE | typeof YVAULTS_ERROR__DEPOSIT_AMOUNTS_ZERO | typeof YVAULTS_ERROR__DEPOSIT_LESS_THAN_MINIMUM | typeof YVAULTS_ERROR__DEPOSIT_WITHOUT_INVEST_DISALLOWED | typeof YVAULTS_ERROR__DIVIDE_BY_ZERO | typeof YVAULTS_ERROR__DRIFTING_OPPOSITE_DIRECTION | typeof YVAULTS_ERROR__EMERGENCY_SWAP_BLOCKED | typeof YVAULTS_ERROR__EMPTY_TREASURY | typeof YVAULTS_ERROR__EXISTING_REWARD_OVERRIDE | typeof YVAULTS_ERROR__FLASH_IXS_ACCOUNT_MISMATCH | typeof YVAULTS_ERROR__FLASH_IXS_INCLUDE_SCOPE | typeof YVAULTS_ERROR__FLASH_IXS_NOT_ENDED | typeof YVAULTS_ERROR__FLASH_SWAP_TOO_EARLY | typeof YVAULTS_ERROR__FLASH_TX_WITH_UNEXPECTED_IXS | typeof YVAULTS_ERROR__FLASH_VAULT_SWAP_BLOCKED | typeof YVAULTS_ERROR__FLASH_VAULT_SWAP_WRONG_AMOUNT_TO_LEAVE | typeof YVAULTS_ERROR__GLOBAL_CONFIG_ALREADY_CONTAINS_SCOPE_PRICE_ID | typeof YVAULTS_ERROR__GLOBAL_CONFIG_EXPECTED_SCOPE_PRICES_ACCOUNT | typeof YVAULTS_ERROR__GLOBAL_CONFIG_INVALID_SCOPE_PRICE_INDEX | typeof YVAULTS_ERROR__GLOBAL_CONFIG_KEY_ERROR | typeof YVAULTS_ERROR__GLOBAL_CONFIG_SCOPE_PRICES_IDS_FULL | typeof YVAULTS_ERROR__GLOBAL_DEPOSIT_BLOCKED | typeof YVAULTS_ERROR__GLOBAL_INVEST_BLOCKED | typeof YVAULTS_ERROR__GLOBAL_WITHDRAW_BLOCKED | typeof YVAULTS_ERROR__INCORRECT_SCOPE_PRICES_ACCOUNT_I_D | typeof YVAULTS_ERROR__INTEGER_OVERFLOW | typeof YVAULTS_ERROR__INVALID_ADMIN_AUTHORITY | typeof YVAULTS_ERROR__INVALID_B_P_S_VALUE | typeof YVAULTS_ERROR__INVALID_DEX_PROGRAM_ID | typeof YVAULTS_ERROR__INVALID_POSITION_ACCOUNT | typeof YVAULTS_ERROR__INVALID_REBALANCE_TYPE | typeof YVAULTS_ERROR__INVALID_REFERENCE_PRICE_TYPE | typeof YVAULTS_ERROR__INVALID_REWARD_INDEX | typeof YVAULTS_ERROR__INVALID_REWARD_MAPPING | typeof YVAULTS_ERROR__INVALID_SCOPE_CHAIN | typeof YVAULTS_ERROR__INVALID_SCOPE_STAKING_RATE_CHAIN | typeof YVAULTS_ERROR__INVALID_SCOPE_T_W_A_P_CHAIN | typeof YVAULTS_ERROR__INVALID_TICK | typeof YVAULTS_ERROR__INVEST_AMOUNT_BELOW_MINIMUM | typeof YVAULTS_ERROR__INVEST_COOLDOWN_NOT_ELAPSED | typeof YVAULTS_ERROR__INVEST_TOO_EARLY | typeof YVAULTS_ERROR__KAMINO_COLLATERAL_NOT_VALID | typeof YVAULTS_ERROR__KAMINO_REWARD_ALREADY_EXISTS | typeof YVAULTS_ERROR__KAMINO_REWARD_EXCEEDS_AVAILABLE_AMOUNT | typeof YVAULTS_ERROR__KAMINO_REWARD_NOT_EXIST | typeof YVAULTS_ERROR__LOWER_TICK_LARGER_THAN_UPPER_TICK | typeof YVAULTS_ERROR__LOWER_TICK_NOT_MULTIPLE_OF_TICK_SPACING | typeof YVAULTS_ERROR__LOWER_TICK_TOO_LOW | typeof YVAULTS_ERROR__MANUAL_REBALANCE_INVALID_OWNER | typeof YVAULTS_ERROR__MATH_OVERFLOW | typeof YVAULTS_ERROR__MAX_INVESTABLE_ZERO | typeof YVAULTS_ERROR__MAX_LOSS_EXCEEDED | typeof YVAULTS_ERROR__METEORA_MATH_OVERFLOW | typeof YVAULTS_ERROR__NO_REBALANCE_NECESSARY | typeof YVAULTS_ERROR__NOT_ENOUGH_TOKENS_FOR_RATIO | typeof YVAULTS_ERROR__OPERATION_FORBIDDEN | typeof YVAULTS_ERROR__ORCA_PRICE_TOO_DIFFERENT_FROM_SCOPE | typeof YVAULTS_ERROR__ORCA_REWARD_UNINITIALIZED | typeof YVAULTS_ERROR__OUT_OF_RANGE_INTEGRAL_CONVERSION | typeof YVAULTS_ERROR__OWN_REWARD_UNINITIALIZED | typeof YVAULTS_ERROR__PERMISSIONLESS_REBALANCING_DISABLED | typeof YVAULTS_ERROR__POOL_REBALANCING | typeof YVAULTS_ERROR__POSITION_HAS_REMAINING_LIQUIDITY | typeof YVAULTS_ERROR__PRICE_IS_BIGGER_THAN_HEURISTIC | typeof YVAULTS_ERROR__PRICE_IS_LOWER_THAN_HEURISTIC | typeof YVAULTS_ERROR__PRICE_NOT_VALID | typeof YVAULTS_ERROR__PRICE_TOO_DIVERGENT_FROM_TWAP | typeof YVAULTS_ERROR__PRICE_TOO_OLD | typeof YVAULTS_ERROR__PROVIDED_REWARD_VAULT_MISMATCH | typeof YVAULTS_ERROR__REBALANCES_CAP_REACHED | typeof YVAULTS_ERROR__REFERENCE_PRICE_TOO_FAR_FROM_POOL_PRICE | typeof YVAULTS_ERROR__REPEATED_MINT | typeof YVAULTS_ERROR__REWARD_NOT_STRATEGY_TOKEN | typeof YVAULTS_ERROR__REWARD_SCOPE_PRICE_ACCOUNT_NOT_PRESENT | typeof YVAULTS_ERROR__REWARD_VAULT_OVERRIDE_NOT_ALLOWED | typeof YVAULTS_ERROR__SCOPE_CHAIN_UPDATE_FAILED | typeof YVAULTS_ERROR__SHARES_ISSUED_AMOUNT_DOES_NOT_MATCH | typeof YVAULTS_ERROR__SHARES_NOT_ZERO | typeof YVAULTS_ERROR__SHARES_ZERO | typeof YVAULTS_ERROR__STAKING_RATE_NOT_VALID | typeof YVAULTS_ERROR__STRATEGY_DEPOSIT_BLOCKED | typeof YVAULTS_ERROR__STRATEGY_FIELD_UPDATE_NOT_ALLOWED | typeof YVAULTS_ERROR__STRATEGY_INVEST_BLOCKED | typeof YVAULTS_ERROR__STRATEGY_NOT_ACTIVE | typeof YVAULTS_ERROR__STRATEGY_NOT_ACTIVE_WHEN_DEPOSITING | typeof YVAULTS_ERROR__STRATEGY_NOT_FROZEN | typeof YVAULTS_ERROR__STRATEGY_POSITION_NOT_VALID | typeof YVAULTS_ERROR__STRATEGY_TICK_ARRAY_NOT_VALID | typeof YVAULTS_ERROR__STRATEGY_WITHDRAW_BLOCKED | typeof YVAULTS_ERROR__SWAP_AMOUNTS_TOO_SMALL | typeof YVAULTS_ERROR__SWAP_AMOUNTS_ZERO | typeof YVAULTS_ERROR__SWAP_REWARD_IMBALANCED | typeof YVAULTS_ERROR__SWAP_REWARD_LESS_THAN_MINIMUM | typeof YVAULTS_ERROR__SWAP_REWARD_LESS_THAN_REQUESTED | typeof YVAULTS_ERROR__SWAP_REWARDS_BLOCKED | typeof YVAULTS_ERROR__SWAP_REWARD_TOO_SMALL | typeof YVAULTS_ERROR__SWAP_UNEVEN_INVALID_AUTHORITY | typeof YVAULTS_ERROR__SWAP_UNEVEN_TOO_EARLY | typeof YVAULTS_ERROR__SWAP_UNEVEN_VAULTS_BLOCKED | typeof YVAULTS_ERROR__SWAP_UNEVEN_VAULTS_OVERSHOOT | typeof YVAULTS_ERROR__SWAP_VAULTS_CASH_OUTPUT_BELOW_MINIMUM | typeof YVAULTS_ERROR__SWAP_VAULTS_TOO_BIG | typeof YVAULTS_ERROR__SYSTEM_IN_EMERGENCY_MODE | typeof YVAULTS_ERROR__TICK_ARRAYS_DO_NOT_MATCH_REBALANCE | typeof YVAULTS_ERROR__TIMESTAMP_DECREASE | typeof YVAULTS_ERROR__TOKEN_ACCOUNT_BALANCE_MISMATCH | typeof YVAULTS_ERROR__TOKEN_DISABLED | typeof YVAULTS_ERROR__TOKEN_TO_SWAP_NOT_ENOUGH | typeof YVAULTS_ERROR__TOO_MUCH_LIQUIDITY_TO_WITHDRAW | typeof YVAULTS_ERROR__UNABLE_TO_DESERIALIZE_ACCOUNT | typeof YVAULTS_ERROR__UNEXPECTED_PROGRAM_ID_FOR_PREREQUISITE_IX | typeof YVAULTS_ERROR__UNEXPECTED_TOKEN_AMOUNTS_POST_SWAP | typeof YVAULTS_ERROR__UNHARVESTED_AMOUNTS | typeof YVAULTS_ERROR__UNSUPPORTED_DEX | typeof YVAULTS_ERROR__UNSUPPORTED_DEX_FOR_TOKEN22 | typeof YVAULTS_ERROR__UNSUPPORTED_TOKEN_EXTENSION | typeof YVAULTS_ERROR__UPPER_TICK_NOT_MULTIPLE_OF_TICK_SPACING | typeof YVAULTS_ERROR__UPPER_TICK_TOO_LARGE | typeof YVAULTS_ERROR__VAULT_BALANCE_DOES_NOT_MATCH_TOKEN_A | typeof YVAULTS_ERROR__VAULT_BALANCE_DOES_NOT_MATCH_TOKEN_B | typeof YVAULTS_ERROR__VAULT_BALANCES_CAUSES_WRONG_SHARES_ISSUANCE | typeof YVAULTS_ERROR__VAULTS_ARE_ALREADY_BALANCED | typeof YVAULTS_ERROR__WITHDRAWAL_CAP_REACHED | typeof YVAULTS_ERROR__WRONG_COLLATERAL_I_D | typeof YVAULTS_ERROR__WRONG_D_E_X_PROGRAM_I_D | typeof YVAULTS_ERROR__WRONG_DISCRIMINATOR | typeof YVAULTS_ERROR__WRONG_EVENT_AUTHORITY | typeof YVAULTS_ERROR__WRONG_KAMINO_REWARD_ID | typeof YVAULTS_ERROR__WRONG_MINT | typeof YVAULTS_ERROR__WRONG_REWARD_COLLATERAL_ID | typeof YVAULTS_ERROR__WRONG_REWARD_COLLATERAL_I_D | typeof YVAULTS_ERROR__WRONG_SWAP_VAULT_DIRECTION | typeof YVAULTS_ERROR__WRONG_VAULT | typeof YVAULTS_ERROR__ZERO_AMOUNT;
export declare function getYvaultsErrorMessage(code: YvaultsError): string;
export declare function isYvaultsError<TProgramErrorCode extends YvaultsError>(error: unknown, transactionMessage: {
instructions: Record<number, {
programAddress: Address;
}>;
}, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
context: Readonly<{
code: TProgramErrorCode;
}>;
}>;
//# sourceMappingURL=yvaults.d.ts.map