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

feat: new batch dispatch simulate decoded #183

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

rori4
Copy link

@rori4 rori4 commented Jan 31, 2023

There is an issue with some rpc providers that don't return a proper revert data. We discussed on Friday another solution that would solve this.

example implementation with a wrapper contract:
https://github.com/euler-xyz/exec-view-simulate/blob/master/contracts/Simulate.sol

https://linear.app/euler-labs/issue/BCKND-36/create-a-new-batchdispatchsimulate-that-wraps-with-trycatch-and

Context:
A benefit of this implementation would be that we won't throw errors in the console on the frontend and also solve the issue with some RPC providers, like flashobts or user nodes which don't return custom errors

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants