Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
feat() Update gas prices for decrypt and rand
Browse files Browse the repository at this point in the history
  • Loading branch information
immortal-tofu committed Jan 4, 2024
1 parent 8dd0820 commit 1b69654
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fhevm/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 1b69654

Please sign in to comment.