[ARFC] Onboard dlcBTC to Aave v3 on Ethereum

[ARFC] onboard dlcBTC to Aave v3 on Ethereum

Author: ACI

Date: 2024-07-25


Simple Summary:

The current proposal aims to onboard dlcBTC to Aave v3 on the Ethereum pool.

Motivation/Background:

dlcBTC is a decentralized wrapped Bitcoin on Ethereum, enabling Bitcoin holders to participate in DeFi protocols while retaining full ownership of their assets. It leverages Discreet Log Contracts (DLCs) for secure cross-chain transactions, ensuring trustless and decentralized asset management. dlcBTC uses a federated set of merchants who lock BTC with themselves to mint dlcBTC, similar to USDC’s model.

Unlike other bridges, dlcBTC merchants “self-wrap” Bitcoin, meaning funds are never sent to an external address, reducing the risk of theft or loss. dlcBTC has a Chainlink proof of reserve feed: dlcBTC PoR | Chainlink.

Benefits of listing that token:

Listing dlcBTC will enable Bitcoin holders to use their assets as collateral within Aave, increasing liquidity and user engagement on the platform. It will attract a broader user base from the Bitcoin community and enhance the diversity of collateral options within Aave. Additionally, it supports DeFi platforms such as Nektar and Swaap, which can generate yield using dlcBTC.

Market Impact:

Including dlcBTC will positively impact Aave’s liquidity and user adoption, as Bitcoin is the largest digital asset by market cap. dlcBTC’s secure and decentralized nature will contribute to the platform’s growth and stability, providing additional security for users and increasing the overall market size of Aave. wBTC has been a huge success, but its use of a single custodian is a known source of counterparty risk. By decentralizing the merchant set, dlcBTC makes it less likely for an adverse event to happen.

Chain to be deployed/listed:

Ethereum.

Proof of Liquidity (POL) and Deposit Commitments:

To incentivize the use of dlcBTC within the Aave ecosystem, we propose to include a points-based rewards program tied to a future $DLC token . The program includes:

  • Holding dlcBTC: Earn 1X points for simply holding dlcBTC.
  • Using dlcBTC as Collateral: Receive 5X points for using dlcBTC as collateral across DeFi platforms.
  • Special Aave Incentives:
    • Earn 6X points when dlcBTC is used as collateral within Aave.
    • Earn 8X points when dlcBTC is used to borrow GHO on Aave.

This rewards program is already established for our Curve pool, demonstrating its effectiveness in boosting engagement and liquidity.

Additionally, onboarding large merchants, some with over 10,000 BTC, which will significantly boost the Total Value Locked (TVL) in the ecosystem.

Risk Parameters:

Risk Parameters will be provided by Service Risk Providers and those will be updated in the current ARFC accordingly.

Useful Links:

Overview:

Technical Docs:

Socials:

Disclaimer:

This proposal is powered by Skywards. ACI is not directly affiliated with DLC.Link team and did not receive compensation for creation this proposal.

Next Steps:

  1. Publication of a standard ARFC, collect community & service providers feedback before escalating proposal to ARFC snapshot stage.
  2. If the ARFC snapshot outcome is YAE, publish an AIP vote for final confirmation and enforcement of the proposal.

Copyright

Copyright and related rights waived under CC0

1 Like

Summary

LlamaRisk reviewed dlcBTC, a novel non-custodial wrapped Bitcoin enabling participation in EVM-based DeFi while retaining full asset control. Based on the asset maturity, we recommend postponing the onboarding of dlcBTC as collateral on Aave markets. Our research highlighted the following issues:

  • Ecosystem in infancy: The early implementation stage of dlcBTC’s technology and ecosystem development introduces uncertainties and potential vulnerabilities unsuitable for Aave integration.
  • Limited Liquidity: dlcBTC is only present on Arbitrum, which relies on a single liquidity pool (Curve WBTC/dlcBTC), increasing the risk of bad debt during liquidation events. We do not recommend relying on permissioned merchants (minters) to perform liquidations.
  • Small User Base and Supply: The small number of dlcBTC holders and low total supply restrict the potential user base for Aave’s dlcBTC markets.
  • Centralization Concerns: The dlcBTC protocol suffers from several centralization vectors, including a permissioned set of attestors and a blacklisting feature that could freeze the dlcBTC of an address. We also note that there is no timelock to protect against contract upgrades.
  • Stable peg: Although we note the existence of a Chainlink dlcBTC/BTC Proof-of-Reserve oracle, the peg stability against BTC is unknown, and there is no dlcBTC/BTC price feed from a reliable source. This lack of reliable price data and the sole venue for liquidity are concerning.
  • Bug Bounty: No bug bounty program is implemented, which we consider a showstopper for any integration with Aave moving forward.

These factors collectively present risks we do not believe are acceptable for Aave V3 markets. While the non-custodial nature of dlcBTC is promising compared to centralized alternatives like wBTC, the ecosystem requires further maturation before onboarding.

Collateral risk assessment

Useful Links

Technical documentation: DLC.Link Technical Architecture v1.1
Security documentation: DLC.Link Platform Security
Contracts: github.com/DLC-link/dlc-solidity
Attestor layer source code: github.com/DLC-link/dlc-stack
Chainlink PoR feed: data.chain.link

1. Asset Fundamental Characteristics

1.1 Asset

dlcBTC is a non-custodial, wrapped representation of Bitcoin on EVM blockchains, designed to enable Bitcoin holders to participate in EVM-based DeFi protocols while maintaining full ownership and control over their assets. The protocol’s design ensures that dlcBTC on EVM chains are backed on a 1:1 basis by locked BTC on the Bitcoin network, thereby supporting the theoretical dlcBTC/BTC peg of 1.

dlcBTC token statistics (as of July 25, 2024)

  • Circulating supply: $1,256,557
  • Market cap: $1,256,557
  • Unique Holders: 51

1.2 Architecture

Overview

The dlcBTC architecture is made of three components: special multisig wallets called Discreet Log Contracts (DLCs), a decentralized network of oracles called the Attestor layer and on-chain ERC-20 contracts that allow for the minting and burning of dlcBTC.

DLCs are multisig wallets on the Bitcoin network that allow two participants to enter an agreement to redistribute the assets according to predefined outcomes determined by a third party. DLCs look like any other multisig wallet on the Bitcoin network, which improves privacy. The third party is an Attestor, an off-chain service that acts as a trusted intermediary between the Bitcoin network and the EVM chain. Because of the way DLC contracts work, the funds are guaranteed to be distributed back to the participant’s wallet on the Bitcoin network, regardless of any potential security breaches on EVM chains: the attestor layer cannot misappropriate the funds.

Participants wishing to lock their BTC on the Bitcoin network to obtain dlcBTC on an EVM chain are known as Merchants. When creating a DLC to lock their BTC, they provide the first key, and the decentralized network called the Attestor layer holds the second key. When the Attestor network detects the creation of a DLC on-chain, they inform smart contracts on EVM chains to mint new dlcBTC. Similarly, merchants wishing to redeem their dlcBTC for the locked BTC can interact with the ERC-20 contract on EVM chains to burn their dlcBTC and trigger the distribution of the locked BTC from the DLC. Merchants are permissioned entities selected by the dlcBTC team; not everyone can mint and burn dlcBTC for the underlying BTC.

Key components

  • DLC: A special multisig wallet that can only pay out to the original depositor their respective shares according to a set of predefined outcomes. This alleviates the risk of fund misappropriation present in other wrapped-Bitcoin custodial solutions like wBTC.
  • Attestor Network: A decentralized network of node operators (attestors) that monitor blockchain events, accept DLC creations, and validate EVM blockchain outcomes. The attestors work by threshold consensus, with documentation mentioning an ideal 5-of-7 threshold and nodes being run by independent third parties. The Attestor layer is operated by a permissioned set of node operators and operates off-chain.
  • Smart Contracts: Ethereum-based contracts that manage the minting and burning dlcBTC tokens based on the Attestor layer’s trusted input.
  • Pre-signed Transactions: The system uses pre-signed Bitcoin transactions — one for each possible DLC outcome — to ensure that even in case of a security breach, only the original depositors can receive the BTC they locked.

Architecture diagram

image
Source: dlcBTC mint flow (July 25, 2024)

1.3 Tokenomics

Although the dlcBTC protocol is non-custodial and its minting process automated, it is currently not governed by a DAO and lacks a governance token. The operation of the Attestor layer and the overall direction of the protocol remain entirely in the hands of the development team. Moreover, the development team’s multisig wallet aggregates additional merchants’ onboarding. There is no mention of a plan to decentralize the governance process of dlcBTC through a DAO and governance token.

Fee Structure

As of April 3, 2024, mint and burn fees are as follows:

Mint Fees:

  • less than 500 BTC: 0.15% (compared to wBTC: 0.16%)
  • between 500 BTC and 1500 BTC: 0.10% (compared to wBTC: 0.12%)
  • between 1,500 BTC and 3000 BTC: 0.07% (compared to wBTC: 0.08%)
  • more than 3,000 BTC: 0.04% (compared to wBTC: 0.05%)

Burn Fees:

  • less than 500 BTC: 0.20% (same as wBTC)
  • between 500 BTC and 1500 BTC: 0.15% (compared to wBTC: 0.16%)
  • between 1,500 BTC and 3000 BTC: 0.10% (compared to wBTC: 0.12%)
  • more than 3,000 BTC: 0.08% (compared to wBTC: 0.10%)

2. Market Risk

2.1 Liquidity

dlcBTC currently maintains a Total Value Locked (TVL) of $1.3 million, equivalent to less than 20 BTC. This figure is notably lower than wBTC’s 154,534 BTC, primarily due to dlcBTC’s recent market entry three months ago.

image
Source: Dune, July 26th, 2024

2.2 Volatility

Given the extremely limited supply and liquidity venues, any volatility measure would be premature and a poor indicator.

2.3 Exchanges

dlcBTC is supported by a single liquidity venue — a Curve dlcBTC/WBTC pool on Arbitrum with a $980k TVL. There are no liquidity venues on Ethereum mainnet.

image
Source: Curve dlcBTC/WBTC pool on Arbitrum (July 25, 2024)

2.4 Growth

Despite its recent launch, dlcBTC exhibits exponential growth in its holder base, though further observation is required to confirm this trend. The minted supply is incrementally increasing, suggesting that a select group of BTC holders is minting dlcBTC, which is subsequently distributed among many holders in the EVM ecosystem.

image
Source: Dune, July 26th, 2024

A notable uptick in daily transfer volume has been observed since early July 2024.

image
Source: Dune, July 26th, 2024

3. Technological Risk

3.1 Smart Contract Risk

Audits

CoinFabrik and Metatrust conducted several audits:

  • CoinFabrik (August 2023): A design review.
  • CoinFabrik (October 2023): 11 findings including four critical and three high-risk.
  • Metatrust (attestor audit and contract audit) (May 2024): No findings.
  • Metatrust (July 6, 2024): 11 findings including three medium-risk and three low-risk.

Significant findings include:

  • A Remote Code Execution (RCE) exploit was made possible on the DLCManager.sol contract due to a lack of verification when registering a callback. The development team implemented verification that the provided callback address was a valid DLC UUID as a fix.
  • The storage API exposed by Attestor off-chain services had no authentication, allowing anyone to read, store, and modify events and contracts. An authentication system was implemented as a fix.
  • A block timestamp was used as a source of randomness to select the Attestor for a new DLC. A malicious block builder could manipulate the block timestamp and select the Attestor of a DLC. This compromises the fairness and integrity of the selection process, increasing collusion and centralization risks. The team acknowledged this issue but deemed it not critical as the contract it was found in was bound to be deprecated.

Code Quality

The code for the dlcBTC protocol is found in two different repositories:

  • DLC-link/dlc-stack contains the code for the off-chain services and DLC wallet. It is available under a Business Source License (BUSL), a non-open source license that prevents production use.
  • DLC-link/dlc-solidity contains the code for EVM smart contracts, made available under an MIT license (open-source).

Numerous commits from different contributors can be seen, as well as Pull Requests (PR) which display a high level of engagement and transparency from contributors. The code displays professional development practices and a well-documented code base.

Bug Bounty Program

There is no bug bounty for the protocol underlying dlcBTC.

Upgradeability

On EVM chains, the dlcBTC protocol consists of two contracts: DLCBTC.sol and DLCManager.sol:

  • DLCBTC.sol is an ERC-20 contract that can mint and burn dlcBTC tokens.
  • DLCManager.sol acts as the main contract of the dlcBTC protocol and serves as the point of contact for the decentralized network of Attestor off-chain services.

Both DLCBTC.sol and DLCManager.sol are deployed behind a TransparentUpgradeableProxy whose owner is a 5/6 multisig.

3.2 Price Feed Risk

A Chainlink dlcBTC/BTC Proof-of-Reserve price feed is available on Arbitrum. This is a specialized type of price feed that returns the dlcBTC protocol’s contract balance. It does not provide information about the dlcBTC/BTC exchange rate.

Due to the fact that dlcBTC can always be burned to redeem the underlying BTC on the Bitcoin network, the dlcBTC/BTC price on the secondary market should rarely fall below 1. However, because dlcBTC minters are permissioned, a strong on-chain demand could temporarily push the dlcBTC/BTC exchange rate upward, depending on the minters’ reaction time. This situation could present an arbitrage opportunity for dlcBTC minters.

3.3 Dependency Risk

Attestors

The dlcBTC protocol relies on a decentralized network of node operators (7 as of July 26, 2024) known as Attestors. These Attestors are currently permissioned and selected by the dlcBTC development team. Although they must undergo KYC procedures, no economic security guarantees their correct behavior.

The Attestors function like an Oracle using a threshold consensus. According to the source code, this threshold equals the number of attestors, meaning all attestors must agree for dlcBTC to be minted or burned. There is a discrepancy between the code and technical documentation, where 5-of-7 and 3-of-5 threshold mechanisms are mentioned. The documentation also specifies that all attestor nodes would initially be run by DLC.link itself, gradually being replaced by independent operators. The current status of this replacement process could not be established.

Merchants

Merchants are permissioned participants who can lock their BTC into a DLC multisig to mint dlcBTC on EVM chains. They are known entities selected by the dlcBTC core team and must undergo multiple KYC processes to be whitelisted. Consequently, although the dlcBTC protocol is non-custodial, it is permissioned. We also note the presence of a blacklisting feature in the DLCManager contract, which allows the DLC_ADMIN_ROLE to prevent an account from receiving or sending dlcBTC.

4. Counterparty Risk

4.1 Governance and Regulatory Risk

Upon examination of the footer on https://www.dlc.link/, a copyright notice under DLC.Link, Inc. is evident, leading to the reasonable inference that the same entity owns and operates the website, including the dlcBTC dApp.

The FAQ section incorporates several self-assessment tabs addressing regulatory inquiries. Notably, it emphasizes that the BTC depositor engages in a “self-wrapping” process, locking the assets and maintaining exclusive access to BTC funds. DLC.Link asserts that dlcBTC does not constitute a security, predicated on the fact that users, specifically dlcBTC Merchants, self-wrap their own BTC while retaining self-custody. Furthermore, they contend that no scenario exists wherein DLC.Link obtains possession of users’ funds, thereby precluding classification as a money transmitter.

To gain access to the dlcBTC dApp, prospective Merchants must navigate a comprehensive whitelisting procedure. This process entails submitting an application, undergoing a thorough compliance review (including KYC/KYT/AML checks), completing technical integration, and participating in training and support sessions. The business relationship is formalized by executing a Merchant Services Agreement with DLC.Link, Inc.

Below are our key findings from the agreement review:

  • Custodial services are excluded from the scope of services provided.
  • DLC.Link, Inc. explicitly disclaims any role as a manager or investment adviser to the Merchant and bears no obligation to elucidate or caution against any risks taken or assumed by the Merchant.
  • The agreement includes a comprehensive limitation of liability clause, absolving DLC.Link of responsibility for any consequential, incidental, exemplary, punitive, special, or indirect damages.
  • The onus of conducting AML/KYC procedures and identity verification for end-users rests solely with the Merchant, before facilitating any transfers of BTC or dlcBTC to or from such users.
  • The Merchant provides representations, warranties, and covenants affirming that it is neither controlled by sanctioned individuals nor established or located in jurisdictions subject to international sanctions.
  • The agreement places the responsibility squarely on the Merchant to ascertain whether compatible Merchant wallets satisfy all applicable requirements, laws, and regulations that the Merchant is obligated to fulfill.

The agreement is designed to support DLC’s hands-off approach.Link regarding custodianship and any asserted funds management activities. The thorough counterparty checks, supported by the strict AML/KYC obligations and sanctions compliance requirements imposed on the Merchants, add extra credibility to DLC.Link’s setup.

4.2 Access Control Risk

Two multisig wallets control the protocol:

  • Multisig A with 5/6 signers required. This is a high-privilege multisig that controls critical aspects of the dlcBTC protocol.
  • Multisig B with 4/6 signers required. This is a lower privilege multisig.

dlcBTC relies on a role-based access control system made of the following roles:

  • DEFAULT_ADMIN_ROLE has the highest privilege level of all contracts. It is assigned to a multisig A and can re-assign other roles. A 2-day delay is required to transfer it.
  • PAUSER_ROLE allows the minting and burning of dlcBTC to be paused and unpaused. It is assigned to Multisig B.
  • DLC_ADMIN_ROLE can set multiple parameters, including the minting and redemption fees, whitelist addresses, etc. It is assigned to Multisig B.

5. Aave V3 Specific Parameters

There are no parameter recommendations at this stage, as we recommend holding off on onboarding from both Arbitrum and Ethereum mainnet.

Note: This assessment follows the LLR-Aave Framework, a comprehensive methodology for asset onboarding and parameterization in Aave V3. This framework is continuously updated and available here.

2 Likes

Overview

Chaos Labs does not recommend listing dlcBTC at this time.

Liquidity and Market Cap

dlcBTC is a wrapped version of BTC made for use on Ethereum and Arbitrum. Currently, 19.388 dlcBTC have been minted across two merchants, for an overall TVL of $1.26M.

Its on-chain liquidity is concentrated on Arbitrum, specifically on Curve, where it is paired with WBTC; the pool’s TVL is $1M. This pool is being incentivized with points from DLC.Link. Additionally, one user represents 96% of the pool’s liquidity.

Were redemptions completely permissionless, allowing for any user to liquidate a position and redeem the underlying BTC, it may be possible for Aave to list the asset in its current state with minimal on-chain liquidity. However, as stated in its documentation, users lock their BTC into a Discreet Log Contract, which “can only be liquidated back to the user.”

Untitled (13)

As a result, only a dlcBTC depositor would be able to liquidate a position of significant size, again given the current lack of on-chain liquidity.

Recommendations

Given its low market cap, lack of on-chain liquidity, and relatively short history, we do not recommend listing the asset at this time. Should its market cap and liquidity increase, we may revisit this recommendation.

3 Likes

Given its low market cap, lack of on-chain liquidity, and relatively short history, we do not recommend listing the asset at this time. Should its market cap and liquidity increase, we may revisit this recommendation.

@LlamaRisk @ChaosLabs Can you provide guidelines on min marketcap and liquidity for assets to be onboarded? It would save a lot of teams a lot of time if there were clear guidelines on expectations on this criteria.

Our analysis considers many factors beyond liquidity; however, we are happy to provide general guidelines:

Current liquidity would support a swap of 8.25 dlcBTC to WBTC within a 7.5% liquidation bonus on Arbitrum. This would justify a supply cap within a range of 0.825 - 1.65 dlcBTC ($55k - $110k). We would like to see the liquidity grow by at least 5x and diversify before reevaluating the asset for onboarding.

We would also like to reiterate that we consider the implementation of a bug bounty program mandatory for consideration of onboarding. We are in touch with the DLC.Link team and are happy to continue the dialogue.

3 Likes

Im against onboarding that asset. While I like the idea behind it, current liquidity is not enough to make profit. Also I want to echo @WintermuteGovernance comment on the TEMP CHECK.

1 Like

Thank you for the comprehensive audit.

We will reapply once we’ve surpassed $5Mn across multiple DEXes, have implemented a Bug Bounty program and have made further progress on other items.

I just wanted to raise one correction. The pricing above is out of date. Our current pricing model is lower:

Mint Fees:

0 BTC: dlcBTC: 0.12% (compared to wBTC: 0.16%)
= 500 BTC: dlcBTC: 0.09% (compared to wBTC: 0.12%)
= 1,500 BTC: dlcBTC: 0.06% (compared to wBTC: 0.08%)
= 3,000 BTC: dlcBTC: 0.0375% (compared to wBTC: 0.05%)

Burn Fees:

0 BTC: dlcBTC: 0.15% (compared to wBTC: 0.20%)
= 500 BTC: dlcBTC: 0.12% (compared to wBTC: 0.16%)
= 1,500 BTC: dlcBTC: 0.09% (compared to wBTC: 0.12%)
= 3,000 BTC: dlcBTC: 0.075% (compared to wBTC: 0.10%)

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.