From bf6278c7c0223250d5702d0f776e0aa8656edf5c Mon Sep 17 00:00:00 2001 From: Arnaud Date: Mon, 23 Jun 2025 06:01:40 +0200 Subject: [PATCH] Apply gas overrides --- codex/contracts/market.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/codex/contracts/market.nim b/codex/contracts/market.nim index 52800b7e..5202b26e 100644 --- a/codex/contracts/market.nim +++ b/codex/contracts/market.nim @@ -308,7 +308,7 @@ method freeSlot*( let gas = await market.contract.estimateGas.freeSlot( slotId, rewardRecipient, collateralRecipient ) - let overrides = TransactionOverrides(gasLimit: some (gas * 110) div 100) + let overrides = TransactionOverrides(gasLimit: some (gas * 300) div 100) freeSlot = market.contract.freeSlot( slotId, @@ -323,7 +323,7 @@ method freeSlot*( # Add 10% to gas estimate to deal with different evm code flow when we # happen to be the one to make the request fail let gas = await market.contract.estimateGas.freeSlot(slotId) - let overrides = TransactionOverrides(gasLimit: some (gas * 110) div 100) + let overrides = TransactionOverrides(gasLimit: some (gas * 300) div 100) freeSlot = market.contract.freeSlot(slotId, overrides) @@ -380,7 +380,7 @@ method markProofAsMissing*( # Add 10% to gas estimate to deal with different evm code flow when we # happen to be the one to make the request fail let gas = await market.contract.estimateGas.markProofAsMissing(id, period) - let overrides = TransactionOverrides(gasLimit: some (gas * 110) div 100) + let overrides = TransactionOverrides(gasLimit: some (gas * 150) div 100) discard await market.contract.markProofAsMissing(id, period, overrides).confirm(1) @@ -403,7 +403,7 @@ method reserveSlot*( # Add 10% to gas estimate to deal with different evm code flow when we # happen to be the last one that is allowed to reserve the slot let gas = await market.contract.estimateGas.reserveSlot(requestId, slotIndex) - let overrides = TransactionOverrides(gasLimit: some (gas * 110) div 100) + let overrides = TransactionOverrides(gasLimit: some (gas * 125) div 100) discard await market.contract.reserveSlot(requestId, slotIndex, overrides).confirm(1)