You are viewing a single comment's thread from:

RE: How to deploy your first VSC Hive Smart Contract

in Threespeak8 months ago

Great to see the progress on this!

You mentioned something that I was thinking about. 2 people want to swap tokens. Both have to show the other what they are giving, and then both have to signify they are Ready, after seeing what each is giving the other. Then a Trade button, which each has to click on their side, does the actual swap. The smart contract is the "broker" or "escrow account" and allows both parties to know in advance what they are giving and getting.

Currently if I do this, one person has to "go first" and send their tokens to the other. Then the other person will hopefully send their tokens when they receive what they expected from the first person. I have no problem going first with people I know, but that limits the set of people you can swap with! Doing it via smart contract makes it trustless. But I guess you still have to trust the smart contract. :)

I'll take a look at your documentation and maybe try to make such a smart contract. I imagine others might also make the same, as it seems like a common thing t want to do, and hopefully pretty easy to code up.

Thanks for all your work and this informative video!

Sort:  

Feel free to reach out to us on discord if you have any questions!