fix: call pollFunds from JIT TWAP script - #15
Merged
anxolin merged 1 commit intoJul 23, 2026
Merged
Conversation
igorroncevic
marked this pull request as ready for review
July 16, 2026 15:15
anxolin
approved these changes
Jul 23, 2026
anxolin
added a commit
that referenced
this pull request
Jul 23, 2026
* Add JIT-funded TWAP from EOA using ComposableCowPoller Follow-up to the TWAP-from-EOA PoC. Instead of moving the full TWAP sell amount into cow-shed up front, each part is pulled just-in-time from the EOA via the ComposableCowPoller contract, so capital stays in the user's wallet between parts. - New postTwapForEOAWithJitFunds script: a 1-wei sell=buy order carries a gasless post-hook that approves the Vault Relayer and creates the TWAP on cow-shed; the EOA approves the poller for the full sell amount and registers the JIT funding schedule. The watch-tower then pulls each part on demand. - Add a minimal ComposableCowPoller contract helper and its Gnosis address. * Enhance script * Add slippage and hook * fix: call pollFunds from JIT TWAP script (#15) --------- Co-authored-by: Anxo <2352112+anxolin@users.noreply.github.com> Co-authored-by: Igor Rončević <57319163+igorroncevic@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the JIT TWAP pre-hook from
topUptopollFunds.Validation: generated calldata matches
pollFunds(bytes32).yarn buildis blocked by existing syntax errors in an unrelated flash-loan script.