futarchy icon indicating copy to clipboard operation
futarchy copied to clipboard

Add token metadata to LP tokens

Open metaproph3t opened this issue 9 months ago • 3 comments

Similar to how conditional_vault has an add_metadata_to_conditional_tokens function and a corresponding script that allows us to upload metadata to conditional tokens, we should add a function / script for the AMM LP tokens.

metaproph3t avatar Apr 26 '24 03:04 metaproph3t

One thing that might cause issues when we upgrade between programs is if we reset the number of proposals back to 0 each time, then we might end up with overlapping metadata tokens.

Henry-E avatar Apr 30 '24 10:04 Henry-E

One thing that might cause issues when we upgrade between programs is if we reset the number of proposals back to 0 each time, then we might end up with overlapping metadata tokens.

Yea I've been noodling over this given the devnet has all this kind of problem already. I'll see if I can come up with some ideas and potential solutions for this in the coming days.

R-K-H avatar Apr 30 '24 13:04 R-K-H

For our UI and wallets to display sane human readable tokens, we need to be able to upload metadata for LP tokens as well as the p/f tokens.

Ideally this is modular and accepts parameters vs being hard coded and mapped in the scripts as it is right now.

The full idea from concept is:

  1. We take from DAO creation (when created) there are pass / fail images uploaded and stored in our DB (using cloudflare)
  2. We offer something similar for LP token (using cloudflare)

Then when proposal is created everything is pulling from DB, but in theory could be passed as a parameter (image url) and then it creates it accordingly.

See also: https://github.com/metaDAOproject/metadao-frontend/issues/77

R-K-H avatar May 07 '24 11:05 R-K-H