Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWrongToken = errors.New("raydium Standard pool: PriceOf: token not in pool") ErrorWrongTypeAMMV4 = errors.New("raydium Standard pool: Not Raydium AMM_V4 pool") )
Functions ¶
This section is empty.
Types ¶
type Liquidity ¶
type Liquidity struct { Name string Address solana.PublicKey Immutables LiquidityOpts State LiquidityV4State Extras LiquidityExtras // contains filtered or unexported fields }
type LiquidityExtras ¶
type LiquidityV4State ¶
type LiquidityV4State struct { Status uint64 Nonce uint64 MaxOrder uint64 Depth uint64 BaseDecimal uint64 QuoteDecimal uint64 State uint64 ResetFlag uint64 MinSize uint64 VolMaxCutRatio uint64 AmountWaveRatio uint64 BaseLotSize uint64 QuoteLotSize uint64 MinPriceMultiplier uint64 MaxPriceMultiplier uint64 SystemDecimalValue uint64 MinSeparateNumerator uint64 MinSeparateDenominator uint64 TradeFeeNumerator uint64 TradeFeeDenominator uint64 PnlNumerator uint64 PnlDenominator uint64 SwapFeeNumerator uint64 SwapFeeDenominator uint64 BaseNeedTakePnl uint64 QuoteNeedTakePnl uint64 QuoteTotalPnl uint64 BaseTotalPnl uint64 PoolOpenTime uint64 PunishPcAmount uint64 PunishCoinAmount uint64 OrderbookToInitTime uint64 // u128('poolTotalDepositPc'), // u128('poolTotalDepositCoin'), SwapBaseInAmount bin.Uint128 SwapQuoteOutAmount bin.Uint128 SwapBase2QuoteFee uint64 SwapQuoteInAmount bin.Uint128 SwapBaseOutAmount bin.Uint128 SwapQuote2BaseFee uint64 // amm vault BaseVault solana.PublicKey QuoteVault solana.PublicKey // mint BaseMint solana.PublicKey QuoteMint solana.PublicKey LpMint solana.PublicKey // market OpenOrders solana.PublicKey MarketId solana.PublicKey MarketProgramId solana.PublicKey TargetOrders solana.PublicKey WithdrawQueue solana.PublicKey LpVault solana.PublicKey Owner solana.PublicKey // true circulating supply without lock up LpReserve uint64 Padding [3]uint64 }
Click to show internal directories.
Click to hide internal directories.