Skip to content

preview: mirror fork PR #7695#7704

Closed
github-actions[bot] wants to merge 2 commits into
developfrom
cf-preview/pr-7695
Closed

preview: mirror fork PR #7695#7704
github-actions[bot] wants to merge 2 commits into
developfrom
cf-preview/pr-7695

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR mirrors fork PR #7695 for Cloudflare Pages preview builds.

Source PR: #7695
Source fork branch: tenderdeve/cowswap:fix/7690-twap-allowance-prod-relayer
Mirrored SHA: e81f2148821c

Do not merge this PR. Close the source PR to clean up this mirror.

TWAP orders are always settled against the production CoW Protocol
settlement contract, but the spender override was using the
environment-aware COW_PROTOCOL_VAULT_RELAYER_ADDRESS from
@cowprotocol/common-utils, which resolves to the staging vault
relayer on the barn backend env. As a result, allowances granted on
the barn-deployed app targeted the staging relayer and TWAP orders
were unfillable on Safe due to insufficient allowance against the
prod relayer.

Add a prod-only re-export, COW_PROTOCOL_VAULT_RELAYER_ADDRESS_PROD,
in @cowprotocol/common-utils and use it for the TWAP spender
override, so TWAP allowances always target the production relayer
regardless of the current environment.

Closes #7690
Addresses @kernelwhisperer's feedback on #7695 — rename the SDK import
alias to an internal underscore-prefixed name so COW_PROTOCOL_VAULT_RELAYER_ADDRESS_PROD
is the only PROD-named export. The cast to AddressPerChain is still needed
because the SDK's type differs from AddressPerChain.
@github-actions github-actions Bot added the DONT_MERGE Indicates the PR should not be merged. Probably a WIP or PoC. label Jun 23, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 23, 2026

Copy link
Copy Markdown

Deploying explorer-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: e81f214
Status: ✅  Deploy successful!
Preview URL: https://374988ff.explorer-dev-dxz.pages.dev
Branch Preview URL: https://cf-preview-pr-7695.explorer-dev-dxz.pages.dev

View logs

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cowfi Ready Ready Preview Jun 23, 2026 8:14am
storybook Ready Ready Preview Jun 23, 2026 8:14am
widget-configurator Ready Ready Preview Jun 23, 2026 8:14am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
cosmos Ignored Ignored Jun 23, 2026 8:14am
sdk-tools Ignored Ignored Preview Jun 23, 2026 8:14am

Request Review

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying swap-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: e81f214
Status: ✅  Deploy successful!
Preview URL: https://8a0c746e.swap-dev-5u6.pages.dev
Branch Preview URL: https://cf-preview-pr-7695.swap-dev-5u6.pages.dev

View logs

@github-actions github-actions Bot closed this Jul 6, 2026
@github-actions
github-actions Bot deleted the cf-preview/pr-7695 branch July 6, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DONT_MERGE Indicates the PR should not be merged. Probably a WIP or PoC.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant