| 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') |