Closed DannyDelott closed 9 months ago
For local and goerli this isn't a deal breaker to have a hard-coded gas limit. On Mainnet this will likely not be an issue at all.
First thing is to remove the hardcoded limits and observe if devnet still works fine without them. If not, we can implement a solution where it's hardcoded for devnet and the default estimation for mainnet.
All transaction for hyperdrive flows are hardcoded at 500_000 gas limit. We need to use the gas estimator with a modifier. Goerli has trouble estimating gas to we might only need it for testing. We need to validate these estimates on mainnet before coming up with the ideal solution.