Current quoter simulates a swap and reverts, using a lot of gas.
Description of changes
This view-only quoter aims to quote a v4 pool cheaper by removing the revert and the unused state updates. Currently, this can only quote swaps without hook executions that change the output of a swap.
Related Issue
Current quoter simulates a swap and reverts, using a lot of gas.
Description of changes
This view-only quoter aims to quote a v4 pool cheaper by removing the revert and the unused state updates. Currently, this can only quote swaps without hook executions that change the output of a swap.
This code is adapted from view-quoter-v3.