Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: antidamnation on July 16, 2024, 01:10:35 PM



Title: What's wrong with DLCFDs?
Post by: antidamnation on July 16, 2024, 01:10:35 PM
I recently read about something called DLCFD: Discreet Log Contract for Difference, which aims to stabilize Bitcoin's price. However, I haven't seen much interest in it. Some people have implemented it, like ItchySats, but I don't understand why no one seems to care! It benefits both parties involved—the one betting on the price and the one getting a stabilized Bitcoin. I know there's a trust issue with the oracles, but there are ways to handle that too. Sorry if this is a dumb question, I'm just a newbie trying to figure it all out.


Title: Re: What's wrong with DLCFDs?
Post by: tranthidung on July 16, 2024, 01:42:05 PM
I recently read about something called DLCFD: Discreet Log Contract for Difference, which aims to stabilize Bitcoin's price.
Bitcoin is a Proof of Work (PoW), mineable blockchain and you can not have smart contracts with interaction of Oracle to stabilize its price. With altcoins, you can but there are complicated mechanism and many factors that can affect the price. Oracle is not like a magic stick to do everything. When it works, you can see it magical but when it fails, you will see nightmare and death spiral too.

Quote
However, I haven't seen much interest in it. Some people have implemented it, like ItchySats, but I don't understand why no one seems to care!
It's my first time I have ever known of ItchSats, is it a project you're working with as a content creator or brand shiller?

Initially I feel it like this, and did not want to reply your post but let's buy benefit of the doubt.


Title: Re: What's wrong with DLCFDs?
Post by: antidamnation on July 16, 2024, 03:29:35 PM
first of, thanks a lot for your reply.


Quote
you can not have smart contracts
So are you suggesting that this whole DLC thing is a scam or something along those lines?

Quote
when it fails
sorry as I said I'm just a newbie trying to figure it. I should probably read a lot more. but I thought there are ways to use multiple Oracles so that doesn't become a nightmare.

and no I don't have anything to do with ItchySats, actually this was my own(possibly terrible) idea, when I searched, that came to my attention.


Title: Re: What's wrong with DLCFDs?
Post by: 348Judah on July 16, 2024, 03:38:43 PM
Don't get him wrong OP, what he is trying to let you know is that bitcoin price cannot be stabilized with the use of PoW, same way we cannot change this as well from PoW to PoS, never expect that bitcoin price get stabilize, what we are considering about bitcoin is the fact that it's a volatile digital currency and in this are many getting their own respective opportunities in it for their profitable investment and adoption, no system, network or program that can centralized bitcoin or stabilizes its prize.


Title: Re: What's wrong with DLCFDs?
Post by: Faisal2202 on July 16, 2024, 04:17:27 PM
Don't get him wrong OP, what he is trying to let you know is that bitcoin price cannot be stabilized with the use of PoW, same way we cannot change this as well from PoW to PoS, never expect that bitcoin price get stabilize, what we are considering about bitcoin is the fact that it's a volatile digital currency and in this are many getting their own respective opportunities in it for their profitable investment and adoption, no system, network or program that can centralized bitcoin or stabilizes its prize.
You are right it can't be stabilized, as a matter of fact, nothing in the world is stabilized anymore. But some are less volatile while some are more. BTC is highly volatile because its decentralized, and its price is influenced by demand and supply, and the fear and greed among people. If people think its buying time or to fill their bags, eventually its price will increase, and once they think collectively that its selling time the price will decrease.

This factor makes it highly volatile incompared to fiats because the demand and supply of fiats can be managed by the government with certain fiscal policies but some are failed to do that either and there local currency is now out of there hands due to there own vulnerable policies. In short, you will find a lot of fiat currencies as well, which are highly volatile.


Title: Re: What's wrong with DLCFDs?
Post by: davis196 on July 17, 2024, 05:43:00 AM
I recently read about something called DLCFD: Discreet Log Contract for Difference, which aims to stabilize Bitcoin's price. However, I haven't seen much interest in it. Some people have implemented it, like ItchySats, but I don't understand why no one seems to care! It benefits both parties involved—the one betting on the price and the one getting a stabilized Bitcoin. I know there's a trust issue with the oracles, but there are ways to handle that too. Sorry if this is a dumb question, I'm just a newbie trying to figure it all out.


You "read something" but you don't provide link to the source of information. Why?
A contract for a difference(or CFD) is term from the financial markets. Trader A and Trader B make a CFD about an asset with a base price of 100. When the asset price does from 100 to 130, trader A pays 30 units to Trader B. If the asset price drops down from 100 to 70, trader B pays 30 units to trader A. This is the most oversimplified way for me to explain this. It's basically a way for some traders to hedge the risk of drastic price movements. I don't know anything about "discreet log" contracts for a difference and I don't know anything about this ItchySats project. OP, perhaps you could elaborate more on what you know about ItchySats.


Title: Re: What's wrong with DLCFDs?
Post by: antidamnation on July 17, 2024, 03:03:24 PM

You "read something" but you don't provide link to the source of information. Why?
A contract for a difference(or CFD) is term from the financial markets. Trader A and Trader B make a CFD about an asset with a base price of 100. When the asset price does from 100 to 130, trader A pays 30 units to Trader B. If the asset price drops down from 100 to 70, trader B pays 30 units to trader A. This is the most oversimplified way for me to explain this. It's basically a way for some traders to hedge the risk of drastic price movements. I don't know anything about "discreet log" contracts for a difference and I don't know anything about this ItchySats project. OP, perhaps you could elaborate more on what you know about ItchySats.

The below link was the best I could find about DLC:
https://river.com/learn/terms/d/discreet-log-contract-dlc/

I don't know much about ItchySats, I think they've just implemented the idea.


Title: Re: What's wrong with DLCFDs?
Post by: antidamnation on July 17, 2024, 03:12:20 PM
This factor makes it highly volatile incompared to fiats because the demand and supply of fiats can be managed by the government with certain fiscal policies but some are failed to do that either and there local currency is now out of there hands due to there own vulnerable policies. In short, you will find a lot of fiat currencies as well, which are highly volatile.

I get it. I'm well aware of Oracle's trust issues. But think about it: there are folks out there betting on Bitcoin's long-term price, and people in high-inflation countries who crave stable digital money. This got me thinking—there's a real opportunity here for both sides!


Title: Re: What's wrong with DLCFDs?
Post by: d5000 on July 17, 2024, 04:42:53 PM
In contrast to most others in this thread I do consider DLCs an interesting technology. There was some buzz 1-2 years ago about it but it seemed then the euphoria died down a bit.

There was a thread here last year (https://bitcointalk.org/index.php?topic=5463015.new#new) and I opened one in Spanish (https://bitcointalk.org/index.php?topic=5343349.new#new) but not much interest has been shown.

Discreet Log Contracts (and in particular DLCFDs) are not so much about stabilizing the Bitcoin price but about giving people the possibility to hedge against price swings, similar to options. Basically there is one party who wants to leverage their long position and the other party who wants to get a stable value, renouncing to profit from price swings.

Just synthetizing the concept:

- Alice wants a stable price, Bob wants to leverage the position, Carol is an oracle knowing the current price in USD. So they agree on a contract that, when the contract expires (e.g. after 30 days), Alice will receive Bitcoins for the same value in USD than at the contract's start, while Bob will receive the remaining coins (minus a fee for Carol). If Bitcoin goes up, Bob will receive more Bitcoins.
- Alice and Bob create an address with a Bitcoin Script contract which includes a signature from Carol (see below) and transfer funds F to it, in the simplest case 50% of the funds are provided by Alice and 50% by Bob.
- Then Alice and Bob sign several off-chain transactions where the funds get divided, after expiration, according to a proportion like the terms of the contract, i.e. where Alice always receives the same value in USD, for different Bitcoin prices (e.g. for a price of 50k, 51k, 52k ... up to 80k).
- Once the deadline arrives Carol (the oracle) provides a signature which corresponds to the proportion which distributes the funds correctly for the current Bitcoin price. i.e. where Alice gets a BTC amount which corresponds to the USD value of her initial transfer to the multisig address.

Carol has to be trusted to not cooperate neither with Alice nor Bob, otherwise she could provide a signature for the "wrong" price. But Carol can't steal funds.

Why are these contracts not more popular? I honestly don't know. It's possible that the high on-chain fees in the last year have delayed their acceptance. But these contracts are also possible using Lightning - however Lightning currently is also stagnating.

Bitcoin is a Proof of Work (PoW), mineable blockchain and you can not have smart contracts with interaction of Oracle to stabilize its price.
In Discreet Log Contracts, the oracle does not have any direct incidence on the Bitcoin price (like in Dai for example). Its function is to "post" the current Bitcoin price so the two parties who engage in the DLC can settle their contract. But it's a purely private contract between two parties, see above :)


Title: Re: What's wrong with DLCFDs?
Post by: Faisal2202 on July 17, 2024, 05:46:07 PM
I get it. I'm well aware of Oracle's trust issues. But think about it: there are folks out there betting on Bitcoin's long-term price, and people in high-inflation countries who crave stable digital money. This got me thinking—there's a real opportunity here for both sides!
As d5000 explained with examples Carol the middleman has to be trusted although she can't steal the funds but can disrupt the deal. Besides this trust issue, I don't think there is a need for anything else to conclude that why this has not been implemented already. And speaking of fold who are betting on Bitcoin's long-term price, which I think is not a bet because it is totally based on analysis, and people who have a strong desire for stable digital money, they can use any for example USDT, and there are dozens of other stable digital currencies that they can use and can easily make such deal/contracts.

Why do you think people are craving for digital currencies and help me understand how this is going to help people betting on Bitcoin's long-term price.


Title: Re: What's wrong with DLCFDs?
Post by: antidamnation on July 17, 2024, 06:26:20 PM
- Alice wants a stable price, Bob wants to leverage the position, Carol is an oracle knowing the current price in USD. So they agree on a contract that, when the contract expires (e.g. after 30 days), Alice will receive Bitcoins for the same value in USD than at the contract's start, while Bob will receive the remaining coins (minus a fee for Carol). If Bitcoin goes up, Bob will receive more Bitcoins.
- Alice and Bob create an address with a Bitcoin Script contract which includes a signature from Carol (see below) and transfer funds F to it, in the simplest case 50% of the funds are provided by Alice and 50% by Bob.
- Then Alice and Bob sign several off-chain transactions where the funds get divided, after expiration, according to a proportion like the terms of the contract, i.e. where Alice always receives the same value in USD, for different Bitcoin prices (e.g. for a price of 50k, 51k, 52k ... up to 80k).
- Once the deadline arrives Carol (the oracle) provides a signature which corresponds to the proportion which distributes the funds correctly for the current Bitcoin price. i.e. where Alice gets a BTC amount which corresponds to the USD value of her initial transfer to the multisig address.

Can multiple oracles be used to mitigate the risk, or is it limited to a single oracle per contract?


Title: Re: What's wrong with DLCFDs?
Post by: antidamnation on July 17, 2024, 06:33:43 PM

Discreet Log Contracts (and in particular DLCFDs) are not so much about stabilizing the Bitcoin price

but in theory it's possible to implement such a mechanism. Am I right?


Title: Re: What's wrong with DLCFDs?
Post by: antidamnation on July 17, 2024, 06:45:17 PM
They can use any for example USDT, and there are dozens of other stable digital currencies that they can use and can easily make such deal/contracts.

Why do you think people are craving for digital currencies and help me understand how this is going to help people betting on Bitcoin's long-term price.

They can't use stablecoins like USDT because of the risk of being blocked by a central authority, which is especially problematic for people in sanctioned countries. Physical dollars aren't a good option either, as governments can restrict their circulation.
Additionally, since Bitcoin's price tends to rise over the long term, Alice is more likely to gain value from the contracts compared to just holding Bitcoin.