ethereum / clrfund

Eth2 CLR project built on clr.fund

Home Page:https://eth2clrfund.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace copy specific to Arbitrum

samajammin opened this issue · comments

Refactor all hard-coded references in favor of more flexible solution for any clr.fund instance.

What should approach here be? ENV variable?
I believe we could pull chain name based off VUE_APP_ETHEREUM_API_CHAINID - we have a label field on every chain here: https://github.com/ethereum/clrfund/blob/develop/vue-app/src/plugins/Web3/constants/chains.ts#L18

Replace hard-coded references:

This also may require some icon & copy changes, e.g. on homepage:
Image 2021-10-05 at 1 38 27 PM

Should we create a folder for all the assets? The folder name could the same as the chain in the /src/plugins/Web3/constants/chains.ts file. Then in our app we reference images based on that.

Actually we already have that logo prop for each chain.