Skip to content

Commit

Permalink
increase owasm gas conversion factor
Browse files Browse the repository at this point in the history
  • Loading branch information
slandymani committed Jan 10, 2024
1 parent 0d91068 commit 801bc91
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions x/oracle/keeper/owasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/ODIN-PROTOCOL/odin-core/x/oracle/types"
)

// 1 cosmos gas is equal to 7 owasm gas
const gasConversionFactor = 7
// 1 cosmos gas is equal to 20_000_000 owasm gas
const gasConversionFactor = 20_000_000

func ConvertToOwasmGas(cosmos uint64) uint64 {
return uint64(cosmos * gasConversionFactor)
Expand Down Expand Up @@ -94,10 +94,6 @@ func (k Keeper) PrepareRequest(
return 0, sdkerrors.Wrapf(types.ErrBadWasmExecution, err.Error())
}

if err != nil {
return 0, sdkerrors.Wrapf(types.ErrBadWasmExecution, err.Error())
}

// Preparation complete! It's time to collect raw request ids.
req.RawRequests = env.GetRawRequests()
// TODO compare Oracle fee implementation
Expand Down

0 comments on commit 801bc91

Please sign in to comment.