Explorar el Código

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

feat: add filter for liquidity pool status - #1
Filip Dunđer hace 1 año
padre
commit
e8c8147bae
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      buy.ts

+ 6 - 0
buy.ts

@@ -248,6 +248,12 @@ const runListener = async () => {
           bytes: OPENBOOK_PROGRAM_ID.toBase58(),
         },
       },
+      {
+        memcmp: {
+          offset: LIQUIDITY_STATE_LAYOUT_V4.offsetOf('status'),
+          bytes: '14421D35quxec7'
+        },
+      },
     ],
   );