Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Concentrated Liquidity Automated Market Maker (CLAMM) ErrWrongToken = errors.New("ocra Whirlpools: PriceOf: token not in pool") ErrorWrongTypeCLAMM = errors.New("ocra Whirlpools: Not Ocra CLAMM pool") OCRA_PROGRAM_ID = "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc" )
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct { Name string Address solana.PublicKey Immutables PoolOpts State PoolState // contains filtered or unexported fields }
type PoolState ¶
type PoolState struct { Blob [8]uint8 WhirlpoolsConfig solana.PublicKey WhirlpoolBump [1]uint8 TickSpacing uint16 TickSpacingSeed [2]uint8 FeeRate uint16 ProtocolFeeRate uint16 Liquidity bin.Uint128 SqrtPrice bin.Uint128 TickCurrentIndex int32 ProtocolFeeOwedA uint64 ProtocolFeeOwedB uint64 TokenMintA solana.PublicKey TokenVaultA solana.PublicKey FeeGrowthGlobalA bin.Uint128 TokenMintB solana.PublicKey TokenVaultB solana.PublicKey FeeGrowthGlobalB bin.Uint128 RewardLastUpdatedTimestamp uint64 RewardInfos [3]WhirlpoolRewardInfo }
Click to show internal directories.
Click to hide internal directories.