thr0wn / options.cash

On-chain options on Bitcoin Cash

Home Page:https://bchoptions.cash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

options.cash

options.cash: On-chain options on Bitcoin Cash

Try it now: https://bchoptions.cash

Netlify Status


πŸš€ TL;DR: Just Run it!

yarn start

πŸ” Project Overview

options.cash aims to bring on-chain options to Bitcoin Cash through covenant contracts and price oracles. Options are a type of derivative in which the investor pays for the right to optionally buy or sell an asset at an agreed-upon price and date.

With DeFi protocols like AnyHedge gaining more adoption on BCH, our goal is to serve as a tool to manage portfolio risks and returns.

The idea is to deliver a user-friendly UX to trade options of some SLP/BCH pairs.


πŸŽ₯ Presentation Video


πŸ–Ό Screenshots and gifs

Trading screen! Embedded wallet!

πŸ’‘ Inspiration

Options can be really helpful to protect a portfolio, as someone interested in getting it only needs to pay a relatively small premium. On the other hand, one may want to sell the rights of an asset in order to get some cash in the present. The idea to build it on-chain comes while studying stock options, and Cash Script will help to turn this real. Ethereum already has on-chain options, like https://www.hegic.co/, but the high gas fees make it much less attractive.


❓ What it Does

Cash Script Covenants are the final pieces to have it done on-chain. With convenats only few steps will be required, they are:

options.cash diagram


1. Option Writer writes an intermediary contract

In this step, Option Writer creates a contract locking some asset (SLP token), and at any moment can abort and recover it.

2. Option Buyer pay the premium to the Option Writer, and a new contract is generated (in a single transaction)

3. At the expiration date, the Option Buyer decides to execute or not the contract

If the buyer does not execute the contract, the Option Writer will be able to restore its funds without any loss.

We decided to create an embedded wallet to make some steps easier, but it could be done completely with any wallet supporting our protocol.


πŸŽ› How We Built It

Technologies:


πŸ‘Š Declarations

We used the experience acquired building Mint to create a great UX!

It's been a great experience to participate in this Hackathon and learn more about derivatives, options strategies, Cash Script, video editing, and more.


πŸš€ What’s Next

We did not finish it yet! Progress:

  • Git repository
  • Domain options.cash
  • Most important UI elements
  • Understand how to do this with Cash Script
  • Embedded wallet
  • Run the price oracles
  • Write options, Trade options and Execute options

We will proceed with the missing steps in the next days, and then release an MVP!

πŸ™ Help us to build it

BCH Address SLP Address

bitcoincash:qprwefsn9qnz9zxx72948n7s52lk93nfpqqq5tda9t

simpleledger:qrt9q69sypxxaypugxptaaz57l4gnq0x4yvl0ns0f2

About

On-chain options on Bitcoin Cash

https://bchoptions.cash


Languages

Language:TypeScript 95.5%Language:HTML 4.5%