Skip to content

Commit

Permalink
chore: add fuel collateral to frontend (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 authored Dec 23, 2024
1 parent 7d88ae5 commit 90e0917
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
1 change: 0 additions & 1 deletion apps/frontend/public/icons/fuel-logo-round.svg

This file was deleted.

4 changes: 4 additions & 0 deletions apps/frontend/public/tokens/fuel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/frontend/src/configs/envs/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const assets: Record<string, string> = {
'0x239ed6e12b7ce4089ee245244e3bf906999a6429c2a9a445a1e1faf56914a4ab': 'weETH',
'0x1a7815cc9f75db5c24a5b0814bfb706bb9fe485333e98254015de8f48f84c67b':
'wstETH',
'0x1d5d97005e41cae2187a895fd8eab0506111e0e2f3331cd3912c15c24e3c1d82': 'FUEL',
'0x1186afea9affb88809c210e13e2330b5258c2cef04bb8fff5eff372b7bd3f40f':
'SolvBTC',
'0x7a4f087c957d30218223c2baaaa365355c9ca81b6ea49004cfb1590a5399216f':
Expand Down
19 changes: 13 additions & 6 deletions apps/frontend/src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fuel from '/public/icons/fuel-logo-round.svg?url';
import btc from '/public/tokens/bitcoin.svg?url';
import bnb from '/public/tokens/bnb.svg?url';
import eth from '/public/tokens/ethereum.svg?url';
import ezeth from '/public/tokens/ezeth.svg?url';
import fuel from '/public/tokens/fuel.svg?url';
import pzeth from '/public/tokens/pzeth.svg?url';
import sdai from '/public/tokens/sdai.svg?url';
import sway from '/public/tokens/sway.svg?url';
Expand All @@ -24,7 +24,6 @@ export type MarketConfiguration = {
export const FAUCET_URL = 'https://faucet-testnet.fuel.network/';

export const FAUCET_AMOUNTS: Record<string, number> = {
UNI: 50,
BTC: 1,
USDC: 1000000,
USDT: 1000000,
Expand All @@ -33,6 +32,11 @@ export const FAUCET_AMOUNTS: Record<string, number> = {
sDAI: 100000,
weETH: 1,
wstETH: 1,
// Testnet only
UNI: 50,
pzETH: 1,
SolvBTC: 1,
'SolvBTC.BBN': 1,
};

export const SYMBOL_TO_ICON: Record<string, any> = {
Expand All @@ -42,13 +46,14 @@ export const SYMBOL_TO_ICON: Record<string, any> = {
SWAY: sway,
FUEL: fuel,
BTC: btc,
UNI: uni,
BNB: bnb,
ezETH: ezeth,
pzETH: pzeth,
sDAI: sdai,
weETH: weeth,
wstETH: wsteth,
// Testnet only
UNI: uni,
pzETH: pzeth,
SolvBTC: '/tokens/solvbtc.png',
'SolvBTC.BBN': '/tokens/solvbtcbbn.png',
};
Expand All @@ -58,13 +63,15 @@ export const SYMBOL_TO_NAME: Record<string, string> = {
USDC: 'USDC',
USDT: 'USDT',
BTC: 'Bitcoin',
UNI: 'Uniswap',
BNB: 'BNB',
ezETH: 'ezETH',
pzETH: 'pzETH',
sDAI: 'sDAI',
weETH: 'weETH',
wstETH: 'wstETH',
FUEL: 'FUEL',
// Testnet only
UNI: 'Uniswap',
pzETH: 'pzETH',
SolvBTC: 'SolvBTC',
'SolvBTC.BBN': 'SolvBTC.BBN',
};
2 changes: 2 additions & 0 deletions apps/indexer-sentio/src/configs/envs/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const assets: Record<string, string> = {
'0x239ed6e12b7ce4089ee245244e3bf906999a6429c2a9a445a1e1faf56914a4ab': 'weETH',
'0x1a7815cc9f75db5c24a5b0814bfb706bb9fe485333e98254015de8f48f84c67b':
'wstETH',
'0x1d5d97005e41cae2187a895fd8eab0506111e0e2f3331cd3912c15c24e3c1d82': 'FUEL',

'0x1186afea9affb88809c210e13e2330b5258c2cef04bb8fff5eff372b7bd3f40f':
'SolvBTC',
'0x7a4f087c957d30218223c2baaaa365355c9ca81b6ea49004cfb1590a5399216f':
Expand Down

0 comments on commit 90e0917

Please sign in to comment.