Skip to content

Commit

Permalink
Add USDT and update contract addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
9inpachi committed Jul 11, 2024
1 parent 56f55a0 commit d20a33c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/contracts/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const CHAIN_ADDRESSES = {
PufferDepositor: '0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c',
// TODO: Update the addresses once the contracts are deployed on chain.
// See https://dev.azure.com/pufferfi/Frontend/_workitems/edit/1797.
PufferL2Depositor: '0x03D8bE7CaAD9A95cef9800249eC663Aa28A2F776',
PufLocker: '0x3fc7a526de9fc3c5e3a28f33d24d4401a6a7b65d',
PufferL2Depositor: '0x300480bf80b1ad93a9f6349623646142776e9156',
PufLocker: '0x367551e0834c26e29e0a17ce3ed4dca87ff0c204',
},
};
27 changes: 20 additions & 7 deletions lib/contracts/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Address } from 'viem';
import { Chain } from '../chains/constants';

export enum Token {
USDT = 'USDT',
USDC = 'USDC',
DAI = 'DAI',
ETH = 'ETH',
Expand All @@ -11,6 +12,7 @@ export enum Token {
pufETH = 'pufETH',

// Wrapped PufTokens
pufUSDT = 'pufUSDT',
pufUSDC = 'pufUSDC',
pufDAI = 'pufDAI',
pufpufETH = 'pufpufETH',
Expand All @@ -23,11 +25,12 @@ export enum Token {

export type NonPufToken = Extract<
Token,
'USDC' | 'DAI' | 'ETH' | 'WETH' | 'stETH' | 'wstETH' | 'pufETH'
'USDT' | 'USDC' | 'DAI' | 'ETH' | 'WETH' | 'stETH' | 'wstETH' | 'pufETH'
>;

export type PufToken = Extract<
Token,
| 'pufUSDT'
| 'pufUSDC'
| 'pufDAI'
| 'pufpufETH'
Expand All @@ -41,6 +44,10 @@ export type PufToken = Extract<
export const TOKENS_ADDRESSES: {
[key in Token]: { [chain in Chain]: Address };
} = {
[Token.USDT]: {
[Chain.Mainnet]: '0xdac17f958d2ee523a2206206994597c13d831ec7',
[Chain.Holesky]: '0xd5bef2c64f418fd460319521d37862327122e3bc',
},
[Token.USDC]: {
[Chain.Mainnet]: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
[Chain.Holesky]: '0x64Cc0de0429bcb87e875905a0c313ec88f6d1d3E',
Expand All @@ -53,7 +60,7 @@ export const TOKENS_ADDRESSES: {
// WETH does not support permit signatures (ERC20Permit).
[Token.WETH]: {
[Chain.Mainnet]: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
[Chain.Holesky]: '0x94373a4919b3240d86ea41593d5eba789fef3848',
[Chain.Holesky]: '0x35B1167b4D37931540F4e5189004d1756d1381B0',
},
[Token.stETH]: {
[Chain.Mainnet]: '0xae7ab96520de3a18e5e111b5eaab095312d7fe84',
Expand All @@ -65,28 +72,32 @@ export const TOKENS_ADDRESSES: {
},
[Token.pufETH]: {
[Chain.Mainnet]: '0xd9a442856c234a39a81a089c06451ebaa4306a72',
[Chain.Holesky]: '0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9',
[Chain.Holesky]: '0x9196830bb4c05504e0a8475a0ad566aceeb6bec9',
},

// TODO: Update the addresses once the contracts are deployed on chain.
// See https://dev.azure.com/pufferfi/Frontend/_workitems/edit/1797.

// Wrapped PufTokens.
[Token.pufUSDT]: {
[Chain.Mainnet]: '0x0000000000000000000000000000000000000000',
[Chain.Holesky]: '0x61e7C87c387178D6e0aE6c04748b7FF753fC9b81',
},
[Token.pufUSDC]: {
[Chain.Mainnet]: '0x0000000000000000000000000000000000000000',
[Chain.Holesky]: '0x6D900a9f5784A2cA0004B5c3D3e08D7A9cE4A1b3',
[Chain.Holesky]: '0xC4731029b6F4fEd5930A56F0FFa3E8Ae688f9dA8',
},
[Token.pufDAI]: {
[Chain.Mainnet]: '0x0000000000000000000000000000000000000000',
[Chain.Holesky]: '0x3aDeeC5151FA881e76A3F42256CD78052372b362',
[Chain.Holesky]: '0xcA1C3DBC6Ea41f018B8d91C3AbE6FacDBDd4F63e',
},
[Token.pufEETH]: {
[Chain.Mainnet]: '0x0000000000000000000000000000000000000000',
[Chain.Holesky]: '0x0000000000000000000000000000000000000000',
},
[Token.pufWETH]: {
[Chain.Mainnet]: '0x0000000000000000000000000000000000000000',
[Chain.Holesky]: '0xfcF6c4e0387A523b73691D5604e5a6dA1607C8A0',
[Chain.Holesky]: '0x2207119500757bDD269F98d86Dca6356535b876E',
},
[Token.pufStETH]: {
[Chain.Mainnet]: '0x0000000000000000000000000000000000000000',
Expand All @@ -102,11 +113,12 @@ export const TOKENS_ADDRESSES: {
},
[Token.pufpufETH]: {
[Chain.Mainnet]: '0x0000000000000000000000000000000000000000',
[Chain.Holesky]: '0x083b6321F213C993B81a54BF4D6Cb38e175EFE68',
[Chain.Holesky]: '0xECa244cBBe52A68EB6c4fdC266c2c50D568bcd22',
},
};

export const TOKENS_PERMIT_VERSION = {
[Token.USDT]: '2',
// USDC does not support permit signatures (ERC20Permit).
[Token.USDC]: '2',
[Token.DAI]: '1',
Expand All @@ -119,6 +131,7 @@ export const TOKENS_PERMIT_VERSION = {
[Token.pufETH]: '1',

// Wrapped PufTokens
[Token.pufUSDT]: '1',
[Token.pufUSDC]: '1',
[Token.pufDAI]: '1',
[Token.pufEETH]: '1',
Expand Down

0 comments on commit d20a33c

Please sign in to comment.