From a8ce4f2362490dbbfbee5feaa491c7d87a7e2272 Mon Sep 17 00:00:00 2001 From: Foulks-Plb Date: Tue, 14 Oct 2025 11:28:32 +0200 Subject: [PATCH 1/3] docs(adding-new-chain): update instructions for USDC and Permit2 integration --- docs/adding-new-chain.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/adding-new-chain.md b/docs/adding-new-chain.md index b8c07dcc..746c2bf3 100644 --- a/docs/adding-new-chain.md +++ b/docs/adding-new-chain.md @@ -61,6 +61,9 @@ Add your chain's contract addresses to the `_addressesRegistry` mapping: }, ``` +Remember to set the USDC address if it supports Permit2, otherwise the signature will default to version 1 (with hasSimplePermit true). +Also make sure to add the Permit2 contract (if available) to enable transactional flows using Permit2. + ### 4. Add Deployment Blocks **File:** `packages/blue-sdk/src/addresses.ts` From 0b9eb0f64ea9ea4a2ac82ee67cd883afbb4058bb Mon Sep 17 00:00:00 2001 From: Romain Milon Date: Fri, 17 Oct 2025 11:10:22 +0200 Subject: [PATCH 2/3] docs(chain): add fallback specs Co-authored-by: Julien THOMAS <61523188+julien-devatom@users.noreply.github.com> Signed-off-by: Romain Milon --- docs/adding-new-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/adding-new-chain.md b/docs/adding-new-chain.md index 746c2bf3..c38f8583 100644 --- a/docs/adding-new-chain.md +++ b/docs/adding-new-chain.md @@ -62,7 +62,7 @@ Add your chain's contract addresses to the `_addressesRegistry` mapping: ``` Remember to set the USDC address if it supports Permit2, otherwise the signature will default to version 1 (with hasSimplePermit true). -Also make sure to add the Permit2 contract (if available) to enable transactional flows using Permit2. +Also make sure to add the Permit2 contract (if available) to enable transactional flows using Permit2, otherwise the approval will default to the classic erc20 approval. ### 4. Add Deployment Blocks From 35420df76d065ed664ac9fcf5d61d76ddbeb8aa0 Mon Sep 17 00:00:00 2001 From: Romain Milon Date: Tue, 4 Nov 2025 11:42:03 +0100 Subject: [PATCH 3/3] docs(chain): make it more specific Co-authored-by: Oumar Fall <60975029+oumar-fall@users.noreply.github.com> Signed-off-by: Romain Milon --- docs/adding-new-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/adding-new-chain.md b/docs/adding-new-chain.md index c38f8583..1f27db16 100644 --- a/docs/adding-new-chain.md +++ b/docs/adding-new-chain.md @@ -61,7 +61,7 @@ Add your chain's contract addresses to the `_addressesRegistry` mapping: }, ``` -Remember to set the USDC address if it supports Permit2, otherwise the signature will default to version 1 (with hasSimplePermit true). +Remember to register the USDC address if it supports ERC-2612 permit, otherwise the signature will default to permit version 1 (if `hasSimplePermit` is set to true). Also make sure to add the Permit2 contract (if available) to enable transactional flows using Permit2, otherwise the approval will default to the classic erc20 approval. ### 4. Add Deployment Blocks