Merge pull request #17 from fdundjer/feature/buy-only-when-market-is-open

feat: add filter for liquidity pool status - #1
This commit is contained in:
Filip Dunđer
2024-01-30 08:38:46 +01:00
committed by GitHub
+6
View File
@@ -248,6 +248,12 @@ const runListener = async () => {
bytes: OPENBOOK_PROGRAM_ID.toBase58(),
},
},
{
memcmp: {
offset: LIQUIDITY_STATE_LAYOUT_V4.offsetOf('status'),
bytes: '14421D35quxec7'
},
},
],
);