diff --git a/sdks/permit2-sdk/src/constants.ts b/sdks/permit2-sdk/src/constants.ts index 50e7befe5..a9b224ede 100644 --- a/sdks/permit2-sdk/src/constants.ts +++ b/sdks/permit2-sdk/src/constants.ts @@ -1,7 +1,17 @@ import { BigNumber } from '@ethersproject/bignumber' +// @deprecated please use permit2Address(chainId: number) export const PERMIT2_ADDRESS = '0x000000000022D473030F116dDEE9F6B43aC78BA3' +export function permit2Address(chainId?: number): string { + switch (chainId) { + case 324: + return '0x0000000000225e31D15943971F47aD3022F714Fa' + default: + return PERMIT2_ADDRESS + } +} + export const MaxUint48 = BigNumber.from('0xffffffffffff') export const MaxUint160 = BigNumber.from('0xffffffffffffffffffffffffffffffffffffffff') export const MaxUint256 = BigNumber.from('0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff')