netgum / archanova

Archanova monorepo
https://archanova.io/
19 stars 11 forks source link

Relayer returning estimates with 0 Gwei | Sokol #60

Closed RyRy79261 closed 5 years ago

RyRy79261 commented 5 years ago

Description

2 previous issues, (#56, #52) we closed despite the errors not being addressed.

The relayer will go through phases of sending back estimates that were calculated with a gas price of 0 repeatedly, I have recreated both issues in version 1.0.0 & 1.1.0 on the playground.

RyRy79261 commented 5 years ago

The pseudocode for the repair is as follows:

if(networkId == 77 || networkId == 100){
   estimate.gasPrice = anyToBN(1000000000);
}

@stanislaw-glogowski Please apply this to the function that generates estimates in the relayer

stanislaw-glogowski commented 5 years ago

@RyRy79261 Thanks for fix