This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Emerald Vault is a simple Bitcoin Cash DAO template which acts as a fixed-term deposit savings vault with optional rewards scheme.
Imagine a big empty vault with a bunch of numbered slots, each slot can fit a safebox. When you want to make a deposit, you put your BCH into a safebox and place it into the vault's next available slot. The moment you insert your safebox into the slot a click is heard, it's locked in position, and a keycard is released from an opening next to the safebox. You try to use it to take out the safebox but you can't, you hear "access denied, timelock not expired!". Ok, so the keycard will be able to access the safebox, but not before some timer expires. The keycard has your slot# and deposited amount printed on it, it's an NFT that you can transfer as easily as BCH! You notice something else too, the amount printed on the keycard is a little more than what you actually put in, how can that be? When you put the box in, the vault's system dropped a little BCH into your safebox! From where did it come from? From anyone. Any user can add to the vault's rewards pool to incentivize depositors.
At some point in the future, the timers in the vault will expire. Whomever comes to the vault with the keycard can insert it, and take out and open the safebox! The NFT gets destroyed and BCH is released!
Does this make sense?
Here's the TX flow diagram: https://i.imgur.com/xVwk4So.png
Here are the actual TXes on testnet:
- Designer creating the "DAO Blueprint" and funding it with a bounty initial reward pool: https://chipnet.chaingraph.cash/tx/658b41da07fad0bec4e36d5dd97be66e7505cce0cd73ee394e23290c8c5a3ebf
- User claiming a bounty to create the DAO instance with the token genesis TX: https://chipnet.chaingraph.cash/tx/e0f770d9da09c417ce61a152e981d384dc64f069e9297d822dc45f1eb6f28295
- User deposit #01 https://chipnet.chaingraph.cash/tx/ea2b32b5ad1b57886d02fcf5e10260da6ffb0c26d5c9152b8859b9370b03da0a
- User adding to reward's pool: https://chipnet.chaingraph.cash/tx/6462d2c7865bcf24719fb607a81b3d446f6b5d43b970307192d1652da67cf773
- User deposit #02: https://chipnet.chaingraph.cash/tx/89b860ce6d7016ab493875d2bc7bad8e8f8ddc2631afa797e4fed296c32e1a23
- User withdrawal from deposit #02: https://chipnet.chaingraph.cash/tx/7df4d18ae8c5e7c896eff08af9e5f8cf9c25404d9dd16d64bd41f197aaddd7f8
Here's the BitAuthIDE template: https://alpha.ide.bitauth.com/import-gist/0709df6ec68d61b7aaa1bfd2dab7a3e9
PS BitAuthIDE is awesome!! It's like a power-user BCH smart wallet and I successfully used it to:
- Design a BCH DAO in WYSIWYG mode while debugging all spending paths
- Import my testnet wallet's xpriv to sign for actual on-chain UTXOs
- Build & broadcast the TX!
It's not a full wallet, tho, as it requires manual labor to select UTXOs, bring their data into the IDE, and adjust input/output amounts etc., and then copy&paste the produced raw TX to broadcast it.
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/cashtokens/...