Skip to content

Commit

Permalink
Update OpenBook library version and crankEventHeapLoop RPC client
Browse files Browse the repository at this point in the history
The Openbook dependency in pom.xml file has been updated to version 1.21.8. In the ObCrankerApplication.java, the RpcClient in the crankEventHeapLoop method has been updated to have its second parameter increased to 10. Additionally, a memo "Cranked by arcana.markets 🧙‍♂️" has been added to all crank transactions.
  • Loading branch information
skynetcap committed Jan 31, 2024
1 parent f78594f commit 1e79ab0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<dependency>
<groupId>com.mmorrell</groupId>
<artifactId>openbook</artifactId>
<version>1.21.3</version>
<version>1.21.8</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static void main(String[] args) {

@EventListener(ApplicationReadyEvent.class)
public void crankEventHeapLoop() {
OpenBookManager manager = new OpenBookManager(new RpcClient(endpoint, 5));
OpenBookManager manager = new OpenBookManager(new RpcClient(endpoint, 10));

Account tradingAccount = null;
try {
Expand All @@ -58,7 +58,8 @@ public void crankEventHeapLoop() {
Optional<String> transactionId = manager.consumeEvents(
finalTradingAccount,
marketId,
8
8,
"Cranked by arcana.markets \uD83E\uDDD9"
);

if (transactionId.isPresent()) {
Expand All @@ -79,7 +80,8 @@ public void crankEventHeapLoop() {
Optional<String> transactionId = manager.consumeEvents(
finalTradingAccount,
market.getMarketId(),
8
8,
"Cranked by arcana.markets \uD83E\uDDD9"
);

if (transactionId.isPresent()) {
Expand Down

0 comments on commit 1e79ab0

Please sign in to comment.