forked from Uniswap/governance-seatbelt
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
governance-seatbelt/utils/clients/tenderly.ts
Line 629 in 401c99f
| value: "1000000000000000", // retryable submission cost TODO: don't hardcode this |
It is because we know that the execution will always need some eth for submission cost, but we can also do it like
governance-seatbelt/utils/clients/tenderly.ts
Lines 472 to 478 in 401c99f
| // Simulation failed, try again by setting value to the difference between total call values and governor ETH balance. | |
| const governorEthBalance = await provider.getBalance(governor.address) | |
| const newValue = totalValue.sub(governorEthBalance).toString() | |
| simulationPayload.value = newValue | |
| simulationPayload.state_objects![from].balance = newValue | |
| sim = await sendSimulation(simulationPayload) | |
| if (sim.simulation.status) return { sim, proposal: formattedProposal, latestBlock } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels