Skip to content

Commit

Permalink
update uniswap address with new chain
Browse files Browse the repository at this point in the history
  • Loading branch information
foxier25 committed Nov 5, 2024
1 parent b7898b1 commit 2cbaabb
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 35 deletions.
32 changes: 16 additions & 16 deletions src/constants/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ export const UNI_ADDRESS: AddressMap = constructSameAddressMap('0x1f9840a85d5aF5
export const UNISWAP_NFT_AIRDROP_CLAIM_ADDRESS = '0x8B799381ac40b838BBA4131ffB26197C432AFe78'

export const V2_FACTORY_ADDRESSES: AddressMap = constructSameAddressMap(V2_FACTORY_ADDRESS)
V2_FACTORY_ADDRESSES[SupportedChainId.LUX] = "0xCfa08d54d3d76289ef88717b921Ce8C3203789e9";
V2_FACTORY_ADDRESSES[SupportedChainId.LUX_TESTNET] = "0xd3CC2350b9CFe15d6e1Ed826dF3150eF3CBb0A47";
V2_FACTORY_ADDRESSES[SupportedChainId.LUX] = "0xD173926A10A0C4eCd3A51B1422270b65Df0551c1";
V2_FACTORY_ADDRESSES[SupportedChainId.LUX_TESTNET] = "0xD173926A10A0C4eCd3A51B1422270b65Df0551c1";
export const V2_ROUTER_ADDRESS: AddressMap = constructSameAddressMap('0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D')
V2_ROUTER_ADDRESS[SupportedChainId.LUX] = "0xf726F75f40778763dcE384e86A2642d364BEd6E6";
V2_ROUTER_ADDRESS[SupportedChainId.LUX_TESTNET] = "0x8d7134d85450673fdB4d60E8D5bB06d9096c3197";
V2_ROUTER_ADDRESS[SupportedChainId.LUX] = "0xAe2cf1E403aAFE6C05A5b8Ef63EB19ba591d8511";
V2_ROUTER_ADDRESS[SupportedChainId.LUX_TESTNET] = "0xAe2cf1E403aAFE6C05A5b8Ef63EB19ba591d8511";

// celo v3 addresses
const CELO_V3_CORE_FACTORY_ADDRESSES = '0xAfE208a311B21f13EF87E33A90049fC17A7acDEc'
const CELO_ROUTER_ADDRESS = '0x5615CDAb10dc425a742d643d949a7F474C01abc4'
const LUX_V3_FACTORY_ADDRESS = "0xa12792DeB2eE726d1b163ba54c876c69ACa41d89";
const LUX_TESTNET_V3_FACTORY_ADDRESS = "0x196CEb9CDE6e804403dFEB16dC91dCFC2bE6cF7d";
const LUX_ROUTER_ADDRESS = '0x0553A6429070821C50B83251bf996d677fd092b9';
const LUX_TESTNET_ROUTER_ADDRESS = '0x0DC3F6716F4659b44334acC33E52051d4eB2263D';
const LUX_V3_FACTORY_ADDRESS = "0x80bBc7C4C7a59C899D1B37BC14539A22D5830a84";
const LUX_TESTNET_V3_FACTORY_ADDRESS = "0x80bBc7C4C7a59C899D1B37BC14539A22D5830a84";
const LUX_ROUTER_ADDRESS = '0x939bC0Bca6F9B9c52E6e3AD8A3C590b5d9B9D10E';
const LUX_TESTNET_ROUTER_ADDRESS = '0x939bC0Bca6F9B9c52E6e3AD8A3C590b5d9B9D10E';
const CELO_V3_MIGRATOR_ADDRESSES = '0x3cFd4d48EDfDCC53D3f173F596f621064614C582'
const CELO_MULTICALL_ADDRESS = '0x633987602DE5C4F337e3DbF265303A1080324204'
const CELO_QUOTER_ADDRESSES = '0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8'
Expand Down Expand Up @@ -68,8 +68,8 @@ export const MULTICALL_ADDRESS: AddressMap = {
[SupportedChainId.ARBITRUM_RINKEBY]: '0xa501c031958F579dB7676fF1CE78AD305794d579',
[SupportedChainId.CELO]: CELO_MULTICALL_ADDRESS,
[SupportedChainId.CELO_ALFAJORES]: CELO_MULTICALL_ADDRESS,
[SupportedChainId.LUX]: "0x4C005aC56a5E56d19BD6a20168Ae9AAFF215e442",
[SupportedChainId.LUX_TESTNET]: "0x8d00a06ABad667b1b8bC32e02a33d4D4a96e1a12",
[SupportedChainId.LUX]: "0xd25F88CBdAe3c2CCA3Bb75FC4E723b44C0Ea362F",
[SupportedChainId.LUX_TESTNET]: "0xd25F88CBdAe3c2CCA3Bb75FC4E723b44C0Ea362F",
}

export const SWAP_ROUTER_ADDRESSES: AddressMap = {
Expand Down Expand Up @@ -127,8 +127,8 @@ export const QUOTER_ADDRESSES: AddressMap = {
]),
[SupportedChainId.CELO]: CELO_QUOTER_ADDRESSES,
[SupportedChainId.CELO_ALFAJORES]: CELO_QUOTER_ADDRESSES,
[SupportedChainId.LUX]: "0x1D6ab3cF7DAF5B36D82d5274012e9d54283211FC",
[SupportedChainId.LUX_TESTNET]: "0x15b9D9CCD8097F9a03D2806629C4f737e103357b",
[SupportedChainId.LUX]: "0x12e2B76FaF4dDA5a173a4532916bb6Bfa3645275",
[SupportedChainId.LUX_TESTNET]: "0x12e2B76FaF4dDA5a173a4532916bb6Bfa3645275",
}

export const NONFUNGIBLE_POSITION_MANAGER_ADDRESSES: AddressMap = {
Expand All @@ -142,8 +142,8 @@ export const NONFUNGIBLE_POSITION_MANAGER_ADDRESSES: AddressMap = {
]),
[SupportedChainId.CELO]: CELO_NONFUNGIBLE_POSITION_MANAGER_ADDRESSES,
[SupportedChainId.CELO_ALFAJORES]: CELO_NONFUNGIBLE_POSITION_MANAGER_ADDRESSES,
[SupportedChainId.LUX]: "0x2f9bB9665c0579B0449E495852F683464d35103B",
[SupportedChainId.LUX_TESTNET]: "0x59D662ce2682Bb9F98C1B856B99FB9a3E38cd521",
[SupportedChainId.LUX]: "0x7a4C48B9dae0b7c396569b34042fcA604150Ee28",
[SupportedChainId.LUX_TESTNET]: "0x7a4C48B9dae0b7c396569b34042fcA604150Ee28",
}

export const ENS_REGISTRAR_ADDRESSES: AddressMap = {
Expand All @@ -162,6 +162,6 @@ export const TICK_LENS_ADDRESSES: AddressMap = {
[SupportedChainId.ARBITRUM_RINKEBY]: '0xbfd8137f7d1516D3ea5cA83523914859ec47F573',
[SupportedChainId.CELO]: CELO_TICK_LENS_ADDRESSES,
[SupportedChainId.CELO_ALFAJORES]: CELO_TICK_LENS_ADDRESSES,
[SupportedChainId.LUX]: "0x9734228be4B66544c55579daAB19eEC29047fb6F",
[SupportedChainId.LUX_TESTNET]: "0xa0D6fb6E77A1Ed400F809Bf27B75aA48263b6091",
[SupportedChainId.LUX]: "0x57A22965AdA0e52D785A9Aa155beF423D573b879",
[SupportedChainId.LUX_TESTNET]: "0x57A22965AdA0e52D785A9Aa155beF423D573b879",
}
4 changes: 2 additions & 2 deletions src/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* List of all the networks supported by the LX Interface
*/
export enum SupportedChainId {
LUX = 7777,
LUX_TESTNET = 8888,
LUX = 96369,
LUX_TESTNET = 96368,

MAINNET = 1,
ROPSTEN = 3,
Expand Down
12 changes: 6 additions & 6 deletions src/constants/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ const USDC_ROPSTEN = new Token(
)
export const LUSD = new Token(
SupportedChainId.LUX,
'0x42b733cA4b3A8FC0237dBE39A47441cfD525f0F1',
'0x8031e9b0D02a792cfEFaa2bDCA6E1289d385426F',
18,
"LUSD",
"Lux Dollar",
);

export const USDC_LUX_TESTNET = new Token(
SupportedChainId.LUX_TESTNET,
'0x827d7D81205a59b2864252bdB4D4313028c50e10',
'0x8031e9b0D02a792cfEFaa2bDCA6E1289d385426F',
18,
"USDC",
"USD Coin",
Expand Down Expand Up @@ -149,14 +149,14 @@ export const USDT_POLYGON = new Token(
)
export const LETH = new Token(
SupportedChainId.LUX,
'0x2951A9386df11a4EA8ae5A823B94DC257dEb35Cb',
'0xdf1De693C31e2A5eb869c329529623556B20AbF3',
18,
"LETH",
"Lux ETH",
);
export const USDT_LUX_TESTNET = new Token(
SupportedChainId.LUX_TESTNET,
'0x3fdd8BB8112d8008be2397d0FAfDa869EFCdDbC4',
'0xdf1De693C31e2A5eb869c329529623556B20AbF3',
18,
"USDT",
"LUX USDT",
Expand Down Expand Up @@ -416,14 +416,14 @@ export const WRAPPED_NATIVE_CURRENCY: { [chainId: number]: Token | undefined } =
),
[SupportedChainId.LUX]: new Token(
SupportedChainId.LUX,
'0xd4b2F0435faca8959A7D2e096C2A3Ce9697Ee9fc',
'0x4888E4a2Ee0F03051c72D2BD3ACf755eD3498B3E',
18,
'WLUX',
'Wrapped LUX'
),
[SupportedChainId.LUX_TESTNET]: new Token(
SupportedChainId.LUX_TESTNET,
'0xA01c406bC54aD9363704E9D26522a4629b5E6263',
'0x4888E4a2Ee0F03051c72D2BD3ACf755eD3498B3E',
18,
'WLUX',
'Wrapped LUX'
Expand Down
22 changes: 11 additions & 11 deletions src/tokens-lux/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const TOKENS_LUX_LIST = {
],
"tokens": [
{
"chainId": 7777,
"chainId": 96369,
"address": "0xd4b2F0435faca8959A7D2e096C2A3Ce9697Ee9fc",
"name": "Wrapped LUX",
"symbol": "WLUX",
Expand All @@ -23,7 +23,7 @@ export const TOKENS_LUX_LIST = {
"extensions": {}
},
{
"chainId": 7777,
"chainId": 96369,
"address": "0x2951A9386df11a4EA8ae5A823B94DC257dEb35Cb",
"name": "Lux ETH",
"symbol": "LETH",
Expand All @@ -32,7 +32,7 @@ export const TOKENS_LUX_LIST = {
"extensions": {}
},
{
"chainId": 7777,
"chainId": 96369,
"address": "0x42b733cA4b3A8FC0237dBE39A47441cfD525f0F1",
"name": "Lux Dollar",
"symbol": "LUSD",
Expand All @@ -41,7 +41,7 @@ export const TOKENS_LUX_LIST = {
"extensions": {}
},
{
"chainId": 8888,
"chainId": 96368,
"address": "0xA01c406bC54aD9363704E9D26522a4629b5E6263",
"name": "Wrapped LUX",
"symbol": "WLUX",
Expand All @@ -50,7 +50,7 @@ export const TOKENS_LUX_LIST = {
"extensions": {}
},
{
"chainId": 8888,
"chainId": 96368,
"address": "0x5670756808b32c209a25c67481ba9c3c710126bb",
"name": "Lux ETH",
"symbol": "LETH",
Expand All @@ -59,7 +59,7 @@ export const TOKENS_LUX_LIST = {
"extensions": {}
},
{
"chainId": 8888,
"chainId": 96368,
"address": "0x5fc1f8394a0dfb43d21a03be5656559c45690357",
"name": "Lux XDAI",
"symbol": "LXDAI",
Expand All @@ -68,7 +68,7 @@ export const TOKENS_LUX_LIST = {
"extensions": {}
},
{
"chainId": 8888,
"chainId": 96368,
"address": "0xa1eeefb7693760e78501b29fcec9fb03ca981d3d",
"name": "Lux POL",
"symbol": "LPOL",
Expand All @@ -77,7 +77,7 @@ export const TOKENS_LUX_LIST = {
"extensions": {}
},
{
"chainId": 8888,
"chainId": 96368,
"address": "0xcec718c5b0c538cc6c15c151b9dc0f714499eab6",
"name": "Lux BNB",
"symbol": "LBNB",
Expand All @@ -86,7 +86,7 @@ export const TOKENS_LUX_LIST = {
"extensions": {}
},
{
"chainId": 8888,
"chainId": 96368,
"address": "0xe5c2a45ce63addf0f9581a439c85a214db657813",
"name": "Lux FTM",
"symbol": "LFTM",
Expand All @@ -95,7 +95,7 @@ export const TOKENS_LUX_LIST = {
"extensions": {}
},
{
"chainId": 8888,
"chainId": 96368,
"address": "0x7e1007b013dcf1d4d49b8ebfdf0c07b7683d4637",
"name": "Lux CELO",
"symbol": "LCELO",
Expand All @@ -104,7 +104,7 @@ export const TOKENS_LUX_LIST = {
"extensions": {}
},
{
"chainId": 8888,
"chainId": 96368,
"address": "0xb84112ac9318a0b2319aa11d4d10e9762b25f7f4",
"name": "Lux USD",
"symbol": "LUSD",
Expand Down

0 comments on commit 2cbaabb

Please sign in to comment.