MCPcopy Create free account
hub / github.com/cutupdev/Solana-Volume-Bot / generateV4PoolInfo

Method generateV4PoolInfo

utils/getPoolKeys.ts:70–84  ·  view source on GitHub ↗
(baseMint: PublicKey, quoteMint: PublicKey, marketID: PublicKey)

Source from the content-addressed store, hash-verified

68 }
69
70 static async generateV4PoolInfo(baseMint: PublicKey, quoteMint: PublicKey, marketID: PublicKey) {
71 const poolInfo = Liquidity.getAssociatedPoolKeys({
72 version: 4,
73 marketVersion: 3,
74 baseMint: baseMint,
75 quoteMint: quoteMint,
76 baseDecimals: 0,
77 quoteDecimals: this.SOL_DECIMALS,
78 programId: new PublicKey('675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8'),
79 marketId: marketID,
80 marketProgramId: new PublicKey('srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX'),
81 });
82
83 return { poolInfo }
84 }
85
86 static async fetchPoolKeyInfo(connection: Connection, baseMint: PublicKey, quoteMint: PublicKey) {
87 const marketId = await this.fetchMarketId(connection, baseMint, quoteMint, 'confirmed')

Callers 1

fetchPoolKeyInfoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected