AnyHedge Beta is Live!

28 913
Avatar for GeneralProtocols
4 years ago (Last updated: 3 years ago)

AnyHedge is the flagship protocol of General Protocols (GP).

  • To a speculator, AnyHedge is a way to bet on the price of BCH going up or down.

  • To a regular BCH user, AnyHedge is a way to remove price volatility for a period of time without having to sell BCH for another asset like a stablecoin.

  • To a DeFi builder, AnyHedge is a non-custodial BCH short/long derivative that can be fully anonymous or fully KYC compliant depending on needs.

Anyone can use GP's open source tools to create and verify AnyHedge contracts with zero barrier to entry. The same tools can submit contracts to the GP redemption service for timely and reliable redemptions. GP invites you to experiment with the beta and create new ways to long and short in a trustless peer to peer way. You can see how the contract works here: anyhedge.com/how-it-works/#simulator .

Technical Resources

1. Create and verify contracts
https://www.npmjs.com/package/@generalprotocols/anyhedge
Public key for the beta oracle, needed when creating contracts:
0273ee49099f0a09be514cbb45756bf49ad256d0a6de993107e98c89c16b6fa84e

2. [Optional] Directly access the beta oracle price feed or even create your own.
https://www.npmjs.com/package/@generalprotocols/price-oracle
Connect to oracles.generalprotocols.com to listen for broadcasted oracle messages

Best Practices During the AnyHedge Beta

  • Remember that the beta uses US Cents. E.g. 10 USD is 1000 Cents.

  • Start with small hedge values such as 1 USD (100 Cents) before trying larger ones. The AnyHedge libraries impose a hard upper limit of 10,000 USD (1,000,000 Cents).

  • Fund both hedge and long sides of a contract in one transaction.

  • Do not reuse BCH addresses in contracts. Reusing exact contract parameters will result in the same contract address. Currently the beta redemption service settles all funds on a contract address in one transaction that sweeps excess as miner fees. This will be improved with later updates.

  • GP will wind down our beta oracle and beta redemption service with a 2-week notice. In order to ensure that all your beta contracts will be settled, GP recommends setting short contract maturity between immediate (0 blocks) and 3 days (432 blocks).

  • GP will establish the process for redemption service fees during the beta period, but at the beginning there are no redemption service fees. Creation and validation of contracts is part of the open source protocol created by GP and will always be free.

Get in touch:

General Protocols Blog

This article forms part of the General Protocols Blog, a collection of cross-platform links showcasing our team's community activity, Bitcoin Cash projects, UTXO development, and general crypto musings.

52
$ 8.52
$ 5.00 from @molecular
$ 1.00 from @btcfork
$ 1.00 from @Bon
+ 7
Avatar for GeneralProtocols
4 years ago (Last updated: 3 years ago)

Comments

This translate Only people can Herring chinese language can reading my article.😊😋😚

AnyHedge是通用协议(GP)的旗舰协议。

对于投机者而言,AnyHedge是一种押注BCH价格上涨或下跌的方法。

对于普通的BCH用户而言,AnyHedge是一种消除一段时间内价格波动的方法,而无需出售BCH来购买另一种资产(如稳定币)。

对于DeFi构建者而言,AnyHedge是非托管BCH短/长衍生工具,可以根据需要完全匿名或完全符合KYC。

任何人都可以使用GP的开源工具来创建和验证具有零进入门槛的AnyHedge合同。相同的工具可以将合同提交给GP兑换服务,以进行及时可靠的兑换。GP邀请您尝试使用Beta,并以一种不信任的点对点方式创建新的做多和做空方法。您可以在以下位置查看合同的工作方式:anyhedge.com/how-it-works/#simulator

技术资源 1.创建和验证合同 https://www.npmjs.com/package/@generalprotocols/anyhedge Beta oracle的公钥,创建合同时需要: 0273ee49099f0a09be514cbb45756bf49ad256d0a6de993107e98c89c16b6fa84e

  1. [可选]直接访问beta oracle价格供稿,甚至创建自己的。 https://www.npmjs.com/package/@generalprotocols/price-oracle 连接以oracles.generalprotocols.com收听广播的oracle消息

AnyHedge Beta期间的最佳做法 请记住,测试版使用美分。例如,10美元为1000美分。

从较小的对冲值开始,例如1美元(100美分),然后再尝试较大的对冲值。AnyHedge库施加了10,000美元(1,000,000美分)的硬上限。

通过一次交易为合同的对冲和多头双方提供资金。

不要在合同中重复使用BCH地址。重用确切的合同参数将得到相同的合同地址。目前,Beta赎回服务在一笔交易中将所有资金结算在合同地址上,该交易清除了多余的矿工费用。以后的更新将对此进行改进。

GP将在2周内终止我们的Beta oracle和Beta兑换服务。为了确保您所有的beta合同都能得到解决,GP建议在即期(0个交易日)和3天(432个交易日)之间设置短期合约到期。

GP将在测试版期间建立兑换服务费的流程,但一开始没有兑换服务费。合同的创建和确认是GP创建的开源协议的一部分,并且将始终免费。

保持联系: 电报:t.me/AnyHedge

电子邮件:marcel.chuo@generalprotocols.com

网站:anyhedge.com/contact

电报直接消息:@marcelchuo

$ 0.00
3 years ago

Nice article

$ 0.00
4 years ago

Good article

$ 0.00
4 years ago

Nice

$ 0.00
4 years ago

This is all really fantastic! 🤩 Looking forward to the first DeFi app on Bitcoin 🧐

buuttt.. if you had an animated vid or even just a screencast walkthrough of the whole process, now THAT would really get folks up-to-speed with your new platform .. would certainly prefer LBRY, but I'll watch if you put it up on YouTube 😒

$ 0.10
4 years ago

This will come, but since we're a new start-up and we need the initial revenue, our priorities right now is to complete the first exchange integration and get a product on the street.

For now, consider this an invitation to be an early adopter - it might not be the most graceful, and it might still have bugs - but it's there and you can use it right now.

$ 0.10
4 years ago

tl;dr need short explainer posts like what you did for electrum-cash

NO WAY DUDE!! you gotta show me how it works .. I'd have already been in that "early adopter" soup, but I barely understand the concepts of AnyHedge let alone how to begin USING it .. went to https://anyhedge.com/get-started/

Want to try it? Visit Detoken

but that doesn't appear to be live yet

then there's https://anyhedge.com/how-it-works/ which has a very elaborate calculation widget at the bottom; but I have no idea what any of that means (need a guide or tooltips)

for folks to understand how to get going with AnyHedge, some form of walkthrough is critical (if not vid, then screenshots would do fine) .. not afraid of command-line, i would quickly block a day to spend getting familiar with the platform, but I don't know what I'm supposed to be expecting..

and it might still have bugs

i use DEET, no worries

$ 0.00
4 years ago

I guess that's what this readcash post is all about, it linked to the anyhedge-library on npm, which should show this readme file: https://gitlab.com/GeneralProtocols/anyhedge/library/-/blob/development/README.md

The list of functions can be found here: https://generalprotocols.gitlab.io/anyhedge/library/AnyHedgeManager.html

To get a better look into the data structures, either look into the typescript declarations here: https://gitlab.com/GeneralProtocols/anyhedge/library/-/blob/development/lib/interfaces.ts

... or look at the example test data here: https://gitlab.com/GeneralProtocols/anyhedge/library/-/blob/development/test/usecases/hedge10week.ts

As for understanding how the contract works, the long story is in the whitepaper here: https://gitlab.com/GeneralProtocols/anyhedge/whitepaper

... but the simulator on the anyhedge website is the simplest showcase/explanation we can give today: just enter an amount on either the long or the short side, how much volatility in percent the contract should protect against for the short/hedge side and then drag the slider at the bottom to see what the outcome would be at different price levels.

$ 0.00
4 years ago

just enter an amount on either the long or the short side

this seems important to understand, and yet I have no idea what it means 🤔

thanks for the links; will review and follow-up once I've gotten my feet wet

$ 0.00
4 years ago

Anyhedge is a risk-trading contract. There is three parties to the contract, the oracle (which has no funds, but is used a trusted price source), the hedge/short (seeks stability, is selling their risk) and the long (seeks speculation, buys the risk).

The hedge/short party inputs some bitcoin cash matching a specific value in fiat, and the long inputs some bitcoin cash as a collateral pool. If the price goes down, some bitcoin cash is transferred from the long to the hedge. If the price goes up, some bitcoin cash is transferred from the hedge to the long.

If the contract needs to transfer more bitcoin cash from either side to the other, than exist on the originating side, the contract is liquidated and all funds are paid out.

Example: say you have $20 in bitcoin cash today, and you want to buy something for $20 a month from now. Since bitcoin cash value is volatile, it wouldn't make much sense to just wait and hope. By putting your $20 worth of bitcoin cash into an anyhedge contract that matures after a month, you would get $20 worth of bitcoin cash out again, at whatever price BCH as at that time.

$ 0.10
4 years ago

the hedge/short (seeks stability, is selling their risk) and the long (seeks speculation, buys the risk)

ok, that covers the abc's of AnyHedge 🤔

By putting your $20 worth of bitcoin cash into an anyhedge contract that matures after a month, you would get $20 worth of bitcoin cash out again, at whatever price BCH as at that time.

yes! this is the "practical" application as I understand it .. imo, this should be implemented into the model for an SLP stablecoin


one question I had regarding the model, is there is no mention of time; so how does your $20 in a month example get plugged into the model's params?

$ 0.00
4 years ago

You need to estimate the blockheight at which the contract should mature. The libraries takes a parameter for the number of blocks the contract should run for.

I would be thrilled to see someone make a functional and attractive stablecoin on this, as that would mean the stablecoin would by definition have auditable and proven reserves.

$ 0.00
4 years ago

The libraries takes a parameter for the number of blocks the contract should run for.

i see .. will make time to check out the libraries .. just need to see it run once from end-to-end, then I should hopefully have a much better grasp

the stablecoin would by definition have auditable and proven reserves

something like MakerDAO's Dai is what I envision 🧐

$ 0.00
4 years ago

What Jonathan said :D However yeah, that explainer video is exactly what has been on my mind today. We will get that also.

$ 0.10
4 years ago

that explainer video is exactly what has been on my mind today. We will get that also.

yeah, the https://anyhedge.com/get-started/ doesn't really tell me anything about getting started .. not sure when the exchange/api will be ready for "beta" (I'm avail for "alpha") testing but at that point there really should be a reference/use-case/article for the "practical" application(s) of AnyHedge

$ 0.00
4 years ago

AnyHedge is a good development as BCH needs futures trading platforms to boost its ass adoption.

$ 0.00
4 years ago

ass adoption

;-)

$ 0.00
4 years ago

Excellent

$ 0.00
4 years ago

Nice write up

$ 0.00
4 years ago

I don't have enough bitcoins on my own Because I don't know how to be open or use it To everyone want to help me Pleaseeeee donate me a bitcoins Any 0.0001 bitcoin plsss

$ 0.00
4 years ago

I don't have enough bitcoins on my own Because I don't know how to be open or use it To everyone want to help me Pleaseeeee donate me a bitcoins Any 0.0001 bitcoin plsss

$ 0.00
4 years ago

maybe try to earn some BCH?

There are many options, but be careful, there are also many scammers.

$ 0.00
4 years ago

Need to try it out and will let you know the review

$ 0.00
4 years ago

Very good article

$ 0.00
4 years ago

it is investment?

$ 0.00
4 years ago

Good sharing!

$ 0.00
4 years ago