From d62c63eeeb3c4f5fe2493858086472e12ae55e85 Mon Sep 17 00:00:00 2001 From: jeffyanta Date: Wed, 17 Dec 2025 10:43:48 -0500 Subject: [PATCH] Update cancel swap transaction compute unit limit --- ocp/worker/swap/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocp/worker/swap/util.go b/ocp/worker/swap/util.go index 800e71c..1cb6bd0 100644 --- a/ocp/worker/swap/util.go +++ b/ocp/worker/swap/util.go @@ -380,7 +380,7 @@ func (p *runtime) makeCancellationTransaction(ctx context.Context, record *swap. txn := solana.NewLegacyTransaction( common.GetSubsidizer().PublicKey().ToBytes(), system.AdvanceNonce(nonce.PublicKey().ToBytes(), common.GetSubsidizer().PublicKey().ToBytes()), - compute_budget.SetComputeUnitLimit(200_000), // todo: optimize this + compute_budget.SetComputeUnitLimit(50_000), compute_budget.SetComputeUnitPrice(1_000), memo.Instruction("cancel_swap_v0"), vm.NewCancelSwapInstruction(