Sunday, March 12, 2023
  • Login
  • Register
Islet Crypto
  • Home
  • Crypto News
  • Bitcoin
  • Ethereum
  • BSC
  • Altcoins
  • Defi
  • NFT
  • Mining
  • Metaverse
  • Videos
No Result
View All Result
  • Home
  • Crypto News
  • Bitcoin
  • Ethereum
  • BSC
  • Altcoins
  • Defi
  • NFT
  • Mining
  • Metaverse
  • Videos
No Result
View All Result
Islet Crypto
No Result
View All Result
Home Defi

Atomic Swap Post-Mortem & Further Steps

Islet crypto by Islet crypto
September 9, 2022
in Defi
0
Atomic Swap Post-Mortem & Further Steps
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


This post-mortem article deals with the atomic swap exploit on the DeFiChain network that was brought to light on 2 January 2022. In the following sections, we will discuss what has happened, the various solutions to it, and most importantly — underscore the fact that all your dBTC are still backed.

What has happened?

On 2nd January 2022 the DeFiChain community discovered an anomaly in the amount of dBTC tokens (BTC tokens on DeFiChain). Upon investigation, the developers found out that an attacker has managed to exploit a bug in the atomic swap function of the DeFiChain blockchain that seems to have existed since June 2021.

Atomic swap contracts were introduced with the Eunos Upgrade in early June. These contracts facilitate the trustless and decentralized exchange of cryptocurrencies between two distinct blockchains without having to place reliance on any intermediaries, e.g. BTC to dBTC.

The main goals being addressed with “atomic swaps” are the matchmaking between buyers and sellers, and the facilitation of price discovery. After buyers and sellers have been matched, atomic swaps facilitate the creation of a so-called Interchain Swap Contract between the two parties.

The way atomic swaps work is that the maker and the taker agree on a price, i.e. 1 dBTC on the DeFiChain blockchain for 1 BTC on the Bitcoin blockchain. The maker is incentivized to initiate this trade at parity (1 BTC for 1 dBTC), because only then he receives 50% of the swap fee; the other half is burned. The swap fee is paid in DFI.

What has happened in this exploit was that the attacker was able to change the fee amount from DFI to BTC while keeping the actual number the same. By taking advantage of this exploit, the attacker received a multiple of what they should have received in fees (i.e. instead of 0.1 DFI, the attacker received 0.1 BTC in fees).

How was it possible that nobody detected this exploit earlier?

Well, this has to do with two main issues: the first one revolves around the fact that in the initial beta testing phase the team and the wider community were focussed on using very small token amounts to mitigate the risk of potentially losing their funds. The culmination of small trading amounts, coupled with even smaller trading fees, was the reason that nobody really looked into those numbers and even if someone had done it, it most likely would have gone undetected.

The second issue has to do with the way how the outputs of the BTC swaps are tracked and administered. Usually the output rather than the fee amounts are tracked, especially when the amounts involved are small, which may explain the fact that it wasn’t detected over several months.

To mitigate any issues ex ante, thorough testing by the community had been carried out prior to the Eunos upgrade. On top of that, continuous testing by the community had gone on since then and not a single vulnerability had been detected.

Why had no one seen it directly on the blockchain?

To understand why it is nearly impossible to directly see this on the blockchain has to do with the way tokens are tracked on a blockchain. There are actually two ways of doing it: The first one is the UTXO model, where coins are tracked similar to people walking into a room by a tracer. The big disadvantage is a potential spam of the blockchain by super small amounts.

The second model is the account model, similar to a doorman checking all people walking into and out of a club. This model is also used by DeFiChain. Yet it’s also not feasible to look into the club (into the blockchain) and count the number of people (coins on the blockchain), since people (coins) are moving around continuously, causing possible counting issues.

Implementing measures to counter that are very tech resource intensive and were not in the main focus and interest of DeFiChain, since other POS like decentralized assets, EVM, etc. are more exciting from a user perspective. Blockchains like Ethereum take a similar approach, which is also why for example nobody really knows exactly how many ETH are out there.

How many dBTC were created?

Due to account difficulties, it’s also impossible to count the exact number of bitcoins that have been injected into the system. Considering that there wasn’t any impact on the dBTC price prior to the bug detection, one can assume that it cannot have been all too relevant. Furthermore, it is impossible to get an accurate number and everyone who is claiming a specific number is most likely wrong due to the nature of the blockchain accounting architecture.

What are the options to guarantee that 1 dBTC = 1 BTC?

Still, the blockchain needs to guarantee the parity of dBTC and BTC. Several possible solutions have been brought up by the community and are still up for discussion:

  1. Do nothing and leave the dBTC uncovered.
  2. Blockchain rollback until approximately June 2021.
  3. Cake DeFi should be held liable as the gateway to dBTC.
  4. Smart contracts / staking rewards which would restore the dBTC.
  5. Use the community fund to cover the dBTC via a special contract in the similar fashion to dTokens / loans.
  6. Increase the trading fees by x% until the dBTC are fully covered.

These ideas should be thoroughly discussed in the upcoming days by the community. The solution will then be implemented by majority vote via a DFIP vote in the next weeks, depending on the priorities of the community.

If you want to actively take part in the discussion, there is a scheduled Twitter Spaces on Jan 5, 2022 at 16:00 (4pm) UTC: https://twitter.com/i/spaces/1MYGNnDAyeRGw/

Closing Words

The most important takeaway from this exploit is that your funds are safe. Even though an unknown amount of dBTC has been injected into the DeFiChain ecosystem, there is no reason to believe that your dBTCs are not backed. Furthermore, we would like to actively encourage the whole community to participate in a constructive discussion on all our social media channels, especially via Twitter and in our Telegram groups. Join us live tomorrow: https://twitter.com/i/spaces/1MYGNnDAyeRGw/





Source link

Related articles

StellaSwap Partners with ZooDAO – Smart Liquidity Research

StellaSwap Partners with ZooDAO – Smart Liquidity Research

March 8, 2023
Spookyswap integrates with dTWAP – Smart Liquidity Research

Spookyswap integrates with dTWAP – Smart Liquidity Research

March 8, 2023
Share76Tweet47

Related Posts

StellaSwap Partners with ZooDAO – Smart Liquidity Research

StellaSwap Partners with ZooDAO – Smart Liquidity Research

by Islet crypto
March 8, 2023
0

StellaSwap partners with ZooDAO for Asset Launch on Moonbeam’s Pulsar. ZooDAO is the first community-governed platform to enable users to...

Spookyswap integrates with dTWAP – Smart Liquidity Research

Spookyswap integrates with dTWAP – Smart Liquidity Research

by Islet crypto
March 8, 2023
0

Spookyswap integrates with dTWAP powered by Orbs Network. SpookySwap, the largest DEX by TVL on the Fantom blockchain has completed its integration...

BNBChain partners with NULS – Smart Liquidity Research

BNBChain partners with NULS – Smart Liquidity Research

by Islet crypto
March 8, 2023
0

BNBChain partners with NULS and landed on ENULS. In the first episode of “Knowing ENULS”, NULS introduced a method to...

CVL Network partners with Kyber Network

CVL Network partners with Kyber Network

by Islet crypto
March 7, 2023
0

CVL Network partners with Kyber Network to integrate with the Kyberswap platform. KyberSwap is building a world to make DeFi...

RocketX partners with Rango – Smart Liquidity Research

RocketX partners with Rango – Smart Liquidity Research

by Islet crypto
March 7, 2023
0

RocketX partners with Rango Exchange to simplify token swaps. The partnership aims to make token swaps easier. More convenient for...

Load More
  • Trending
  • Comments
  • Latest
Terra Luna Classic (LUNC) Crypto Price Prediction October 2022

Terra Luna Classic (LUNC) Crypto Price Prediction October 2022

October 5, 2022
Top 10 Crypto Ransomware Attacks Took $69M in BTC Payments, Chainalysis Laid Off 5% of Workforce, TeraWulf Starts Public Offering of Common Stock

Top 10 Crypto Ransomware Attacks Took $69M in BTC Payments, Chainalysis Laid Off 5% of Workforce, TeraWulf Starts Public Offering of Common Stock

February 2, 2023
Can the Metaverse exist without blockchain?

Can the Metaverse exist without blockchain?

September 20, 2022
JPMorgan CEO Jamie Dimon Calls Bitcoin ‘Hyped-up Fraud’ — Expects Satoshi Nakamoto to Increase BTC Supply Cap – Featured Bitcoin News

JPMorgan CEO Jamie Dimon Calls Bitcoin ‘Hyped-up Fraud’ — Expects Satoshi Nakamoto to Increase BTC Supply Cap – Featured Bitcoin News

January 21, 2023
Crypto News: ETH Crash, SEC, Do Kwon, Terra, CPI & MORE!

Crypto News: ETH Crash, SEC, Do Kwon, Terra, CPI & MORE!

50
The Crypto Market Just FLIPPED

The Crypto Market Just FLIPPED

50
The Worst Crypto Market Crash is Here

The Worst Crypto Market Crash is Here

50
Crypto Market Latest News Updates BTC ETH XRP MBOX LUNC Price Analysis Prediction

Crypto Market Latest News Updates BTC ETH XRP MBOX LUNC Price Analysis Prediction

50
TRON launches $100M artificial intelligence-focused Fund

Crypto price predictions: Litecoin, Bitcoin Cash, Tron

March 12, 2023
Billionaire Warns of Imminent Bank Runs if Government Fails to Guarantee All SVB Deposits – Economics Bitcoin News

Billionaire Warns of Imminent Bank Runs if Government Fails to Guarantee All SVB Deposits – Economics Bitcoin News

March 12, 2023
Ripple’s Modernized Treasury Management Solutions Open Access to Emerging Markets for Startups –

Ripple’s Modernized Treasury Management Solutions Open Access to Emerging Markets for Startups –

March 12, 2023
Rich Dad Poor Dad Author Robert Kiyosaki Warns Another Bank Is Set to Crash – Featured Bitcoin News

Rich Dad Poor Dad Author Robert Kiyosaki Warns Another Bank Is Set to Crash – Featured Bitcoin News

March 12, 2023
Facebook Twitter Instagram

Islet Crypto is a Crypto News and Articles website based in the Caribbean that is dedicated to educating and informing the public on cryptocurrency, Bitcoin and technology.

Categories

  • Altcoins
  • Bitcoin
  • BSC
  • Crypto News
  • Defi
  • Ethereum
  • Metaverse
  • Mining
  • NFT
  • Uncategorized
  • Videos

Site Links

  • Home
  • Contact
  • Privacy Policy
  • Terms of use
  • DMCA

© 2022 All rights reserved.

No Result
View All Result
  • Home
  • Crypto News
  • Bitcoin
  • Ethereum
  • BSC
  • Altcoins
  • Defi
  • NFT
  • Mining
  • Metaverse
  • Videos
  • Login
  • Sign Up

© 2022 All rights reserved.

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.Read More
.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT