Skip to content

Instantly share code, notes, and snippets.

@ajb413
Created March 7, 2022 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajb413/0bb45c198328b2e9fed559e6c509117f to your computer and use it in GitHub Desktop.
Save ajb413/0bb45c198328b2e9fed559e6c509117f to your computer and use it in GitHub Desktop.
Torrey's instructions for adding a new asset to the Compound app at https://app.compound.finance

Hey, I noticed that no one actually added the newest asset, USDP, to the Compound Front-end aka Palisade and I wanted to show the steps so that others can feel comfortable adding in the future for other assets added to the protocol.

The 1st step is updating the contract address and abi config repo containing the newest token added. This step can be tricky to get right as the config repo is how we keep track of all abis and addresses used. This was done and merged here: compound-finance/compound-config#49

Step 2 is to add the the new styles for the asset in the shared components repo. A regular asset icon is needed as well as cToken asset as shown here: https://github.com/compound-finance/compound-components/pull/58/commits/88a3cc2dfe2b2f72c0f15b8fc321ecc601ed1370

The 3rd and final step is to open a PR on Palisade which updates the dependencies for the config repo and the shared components repo as shown here: compound-finance/palisade#12

I'm going to merge and get this new version deployed here soon but it's actually pretty straightforward for anyone to do in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment