Skip to content

Commit

Permalink
FE: new paths for crvUSD, LUSD and FRAX on Mainnet (Synapse X) (#1567)
Browse files Browse the repository at this point in the history
* Fix some of the public providers for regeneration

* Chore: fix crvUSD naming

* Regenerate the bridge map

* Add crvUSD address, adjust FRAX priority rank

* Add LUSD icon

* Add Mainnet LUSD to the token list

* Scale up all priority ranks by 100

* Adjust the priority ranks a bit

* Modify the priority for bridged stables
  • Loading branch information
ChiTimesChi authored Nov 28, 2023
1 parent 29eba8b commit e5b3fac
Show file tree
Hide file tree
Showing 4 changed files with 180 additions and 74 deletions.
8 changes: 8 additions & 0 deletions packages/synapse-interface/assets/icons/lusd.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 77 additions & 8 deletions packages/synapse-interface/constants/bridgeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@ export const BRIDGE_MAP = {
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F': {
decimals: 18,
symbol: 'nUSD',
origin: ['DAI', 'USDC', 'USDT', 'nUSD'],
destination: ['nUSD'],
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC', 'nUSD'],
swappable: [
'0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
'0x6B175474E89094C44Da98b954EedeAC495271d0F',
'0x6c3ea9036406852006290770BEdFcAbA0e23A0e8',
'0x853d955aCEf822Db058eb8505911ED77F175b99e',
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
'0xdAC17F958D2ee523a2206206994597C13D831ec7',
'0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
],
},
'0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599': {
Expand All @@ -46,6 +50,21 @@ export const BRIDGE_MAP = {
destination: ['LINK'],
swappable: [],
},
'0x5f98805A4E8be255a32880FDeC7F6728C6568bA0': {
decimals: 18,
symbol: 'LUSD',
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC'],
swappable: [
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F',
'0x6B175474E89094C44Da98b954EedeAC495271d0F',
'0x6c3ea9036406852006290770BEdFcAbA0e23A0e8',
'0x853d955aCEf822Db058eb8505911ED77F175b99e',
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
'0xdAC17F958D2ee523a2206206994597C13D831ec7',
'0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
],
},
'0x6982508145454Ce325dDbE47a25d4ec3d2311933': {
decimals: 18,
symbol: 'PEPE',
Expand All @@ -56,12 +75,31 @@ export const BRIDGE_MAP = {
'0x6B175474E89094C44Da98b954EedeAC495271d0F': {
decimals: 18,
symbol: 'DAI',
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD'],
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC', 'DAI', 'nUSD'],
swappable: [
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F',
'0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
'0x6c3ea9036406852006290770BEdFcAbA0e23A0e8',
'0x853d955aCEf822Db058eb8505911ED77F175b99e',
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
'0xdAC17F958D2ee523a2206206994597C13D831ec7',
'0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
],
},
'0x6c3ea9036406852006290770BEdFcAbA0e23A0e8': {
decimals: 6,
symbol: 'PYUSD',
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC'],
swappable: [
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F',
'0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
'0x6B175474E89094C44Da98b954EedeAC495271d0F',
'0x853d955aCEf822Db058eb8505911ED77F175b99e',
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
'0xdAC17F958D2ee523a2206206994597C13D831ec7',
'0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
],
},
'0x71Ab77b7dbB4fa7e017BC15090b2163221420282': {
Expand All @@ -81,9 +119,17 @@ export const BRIDGE_MAP = {
'0x853d955aCEf822Db058eb8505911ED77F175b99e': {
decimals: 18,
symbol: 'FRAX',
origin: ['synFRAX'],
destination: ['synFRAX'],
swappable: [],
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC', 'synFRAX'],
swappable: [
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F',
'0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
'0x6B175474E89094C44Da98b954EedeAC495271d0F',
'0x6c3ea9036406852006290770BEdFcAbA0e23A0e8',
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
'0xdAC17F958D2ee523a2206206994597C13D831ec7',
'0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
],
},
'0x98585dFc8d9e7D48F0b1aE47ce33332CF4237D96': {
decimals: 18,
Expand All @@ -95,12 +141,16 @@ export const BRIDGE_MAP = {
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48': {
decimals: 6,
symbol: 'USDC',
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD'],
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC', 'USDC', 'nUSD'],
swappable: [
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F',
'0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
'0x6B175474E89094C44Da98b954EedeAC495271d0F',
'0x6c3ea9036406852006290770BEdFcAbA0e23A0e8',
'0x853d955aCEf822Db058eb8505911ED77F175b99e',
'0xdAC17F958D2ee523a2206206994597C13D831ec7',
'0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
],
},
'0xA8d7F5e7C78ed0Fa097Cc5Ec66C1DC3104c9bbeb': {
Expand Down Expand Up @@ -141,12 +191,16 @@ export const BRIDGE_MAP = {
'0xdAC17F958D2ee523a2206206994597C13D831ec7': {
decimals: 6,
symbol: 'USDT',
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD'],
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC', 'USDT', 'nUSD'],
swappable: [
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F',
'0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
'0x6B175474E89094C44Da98b954EedeAC495271d0F',
'0x6c3ea9036406852006290770BEdFcAbA0e23A0e8',
'0x853d955aCEf822Db058eb8505911ED77F175b99e',
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
'0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
],
},
'0xf0655DcEE37E5C0b70Fffd70D85f88F8eDf0AfF6': {
Expand All @@ -156,6 +210,21 @@ export const BRIDGE_MAP = {
destination: ['UNIDX'],
swappable: [],
},
'0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E': {
decimals: 18,
symbol: 'crvUSD',
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC'],
swappable: [
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F',
'0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
'0x6B175474E89094C44Da98b954EedeAC495271d0F',
'0x6c3ea9036406852006290770BEdFcAbA0e23A0e8',
'0x853d955aCEf822Db058eb8505911ED77F175b99e',
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
'0xdAC17F958D2ee523a2206206994597C13D831ec7',
],
},
},
'10': {
'0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85': {
Expand Down
Loading

0 comments on commit e5b3fac

Please sign in to comment.