You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contracts/chain-adapters/ZkStack_CustomGasToken_Adapter.sol
+23-19
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,13 @@ contract ZkStack_CustomGasToken_Adapter is AdapterInterface, CircleCCTPAdapter {
181
181
uint256amount,
182
182
addressto
183
183
) externalpayableoverride {
184
+
// The Hub Pool will always bridge via CCTP to a ZkStack network if CCTP is enabled for that network. Therefore, we can short-circuit ZkStack-specific logic
185
+
// like pulling custom gas or getting the shared bridge address if CCTP is enabled and we are bridging USDC.
186
+
if (l1Token ==address(usdcToken) &&_isCCTPEnabled()) {
187
+
_transferUsdc(to, amount);
188
+
emitTokensRelayed(l1Token, l2Token, amount, to);
189
+
return;
190
+
}
184
191
// A bypass proxy seems to no longer be needed to avoid deposit limits. The tracking of these limits seems to be deprecated.
0 commit comments