From 3f15985bf5169efc48a4f49d38eb80efe5543ee3 Mon Sep 17 00:00:00 2001 From: Tim Olson <> Date: Thu, 2 Nov 2023 17:23:48 -0400 Subject: [PATCH] mockenv deployment rework; price and setprice scripts --- src/components/TokenChip.vue | 2 +- src/components/TokenRow.vue | 2 +- src/components/Vault.vue | 3 ++- src/knownTokens.js | 24 ++++++++++++------------ 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/components/TokenChip.vue b/src/components/TokenChip.vue index 447e661..dd78033 100644 --- a/src/components/TokenChip.vue +++ b/src/components/TokenChip.vue @@ -1,6 +1,6 @@ diff --git a/src/components/TokenRow.vue b/src/components/TokenRow.vue index 2cd7d85..2331266 100644 --- a/src/components/TokenRow.vue +++ b/src/components/TokenRow.vue @@ -35,7 +35,7 @@ const fixed = computed(() => FixedNumber.fromValue(props.amount, token.decimals, width: 256, decimals: token.decimals })) -const imageSrc = computed(() => null) +const imageSrc = computed(() => token.image) const withdrawing = ref(false) diff --git a/src/components/Vault.vue b/src/components/Vault.vue index d123ebe..be7e254 100644 --- a/src/components/Vault.vue +++ b/src/components/Vault.vue @@ -23,10 +23,11 @@ --> - + No Vault Yet Multiple vaults are not yet supported Create an order first, then your vault account will appear here to accept a deposit of trading funds. + My Vault {{s.vaults.length>1?'#'+(num+1):''}} diff --git a/src/knownTokens.js b/src/knownTokens.js index 5e16d23..18d3da4 100644 --- a/src/knownTokens.js +++ b/src/knownTokens.js @@ -4,7 +4,7 @@ const known_chains = [ { name: 'Arbitrum One', id: 42161, - icon: null, + image: null, } ] @@ -13,77 +13,77 @@ const arbitrumTokens = [ name: 'Wrapped Ether', symbol: 'WETH', decimals: 18, - icon: null, + image: null, address: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', }, { name: 'USD Coin (Bridged)', symbol: 'USDC.e', decimals: 6, - icon: null, + image: null, address: '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8', }, { name: 'Tether USD', symbol: 'USDT', decimals: 6, - icon: null, + image: null, address: '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9', }, { name: 'Wrapped Bitcoin', symbol: 'WBTC', decimals: 8, - icon: null, + image: null, address: '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f', }, { name: 'DAI Stablecoin', symbol: 'DAI', decimals: 18, - icon: null, + image: null, address: '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1', }, { name: 'Uniswap', symbol: 'UNI', decimals: 18, - icon: null, + image: null, address: '0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0', }, { name: 'Chainlink Token', symbol: 'LINK', decimals: 18, - icon: null, + image: null, address: '0xf97f4df75117a78c1A5a0DBb814Af92458539FB4', }, { name: 'USD Coin (Native)', symbol: 'USDC', decimals: 6, - icon: null, + image: null, address: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831', }, { name: 'TrueUSD', symbol: 'TUSD', decimals: 18, - icon: null, + image: null, address: '0x4D15a3A2286D883AF0AA1B3f21367843FAc63E07', }, { name: 'Lido DAO Token', symbol: 'LDO', decimals: 18, - icon: null, + image: null, address: '0x13Ad51ed4F1B7e9Dc168d8a00cB3f4dDD85EfA60', }, { name: 'Arbitrum', symbol: 'ARB', decimals: 18, - icon: null, + image: null, address: '0x912CE59144191C1204E64559FE8253a0e49E6548', }, ];