From 9753c6f14ce7253c43fcf1b0001f727886f3ffde Mon Sep 17 00:00:00 2001 From: skynetcap <100323448+skynetcap@users.noreply.github.com> Date: Tue, 19 Mar 2024 16:02:04 -0700 Subject: [PATCH] Update openbook version and add new property solUsdcPriorityFee The openbook dependency version has been updated from 1.30.2 to 1.30.3 in the pom.xml file. Furthermore, a new property 'solUsdcPriorityFee' has been added to the application.properties file and integrated into the ObCrankerApplication class. --- pom.xml | 2 +- .../java/markets/arcana/obcranker/ObCrankerApplication.java | 6 +++++- src/main/resources/application.properties | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index b438717..f55ed78 100644 --- a/pom.xml +++ b/pom.xml @@ -36,7 +36,7 @@ com.mmorrell openbook - 1.30.2 + 1.30.3 diff --git a/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java b/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java index 395a433..ffe8fa4 100644 --- a/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java +++ b/src/main/java/markets/arcana/obcranker/ObCrankerApplication.java @@ -30,6 +30,9 @@ public class ObCrankerApplication { @Value("${application.privateKey}") private String privateKeyFileName; + @Value("${application.solUsdcPriorityFee}") + private int solUsdcPriorityFee; + private final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(8); public static void main(String[] args) { @@ -60,7 +63,8 @@ public void crankEventHeapLoop() { finalTradingAccount, marketId, 8, - "Cranked by arcana.markets \uD83E\uDDD9" + "Cranked by arcana.markets \uD83E\uDDD9", + solUsdcPriorityFee ); if (transactionId.isPresent()) { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 2b65b66..81f582f 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,2 +1,3 @@ application.endpoint=RPC -application.privateKey=privateKey.json \ No newline at end of file +application.privateKey=privateKey.json +application.solUsdcPriorityFee=11111 \ No newline at end of file