Bitcoin Forum
July 18, 2024, 05:35:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What's wrong with DLCFDs?  (Read 127 times)
antidamnation (OP)
Newbie
*
Online Online

Activity: 7
Merit: 0


View Profile
July 16, 2024, 01:10:35 PM
 #1

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.
tranthidung
Legendary
*
Offline Offline

Activity: 2338
Merit: 4147


Farewell o_e_l_e_o


View Profile WWW
July 16, 2024, 01:42:05 PM
Merited by The Sceptical Chymist (3)
 #2

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.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
antidamnation (OP)
Newbie
*
Online Online

Activity: 7
Merit: 0


View Profile
July 16, 2024, 03:29:35 PM
 #3

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.
348Judah
Hero Member
*****
Offline Offline

Activity: 784
Merit: 537


Axioma Holding - Axioma Pay Crypto Card


View Profile
July 16, 2024, 03:38:43 PM
 #4

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.

        ▄▄▄████████▄▄
     ▄████▀▀▀   ▀▀▀████▄
   ▄██▀▀ ▒ ▀▄ ▄▀ ▒ ▄  ▀██▄
  ██▀▀ ▀▄ ▒ ▒▄▒▄▒ ▒ ▄▒  ▀██
 ███ ▀▀▄▄▀▄▒▒▒▒▒▒▒ ▒▄▄▄▀ ███
███ ▀▀▄▄▄▒▒▒█████▒▒▒▄▄▄▀▀ ███
██  ▀▄▄▄▀▒▒███████▒▒▄▄ ▀▀  ██
███ ▄▄▄▀▀▒▒▒█████▒▒▒ ▀▒▄▄ ███
 ██▄  ▄▒▀▄▒▒▒▒▒▒▒▒▒▄▀▀▄  ▄██
  ██▄▄ ▄▀ ▄▀▄▀▒▀▒ ▒ ▀▄  ▄██
   ▀██▄▄ ▄▀▄▀ ▒ ▀▄ ▒  ▄██▀
     ▀███▄▄   ▀  ▀▄▄▄██▀
        ▀▀█████████▀▀

 ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█████████████████████████████████
█████████████████████▀▀▀▀▀▀▀▀▀███
███▀▀▀▀▀▀████████████████████████
███      ████████████████████████
███▄▄▄▄▄▄████████████████████████
█████████████████████████████████
███▄▄▄▄▄██▄▄▄▄██▄▄▄▄██▄▄▄▄▄██████
███▀▀▀▀▀▀▀▀▀▀▀▀▀█████████████████
█████████████████████████████████
 ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.Crypto Cards. with
buying solutions

      ▄▄█████████▄▄
   ▄█████████████████▄
  █████████████████████
 █████▀█████ █████▀█████
██████  ▀██   ██▀  ██████
██████             ██████
██████▄▄▄▄▄▄▄▄▄▄▄▄▄██████
▀███▄               ▄███▀
 ▀█████████████████████▀
  ▀███████████████████▀
    ▀▀█████████████▀▀
        ▀▀▀▀▀▀▀▀▀
Launch Your Own
.Crypto Tokens.


█▄                                    ▄█
 ██▄                                ▄██
  ▀███▄▄▄                     ▄▄▄▄███▀
  █▄▀████████▀    ▄████▄  ▀████████▀▄█
   ▀█▄▄█████     █████      █████▄▄█▀
    ▀████████   ██████     ████████▀
       ▄██████▄ ███████▄ ▄██████▄
          ▀▀████████████████▀▀
                ████████
AXIOMA
..EAGLE CITY..
Faisal2202
Sr. Member
****
Offline Offline

Activity: 1274
Merit: 477


View Profile WWW
July 16, 2024, 04:17:27 PM
 #5

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.
davis196
Hero Member
*****
Offline Offline

Activity: 3038
Merit: 918



View Profile
July 17, 2024, 05:43:00 AM
 #6

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.

antidamnation (OP)
Newbie
*
Online Online

Activity: 7
Merit: 0


View Profile
July 17, 2024, 03:03:24 PM
 #7


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.
antidamnation (OP)
Newbie
*
Online Online

Activity: 7
Merit: 0


View Profile
July 17, 2024, 03:12:20 PM
 #8

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!
d5000
Legendary
*
Offline Offline

Activity: 3976
Merit: 6852


Decentralization Maximalist


View Profile
July 17, 2024, 04:42:53 PM
Last edit: July 17, 2024, 05:59:19 PM by d5000
 #9

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 and I opened one in Spanish 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 Smiley

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Faisal2202
Sr. Member
****
Offline Offline

Activity: 1274
Merit: 477


View Profile WWW
July 17, 2024, 05:46:07 PM
 #10

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.
antidamnation (OP)
Newbie
*
Online Online

Activity: 7
Merit: 0


View Profile
July 17, 2024, 06:26:20 PM
 #11

- 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?
antidamnation (OP)
Newbie
*
Online Online

Activity: 7
Merit: 0


View Profile
July 17, 2024, 06:33:43 PM
 #12


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?
antidamnation (OP)
Newbie
*
Online Online

Activity: 7
Merit: 0


View Profile
July 17, 2024, 06:45:17 PM
 #13

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.
d5000
Legendary
*
Offline Offline

Activity: 3976
Merit: 6852


Decentralization Maximalist


View Profile
Today at 12:29:35 AM
Last edit: Today at 02:49:02 AM by d5000
 #14

Can multiple oracles be used to mitigate the risk, or is it limited to a single oracle per contract?
Yes, this would in theory be definitely possible, because you could require more than one oracle signature in the contract. In the DLC whitepaper on page 6 the implications are explained: It is possible that the oracles disagree by a few dollars about the price and then the contract becomes invalid. For example, one oracle could provide the signature for a price of 60000 $ and another one for 59990$. This depends how fine the granularity of the contract is.

This does of course not mean that the coins are lost, but they would be then returned to the owners with a timelocked branch of the transaction in the original proportion.

I guess you could however for example require 10 oracles and if 6 of them agree on the price then the contract becomes valid. This would minimize the risk, the transactions would be bigger but if everything is arranged via LN this does not matter.

but in theory it's possible to implement such a mechanism. Am I right?
No, in the case of Bitcoin this is not possible, not even for Ethereum itself (=the Ether currency). As I wrote, DLCs are simply agreements between two parties. The party in the "short position", i.e. the party requiring a stable value (Alice in my example) would be able to preserve the value of their coins, but with the cost of not benefitting from a possible price upside.

You could however create a token based on the CFD (contract for difference) concept on a turing complete smart contract platform like Ethereum. This was to my knowledge first implemented with the BitShares platform in 2014 or 2015, and Dai now also uses a similar mechanism.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
peter0425
Sr. Member
****
Offline Offline

Activity: 2716
Merit: 447

CryptopreneurBrainboss managerial service


View Profile
Today at 01:15:54 AM
 #15

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!
I don’t think it’s that no one cares but rather it is too complex that everyone is being driven away. Its complexity offers many risks. It’s not exactly the simplest thing to do just implementing DLCFD. Not everyone in the bitcoin community is tech savvy and until DLCFD remains too much to understand for the common people, it will not be adapted by said common people.
Quote
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.
The risk of failure and manipulation is still quite high despite the many ways one can think of to finally solve oracle reliability. It is very much vulnerable to attacks especially that it relies on centralized databases.
antidamnation (OP)
Newbie
*
Online Online

Activity: 7
Merit: 0


View Profile
Today at 05:29:12 AM
 #16

Dai now also uses a similar mechanism.

I’ve been thinking about the Dai stablecoin and how it maintains its value through over-collateralization. Normally, a single user locks up more crypto collateral than the value of the Dai they generate. But what if two parties could collaborate on this?

Here’s the idea:

Party A wants to use Dai as a currency and puts up $100 worth of collateral.
Party B provides an additional $50 worth of collateral to ensure over-collateralization.
In this setup, if the price of the collateral goes up, Party B benefits from the increased value. Could this kind of collaboration work within the current MakerDAO system? Is there any other system implementing it? And if not is it possible to implement such a system?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!