Open Costa769 opened 11 months ago
Two solutions :
Create img on the client and store it on a server
Provide a link to a server on the twitter preview. This link points to a server that generate the image based on some params.
Pro: No need to store the image Cons: We need to recreate the card on the server, svg graph included, which create 2 source of truth. Or we run a full react app on the server and reuse the component, which will require a lot of config.
Create a snapshot of the card, potentially we can create an off-screen card specific to this, upload it to a storage and set the link in the twitter preview.
Pro: Reuse exisiting code Cons: Need a storage
We can use a public IPFS gateway to store the file to avoid managing our own storage. By default IPFS's garbage collector will remove this img after a period of time if not used.
Twitter icon ->will allow users to share their strategy stats on twitter. Clicking on the icon will create a new tweet with pre-populated text. On a later stages we will consider adding dynamic images to the tweets
My #buylow #sellhigh trading strategy between ${base} / ${quote} tokens, reached {ROI} ROI! buy low, sell high, repeat.
Create your own strategy at carbondefi.xyz
Smart trading is done on #carbondefi.
This #buylow #sellhigh trading strategy between ${base} / ${quote} tokens, reached {ROI} ROI! buy low, sell high, repeat.
Create your own strategy at carbondefi.xyz
My $(Base} / ${Quote} position is {ROI}% on @carbondefixyz Copy my automated strategy or create your own recurring limit orders at carbondefi.xyz 👈