From 584e50f5bbb97a6b22463d7cf601bf4c9b6160ca Mon Sep 17 00:00:00 2001 From: Arnaud Date: Sat, 21 Jun 2025 08:50:56 +0200 Subject: [PATCH] Update gas --- 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 3708478f..64f49f7b 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) @@ -375,7 +375,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) @@ -400,7 +400,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)