Skip to main content

Crate gmsol_liquidity_provider

Crate gmsol_liquidity_provider 

Source

Modules§

accounts
An Anchor generated module, providing a set of structs mirroring the structs deriving Accounts, where each field is a Pubkey. This is useful for specifying accounts for a client.
gmsol_liquidity_provider
instruction
An Anchor generated module containing the program’s set of instructions, where each method handler in the #[program] mod is associated with a struct defining the input arguments to the method. These should be used directly, when one wants to serialize Anchor instruction data, for example, when speciying instructions on a client.
program
Module representing the program.

Structs§

AcceptAuthority
AcceptAuthorityBumps
CalculateGtReward
Accounts context for calculating GT reward from a Position
CalculateGtRewardBumps
ClaimGt
Accounts context for claiming GT reward and updating Position snapshot
ClaimGtBumps
CreateLpTokenController
CreateLpTokenControllerBumps
DisableLpTokenController
DisableLpTokenControllerBumps
GlobalState
Initialize
InitializeBumps
LpTokenController
LP Token Controller for managing specific LP token staking
Position
Position account to persist LP stake data and snapshot stake-time values
SetClaimEnabled
SetClaimEnabledBumps
SetPricingStaleness
SetPricingStalenessBumps
StakeGlv
Accounts context for staking GLV tokens with automatic pricing
StakeGlvBumps
StakeGm
Accounts context for staking GM tokens with automatic pricing
StakeGmBumps
TransferAuthority
TransferAuthorityBumps
UnstakeLp
Accounts context for unstaking LP; combines claim + partial/full exit
UnstakeLpBumps
UpdateApyGradient
Accounts for APY gradient updates (used by sparse and range initializers)
UpdateApyGradientBumps
UpdateMinStakeValue
UpdateMinStakeValueBumps

Enums§

ErrorCode

Constants§

APY_BUCKETS_U8
APY_LAST_INDEX_U8
APY_MAX
DEFAULT_PRICING_STALENESS_SECONDS
GLOBAL_STATE_RESERVED_LEN
GLOBAL_STATE_SEED
ID_CONST
Const version of ID
LP_TOKEN_CONTROLLER_RESERVED_LEN
LP_TOKEN_CONTROLLER_SEED
POSITION_RESERVED_LEN
POSITION_SEED
VAULT_SEED

Statics§

ID
The static program ID
security_txt
Static string containing the security.txt file.

Functions§

check_id
Confirms that a given pubkey is equivalent to the program ID
entry
The Anchor codegen exposes a programming model where a user defines a set of methods inside of a #[program] module in a way similar to writing RPC request handlers. The macro then generates a bunch of code wrapping these user defined methods into something that can be executed on Solana.
entrypoint
Safety
id
Returns the program ID
id_const
Const version of ID