Skip to content

Commit

Permalink
Update openbook version and add new property solUsdcPriorityFee
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
skynetcap committed Mar 19, 2024
1 parent e422144 commit 9753c6f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<dependency>
<groupId>com.mmorrell</groupId>
<artifactId>openbook</artifactId>
<version>1.30.2</version>
<version>1.30.3</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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()) {
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
application.endpoint=RPC
application.privateKey=privateKey.json
application.privateKey=privateKey.json
application.solUsdcPriorityFee=11111

0 comments on commit 9753c6f

Please sign in to comment.