futarchy
futarchy copied to clipboard
Add token metadata to LP tokens
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.
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.
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.
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:
- We take from DAO creation (when created) there are pass / fail images uploaded and stored in our DB (using cloudflare)
- 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