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

feat() Update gas prices for decrypt and rand #50

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading