From 1b69654d2507058bf5dfd7c070c3475fa32feefa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20=27birdy=27=20Danjou?= Date: Thu, 4 Jan 2024 13:48:43 +0100 Subject: [PATCH] feat() Update gas prices for decrypt and rand --- fhevm/params.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fhevm/params.go b/fhevm/params.go index 1147c15..82e9743 100644 --- a/fhevm/params.go +++ b/fhevm/params.go @@ -83,9 +83,9 @@ func DefaultGasCosts() GasCosts { FheUint32: 130000, }, FheDecrypt: map[FheUintType]uint64{ - FheUint8: 600, - FheUint16: 700, - FheUint32: 800, + FheUint8: 500000, + FheUint16: 500000, + FheUint32: 500000, }, FheBitwiseOp: map[FheUintType]uint64{ FheUint8: 20000, @@ -146,9 +146,9 @@ func DefaultGasCosts() GasCosts { }, // TODO: These will change once we have an FHE-based random generaration. FheRand: map[FheUintType]uint64{ - FheUint8: EvmNetSstoreInitGas + 1000, - FheUint16: EvmNetSstoreInitGas + 2000, - FheUint32: EvmNetSstoreInitGas + 3000, + FheUint8: EvmNetSstoreInitGas + 100000, + FheUint16: EvmNetSstoreInitGas + 200000, + FheUint32: EvmNetSstoreInitGas + 400000, }, // TODO: As of now, only support FheUint8. All optimistic require predicates are // downcast to FheUint8 at the solidity level. Eventually move to ebool.