Skip to content

Commit

Permalink
API call for quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
abtestingalpha committed May 3, 2024
1 parent 6ca16ff commit f35adb3
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 145 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function ButtonContent({
/>
{chain.name}
</span>
{chain.new && <NewTag />}
{chain.isNew && <NewTag />}
{isOrigin && balanceTokens?.length > 0 && (
<ChainTokens balanceTokens={balanceTokens} />
)}
Expand Down
127 changes: 28 additions & 99 deletions packages/synapse-interface/constants/bridgeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,7 @@ export const BRIDGE_MAP = {
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F': {
decimals: 18,
symbol: 'nUSD',
origin: [
'CCTP.USDC',
'DAI',
'USDC',
'USDT',
'nUSD',
'synFRAX',
'RFQ.USDC',
],
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC', 'nUSD'],
swappable: [
'0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
Expand Down Expand Up @@ -68,15 +60,7 @@ export const BRIDGE_MAP = {
'0x5f98805A4E8be255a32880FDeC7F6728C6568bA0': {
decimals: 18,
symbol: 'LUSD',
origin: [
'CCTP.USDC',
'DAI',
'USDC',
'USDT',
'nUSD',
'synFRAX',
'RFQ.USDC',
],
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC'],
swappable: [
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F',
Expand All @@ -98,15 +82,7 @@ export const BRIDGE_MAP = {
'0x6B175474E89094C44Da98b954EedeAC495271d0F': {
decimals: 18,
symbol: 'DAI',
origin: [
'CCTP.USDC',
'DAI',
'USDC',
'USDT',
'nUSD',
'synFRAX',
'RFQ.USDC',
],
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC', 'DAI', 'nUSD'],
swappable: [
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F',
Expand All @@ -121,15 +97,7 @@ export const BRIDGE_MAP = {
'0x6c3ea9036406852006290770BEdFcAbA0e23A0e8': {
decimals: 6,
symbol: 'PYUSD',
origin: [
'CCTP.USDC',
'DAI',
'USDC',
'USDT',
'nUSD',
'synFRAX',
'RFQ.USDC',
],
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC'],
swappable: [
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F',
Expand Down Expand Up @@ -158,15 +126,7 @@ export const BRIDGE_MAP = {
'0x853d955aCEf822Db058eb8505911ED77F175b99e': {
decimals: 18,
symbol: 'FRAX',
origin: [
'CCTP.USDC',
'DAI',
'USDC',
'USDT',
'nUSD',
'synFRAX',
'RFQ.USDC',
],
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC', 'synFRAX'],
swappable: [
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F',
Expand Down Expand Up @@ -246,15 +206,7 @@ export const BRIDGE_MAP = {
'0xdAC17F958D2ee523a2206206994597C13D831ec7': {
decimals: 6,
symbol: 'USDT',
origin: [
'CCTP.USDC',
'DAI',
'USDC',
'USDT',
'nUSD',
'synFRAX',
'RFQ.USDC',
],
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC', 'USDT', 'nUSD'],
swappable: [
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F',
Expand All @@ -276,15 +228,7 @@ export const BRIDGE_MAP = {
'0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E': {
decimals: 18,
symbol: 'crvUSD',
origin: [
'CCTP.USDC',
'DAI',
'USDC',
'USDT',
'nUSD',
'synFRAX',
'RFQ.USDC',
],
origin: ['CCTP.USDC', 'DAI', 'USDC', 'USDT', 'nUSD', 'synFRAX'],
destination: ['CCTP.USDC'],
swappable: [
'0x1B84765dE8B7566e4cEAF4D0fD3c5aF52D3DdE4F',
Expand Down Expand Up @@ -321,7 +265,7 @@ export const BRIDGE_MAP = {
'0x121ab82b49B2BC4c7901CA46B8277962b4350204': {
decimals: 18,
symbol: 'WETH',
origin: ['nETH', 'RFQ.ETH'],
origin: ['nETH'],
destination: ['nETH'],
swappable: [
'0x809DC529f07651bD43A172e8dB6f4a7a0d771036',
Expand All @@ -345,7 +289,7 @@ export const BRIDGE_MAP = {
'0x67C10C397dD0Ba417329543c1a40eb48AAa7cd00': {
decimals: 18,
symbol: 'nUSD',
origin: ['CCTP.USDC', 'nUSD', 'RFQ.USDC'],
origin: ['CCTP.USDC', 'nUSD'],
destination: ['CCTP.USDC', 'nUSD'],
swappable: [
'0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85',
Expand All @@ -358,7 +302,7 @@ export const BRIDGE_MAP = {
'0x7F5c764cBc14f9669B88837ca1490cCa17c31607': {
decimals: 6,
symbol: 'USDC.e',
origin: ['CCTP.USDC', 'nUSD', 'RFQ.USDC'],
origin: ['CCTP.USDC', 'nUSD'],
destination: ['CCTP.USDC', 'nUSD'],
swappable: [
'0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85',
Expand All @@ -371,7 +315,7 @@ export const BRIDGE_MAP = {
'0x809DC529f07651bD43A172e8dB6f4a7a0d771036': {
decimals: 18,
symbol: 'nETH',
origin: ['nETH', 'RFQ.ETH'],
origin: ['nETH'],
destination: ['nETH'],
swappable: [
'0x121ab82b49B2BC4c7901CA46B8277962b4350204',
Expand All @@ -381,7 +325,7 @@ export const BRIDGE_MAP = {
'0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9': {
decimals: 18,
symbol: 'sUSD',
origin: ['CCTP.USDC', 'nUSD', 'RFQ.USDC'],
origin: ['CCTP.USDC', 'nUSD'],
destination: ['CCTP.USDC'],
swappable: [
'0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85',
Expand All @@ -394,7 +338,7 @@ export const BRIDGE_MAP = {
'0x94b008aA00579c1307B0EF2c499aD98a8ce58e58': {
decimals: 6,
symbol: 'USDT',
origin: ['CCTP.USDC', 'nUSD', 'RFQ.USDC'],
origin: ['CCTP.USDC', 'nUSD'],
destination: ['CCTP.USDC'],
swappable: [
'0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85',
Expand All @@ -414,7 +358,7 @@ export const BRIDGE_MAP = {
'0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1': {
decimals: 18,
symbol: 'DAI',
origin: ['CCTP.USDC', 'nUSD', 'RFQ.USDC'],
origin: ['CCTP.USDC', 'nUSD'],
destination: ['CCTP.USDC'],
swappable: [
'0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85',
Expand Down Expand Up @@ -1240,7 +1184,7 @@ export const BRIDGE_MAP = {
'0x417Ac0e078398C154EdFadD9Ef675d30Be60Af93': {
decimals: 18,
symbol: 'crvUSD',
origin: ['CCTP.USDC', 'RFQ.USDC'],
origin: ['CCTP.USDC'],
destination: ['CCTP.USDC'],
swappable: [
'0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb',
Expand All @@ -1252,7 +1196,7 @@ export const BRIDGE_MAP = {
'0x4200000000000000000000000000000000000006': {
decimals: 18,
symbol: 'WETH',
origin: ['nETH', 'RFQ.ETH'],
origin: ['nETH'],
destination: ['nETH'],
swappable: [
'0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
Expand All @@ -1269,7 +1213,7 @@ export const BRIDGE_MAP = {
'0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb': {
decimals: 18,
symbol: 'DAI',
origin: ['CCTP.USDC', 'RFQ.USDC'],
origin: ['CCTP.USDC'],
destination: ['CCTP.USDC'],
swappable: [
'0x417Ac0e078398C154EdFadD9Ef675d30Be60Af93',
Expand Down Expand Up @@ -1300,7 +1244,7 @@ export const BRIDGE_MAP = {
'0xEB466342C4d449BC9f53A865D5Cb90586f405215': {
decimals: 6,
symbol: 'axlUSDC',
origin: ['CCTP.USDC', 'RFQ.USDC'],
origin: ['CCTP.USDC'],
destination: ['CCTP.USDC'],
swappable: [
'0x417Ac0e078398C154EdFadD9Ef675d30Be60Af93',
Expand All @@ -1322,7 +1266,7 @@ export const BRIDGE_MAP = {
'0xb554A55358fF0382Fb21F0a478C3546d1106Be8c': {
decimals: 18,
symbol: 'nETH',
origin: ['nETH', 'RFQ.ETH'],
origin: ['nETH'],
destination: ['nETH'],
swappable: [
'0x4200000000000000000000000000000000000006',
Expand All @@ -1332,7 +1276,7 @@ export const BRIDGE_MAP = {
'0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA': {
decimals: 6,
symbol: 'USDbC',
origin: ['CCTP.USDC', 'RFQ.USDC'],
origin: ['CCTP.USDC'],
destination: ['CCTP.USDC'],
swappable: [
'0x417Ac0e078398C154EdFadD9Ef675d30Be60Af93',
Expand Down Expand Up @@ -1367,7 +1311,7 @@ export const BRIDGE_MAP = {
'0x17FC002b466eEc40DaE837Fc4bE5c67993ddBd6F': {
decimals: 18,
symbol: 'FRAX',
origin: ['CCTP.USDC', 'nUSD', 'RFQ.USDC'],
origin: ['CCTP.USDC', 'nUSD'],
destination: ['CCTP.USDC'],
swappable: [
'0x2913E812Cf0dcCA30FB28E6Cac3d2DCFF4497688',
Expand All @@ -1380,7 +1324,7 @@ export const BRIDGE_MAP = {
'0x2913E812Cf0dcCA30FB28E6Cac3d2DCFF4497688': {
decimals: 18,
symbol: 'nUSD',
origin: ['CCTP.USDC', 'nUSD', 'RFQ.USDC'],
origin: ['CCTP.USDC', 'nUSD'],
destination: ['CCTP.USDC', 'nUSD'],
swappable: [
'0x17FC002b466eEc40DaE837Fc4bE5c67993ddBd6F',
Expand All @@ -1400,7 +1344,7 @@ export const BRIDGE_MAP = {
'0x3ea9B0ab55F34Fb188824Ee288CeaEfC63cf908e': {
decimals: 18,
symbol: 'nETH',
origin: ['nETH', 'RFQ.ETH'],
origin: ['nETH'],
destination: ['nETH'],
swappable: [
'0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
Expand All @@ -1424,7 +1368,7 @@ export const BRIDGE_MAP = {
'0x82aF49447D8a07e3bd95BD0d56f35241523fBab1': {
decimals: 18,
symbol: 'WETH',
origin: ['nETH', 'RFQ.ETH'],
origin: ['nETH'],
destination: ['nETH'],
swappable: [
'0x3ea9B0ab55F34Fb188824Ee288CeaEfC63cf908e',
Expand Down Expand Up @@ -1455,7 +1399,7 @@ export const BRIDGE_MAP = {
'0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1': {
decimals: 18,
symbol: 'DAI',
origin: ['CCTP.USDC', 'nUSD', 'RFQ.USDC'],
origin: ['CCTP.USDC', 'nUSD'],
destination: ['CCTP.USDC'],
swappable: [
'0x17FC002b466eEc40DaE837Fc4bE5c67993ddBd6F',
Expand All @@ -1478,7 +1422,7 @@ export const BRIDGE_MAP = {
'0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8': {
decimals: 6,
symbol: 'USDC.e',
origin: ['CCTP.USDC', 'nUSD', 'RFQ.USDC'],
origin: ['CCTP.USDC', 'nUSD'],
destination: ['CCTP.USDC', 'nUSD'],
swappable: [
'0x17FC002b466eEc40DaE837Fc4bE5c67993ddBd6F',
Expand All @@ -1491,7 +1435,7 @@ export const BRIDGE_MAP = {
'0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9': {
decimals: 6,
symbol: 'USDT',
origin: ['CCTP.USDC', 'nUSD', 'RFQ.USDC'],
origin: ['CCTP.USDC', 'nUSD'],
destination: ['CCTP.USDC', 'nUSD'],
swappable: [
'0x17FC002b466eEc40DaE837Fc4bE5c67993ddBd6F',
Expand Down Expand Up @@ -1832,22 +1776,7 @@ export const BRIDGE_MAP = {
],
},
},
'534352': {
'0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4': {
origin: ['RFQ.USDC'],
destination: ['RFQ.USDC'],
swappable: [],
symbol: 'USDC',
decimals: 6,
},
'0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE': {
origin: ['RFQ.ETH'],
destination: ['RFQ.ETH'],
swappable: [],
symbol: 'ETH',
decimals: 18,
},
},
'534352': {},
'1313161554': {
'0x07379565cD8B0CaE7c60Dc78e7f601b34AF2A21c': {
decimals: 18,
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-interface/constants/chains/master.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -561,5 +561,5 @@ export const SCROLL: Chain = {
icon: scrollImg,
},
color: 'orange',
new: true,
isNew: true,
}
42 changes: 0 additions & 42 deletions packages/synapse-interface/constants/rfqMap.ts

This file was deleted.

Loading

0 comments on commit f35adb3

Please sign in to comment.