Skip to content

Commit df147f2

Browse files
authored
Merge pull request #108 from interlay/dom/vault-model
docs: update vault model to kintsugi
2 parents 1ebc423 + 78dddc2 commit df147f2

7 files changed

Lines changed: 62 additions & 48 deletions

File tree

docs/_sidebar.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,51 @@
11
<!-- docs/_sidebar.md -->
22

3-
43
* **Kintsugi (Kusama)**
54

65
* [Overview](kintsugi/overview.md)
76
* [Crowdloans](kintsugi/crowdloans.md)
87
* [Tokenomics](kintsugi/tokenomics.md)
98
* [Governance](kintsugi/governance.md)
9+
1010
---
1111

1212
* **interBTC (Testnet)**
1313

14-
* Getting Started
15-
1614
* [Overview](start/overview.md)
1715
* [Getting Started](start/prereq.md)
1816
* [Issue interBTC](start/issue.md)
1917
* [Redeem interBTC](start/redeem.md)
2018
* [FAQ](start/faq.md)
2119

22-
* Vaults
20+
---
21+
22+
* **Clients**
23+
24+
* *Vaults*
2325

2426
* [Overview](vault/overview.md)
2527
* [Installation](vault/installation.md)
2628
* [Upgrading](vault/upgrading.md)
2729
* [Operating Guide](vault/guide.md)
2830
* [FAQ](vault/faq.md)
2931

30-
* Collators
32+
* *Collators*
3133

3234
* [Overview](collator/overview.md)
3335
* [Installation](collator/guide.md)
3436
* [FAQ](collator/faq.md)
3537

36-
* Developers
38+
---
39+
40+
* **Developers**
3741

3842
* [Interacting with interBTC](developers/integration.md)
3943
* [Documentation](developers/documentation.md)
4044

45+
---
4146

4247
* [Roadmap](about/roadmap.md)
4348

44-
* [Formal specification](https://spec.interlay.io/)
49+
* [Formal Specification](https://spec.interlay.io/)
4550

46-
* [Glossary](glossary/glossary.md)
51+
* [Glossary](glossary/glossary.md)

docs/about/roadmap.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
The Interlay team is building a customized Substrate environment for interBTC, optimized to verify Bitcoin payments. The BTC Parachain includes a Bitcoin cross-chain SPV client (BTC-Relay), integrations with secure price oracles and XCMP, as well as support for hardware wallets. In addition, Interlay is also building client software for Vaults, Relayers (who make sure BTC-Relay is up to date), as well as an easy-to-use web interface.
55

6-
[Interlay](https://interlay.io/) has previously released a [detailed technical specification](https://interlay.gitlab.io/interbtc-spec/) and a [working PoC implementation](https://github.com/interlay/BTC-Parachain). After the successful pilot project, Interlay won a second [Web3 Foundation grant](https://web3.foundation/grants/) to complete the BTC Parachain - the core milestones of this project were completed in March 2021.
6+
[Interlay](https://interlay.io/) has previously released a [detailed technical specification](https://interlay.gitlab.io/interbtc-spec/) and a [working PoC implementation](https://github.com/interlay/interbtc). After the successful pilot project, Interlay won a second [Web3 Foundation grant](https://web3.foundation/grants/) to complete the BTC Parachain - the core milestones of this project were completed in March 2021.
77

88
### Timeline So Far
99
- **1st Web3 Foundation grant** (Spec & PoC) started in January 2020
@@ -15,4 +15,4 @@ The Interlay team is building a customized Substrate environment for interBTC, o
1515
- **(soon) interBTC on Polkadot** is expected in late 2021 / early 2022.
1616

1717
---
18-
A more detailed roadmap for Kinstugi Kusama launch and towards interBTC launch on Polkadot will be published here shortly.
18+
A more detailed roadmap for Kinstugi Kusama launch and towards interBTC launch on Polkadot will be published here shortly.

docs/collator/guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Setting up a Collator
22

3-
Running a Collator will allow you to sync and verify the integrity of the BTC-Parachain.
3+
Running a Collator will allow you to sync and verify the integrity of the interBTC bridge.
44
To get started, follow this guide.
55

66
At the end of this document you will have:
@@ -74,7 +74,7 @@ rustup target add wasm32-unknown-unknown --toolchain nightly
7474

7575
?> This step will take some time depending on your hardware.
7676

77-
Clone the BTC-Parachain code, checkout release `0.8.5`, and build the node:
77+
Clone the interBTC bridge code, checkout release `0.8.5`, and build the node:
7878

7979
```shell
8080
git clone git@github.com:interlay/interbtc.git

docs/developers/documentation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ If you want to get started working on interBTC, understand how the system works,
88

99
- [Specification](https://interlay.gitlab.io/interbtc-spec/)
1010
- [Specification as PDF](https://interlay.gitlab.io/interbtc-spec/interbtc-spec.pdf)
11-
- [Source](https://github.com/interlay/btc-parachain-spec)
11+
- [Source](https://github.com/interlay/interbtc-spec)
1212

1313
### BTC Parachain
1414

1515
- [Documentation](https://www.interlay.io/interbtc/)
16-
- [Source](https://github.com/interlay/btc-parachain)
16+
- [Source](https://github.com/interlay/interbtc)
1717

1818
### Vaults
1919

docs/start/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### How does interBTC maintain its peg?
44

5-
The BTC-Parachain ensures that for each minted interBTC: (1) there is an equivalent amount of BTC physically locked on Bitcoin, and (2) there is sufficient DOT collateral locked to economically back minted interBTC in case vaults attempt theft. As such, interBTC is a hybrid peg, with supply determined by both locked BTC and DOT.
5+
The interBTC bridge ensures that for each minted interBTC: (1) there is an equivalent amount of BTC physically locked on Bitcoin, and (2) there is sufficient DOT collateral locked to economically back minted interBTC in case vaults attempt theft. As such, interBTC is a hybrid peg, with supply determined by both locked BTC and DOT.
66

77
### Who are the vaults? Can anyone become a vault?
88

docs/start/overview.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22

33
In 2016, the [Polkadot whitepaper](https://polkadot.network/PolkaDotPaper.pdf) identified secure interoperability with Bitcoin as a critical and also challenging feature. In January 2020, with the launch of Polkadot on the horizon, the [Web3 Foundation](https://web3.foundation/in) commissioned [Interlay](https://www.interlay.io/) to design a trustless bridge from Bitcoin to Polkadot based on [XCLAIM](https://www.xclaim.io/) — a carefully designed, open and trustless system that guarantees the security of user’s funds.
44

5-
The BTC-Parachain allows users to mint 1:1 Bitcoin-backed assets onto Polkadot - interBTC - and use these across a wide range of applications, including decentralized exchanges, stablecoins, and lending protocols.
5+
The interBTC bridge allows users to mint 1:1 Bitcoin-backed assets onto Polkadot - interBTC - and use these across a wide range of applications, including decentralized exchanges, stablecoins, and lending protocols.
66

7-
Funded by a [Web3 Foundation grant](https://web3.foundation/grants/), the BTC-Parachain is implemented in [Rust](https://www.rust-lang.org/) using [Parity](https://www.parity.io/)'s [Substrate framework](https://substrate.dev/).
7+
Funded by a [Web3 Foundation grant](https://web3.foundation/grants/), the interBTC bridge is implemented in [Rust](https://www.rust-lang.org/) using [Parity](https://www.parity.io/)'s [Substrate framework](https://substrate.dev/).
88

99
### Helpful Links
1010

1111
- [Polkadot's blog post explaining interBTC](https://polkadot.network/bitcoin-is-coming-to-polkadot/)
1212

1313
- [BTC Parachain specification](https://interlay.gitlab.io/interbtc-spec/)
1414

15-
- [BTC Parachain open-source code](https://github.com/interlay/btc-parachain)
15+
- [BTC Parachain open-source code](https://github.com/interlay/interbtc)
1616

1717
- [XCLAIM peer-reviewed paper](https://eprint.iacr.org/2018/643.pdf)
1818

1919
- [Interlay homepage](https://www.interlay.io/)
2020

2121
## Security Guarantees: Trustless and Fully Decentralized
2222

23-
What makes the BTC-Parachain unique is the strict dedication to being trustless and decentralized:
23+
What makes the interBTC bridge unique is the strict dedication to being trustless and decentralized:
2424

25-
- **Trustless**. The bridge has no central authority. Right from the start, the BTC-Parachain will be run by a decentralized network of individuals, community members, and companies.
25+
- **Trustless**. The bridge has no central authority. Right from the start, the interBTC bridge will be run by a decentralized network of individuals, community members, and companies.
2626
- **Decentralized**. In the spirit of permissionless systems like Bitcoin, anyone can participate in operating the bridge: contrary to other approaches, you do not need permission or any additional token to become a maintainer and start earning fees.
2727

2828
As a holder of interBTC, you have the following guarantee:
@@ -40,19 +40,19 @@ Summarizing, to trust the bridge, you only need to:
4040

4141
### Cryptocurrency-Backed Assets
4242

43-
At the core, XCLAIM - the framework underlying the BTC-Parachain - introduces the concept of cryptocurrency-back assets. Assets are locked on Bitcoin and unlocked on Polkadot in form of 1:1 BTC backed-assets (interBTC). interBTC can be used just like any native asset within the Polkadot ecosystem, meaning: they can be easily transferred and integrated into other Parachains and applications.
43+
At the core, XCLAIM - the framework underlying the interBTC bridge - introduces the concept of cryptocurrency-back assets. Assets are locked on Bitcoin and unlocked on Polkadot in form of 1:1 BTC backed-assets (interBTC). interBTC can be used just like any native asset within the Polkadot ecosystem, meaning: they can be easily transferred and integrated into other Parachains and applications.
4444

4545
![Cryptocurrency-backed Assets](../_assets/img/CbA.jpg)
4646

4747
### Issue, Trade, Redeem
4848

4949
[XCLAIM](https://xclaim.io) consists of three main protocols, which also resemble the life-cycle of interBTC:
5050

51-
- **Issue**: Users create interBTC on the BTC-Parachain by locking BTC with Vaults — non-trusted and collateralized intermediaries on Bitcoin (see below).
51+
- **Issue**: Users create interBTC on the interBTC bridge by locking BTC with Vaults — non-trusted and collateralized intermediaries on Bitcoin (see below).
5252

5353
- **Transfer**: Users transfer interBTC to other users or migrate to other Parachains within the Polkadot ecosystem, integrating with stablecoins, decentralized exchanges, lending protocols etc.
5454

55-
- **Redeem**: Users burn interBTC on the BTC-Parachain to receive the *equivalent* amount of BTC from Vaults on Bitcoin.
55+
- **Redeem**: Users burn interBTC on the interBTC bridge to receive the *equivalent* amount of BTC from Vaults on Bitcoin.
5656

5757
interBTC can remain on Polkadot indefinitely (no expiry date) and can be redeemed at any point in time. Users who obtain interBTC on Polkadot do not need a BTC wallet, until they decide to redeem the tokens for BTC (if at all).
5858

@@ -90,7 +90,7 @@ Both can redeem owned interBTC for BTC at any time (requires BTC wallet).
9090

9191
All roles are coordinated through the **Parachain Execution Environment**, which encodes the functionality to issue, transfer and redeem interBTC, and enforce correct behavior of Vaults. Thereby, the Parachain implements a multi-stage collateralization scheme, to protect against exchange rate fluctuations. The Parachain also verifies the correct execution of payments on Bitcoin via BTC-Relay, a Substrate Bitcoin SPV client. To transfer interBTC to other Parachains, an integration with Polkadot’s Cross-Chain Message Passing (XCMP) will be provided.
9292

93-
![The BTC-Parachain is Polkadot’s trustless gateway for Bitcoin.](https://cdn-images-1.medium.com/max/3200/0*v1lfJ1ZK75luh16s)*The BTC-Parachain is Polkadot’s trustless gateway for Bitcoin.*
93+
![The interBTC bridge is Polkadot’s trustless gateway for Bitcoin.](https://cdn-images-1.medium.com/max/3200/0*v1lfJ1ZK75luh16s)*The interBTC bridge is Polkadot’s trustless gateway for Bitcoin.*
9494

9595
<div id="step-by-step"></div>
9696

docs/vault/overview.md

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,60 @@
11
# Vaults
22

3-
Vaults are the heart of the interBTC bridge. They are responsible for maintaining the physical 1:1 peg between BTC and interBTC.
4-
Vaults receive BTC for safekeeping from users and ensure BTC remains locked while interBTC exists
3+
Vaults are the heart of the interBTC and Kintsugi bridge. They are responsible for maintaining the physical 1:1 peg between BTC and interBTC/kBTC.
4+
Vaults receive BTC for safekeeping from users and ensure BTC remains locked while interBTC/kBTC exists
55

6-
Vaults are **non-trusted** and **collateralized** and **any user can become a Vault** by providing DOT collateral. This means: as a user, you can freely choose any Vault you like or be your own Vault. You don’t have to trust anyone else if you want to be extra cautious.
6+
Vaults are **non-trusted** and **collateralized** and **any user can become a Vault** by providing collateral. This means: as a user, you can freely choose any Vault you like or be your own Vault. You don’t have to trust anyone else if you want to be extra cautious.
77

8-
The correct behavior of Vaults is enforced by the interBTC bridge parachain. Specifically, Vaults must prove correct behavior to the BTC-Relay component - a Bitcoin SPV client implemented directly on top of Polkadot. If a Vault tries to steal BTC, this will be automatically detected and the Vault will lose its collateral - and users will be reimbursed using this collateral (at a beneficial rate).
8+
The correct behavior of Vaults is enforced by the bridge. Specifically, Vaults must prove correct behavior to the BTC-Relay component - a Bitcoin SPV client implemented directly on top of the bridge. If a Vault tries to steal BTC, this will be automatically detected and the Vault will lose its collateral - and users will be reimbursed using this collateral (at a beneficial rate).
99

10-
The secondary responsibility of a Vault is to monitor both Bitcoin and the interBTC bridge to ensure that the BTC-Relay (Bitcoin light/SPV client deployed on Polkadot) stays up to date with the Bitcoin mainchain by relaying Bitcoin block headers.
11-
12-
Note: BTC-Relay is self healing and automatically detects and recovers from Bitcoin forks.
10+
The secondary responsibility of a Vault is to monitor both Bitcoin and the bridge to ensure that the BTC-Relay stays up to date with the Bitcoin mainchain by relaying Bitcoin block headers. BTC-Relay is self-healing and automatically detects and recovers from Bitcoin forks.
1311

1412
### What do Vaults do?
1513

16-
1. **Provide DOT Collateral** and upload their Bitcoin public key to the interBTC bridge. The amount of collateral provided determines how much BTC the Vault can accept for safekeeping / how many interBTC this Vault can secure.
17-
2. **Issue**: Vaults receive BTC from users for safekeeping. This locks the Vault's DOT collateral until BTC is redeemed again.
18-
3. **Redeem**: Vaults monitor the interBTC bridge for redeem requests. When a user requests to redeem interBTC, Vaults release BTC to the user and prove that they behaved correctly to the interBTC bridge (via the BTC-Relay). Only if this proof is correct, the Vault's collateral is unlocked again.
14+
1. **Provide Collateral** and upload their Bitcoin public key to the bridge. The amount of collateral provided determines how much BTC the Vault can accept for safekeeping. Collateral can initially be provided in KSM (on Kintsugi) and DOT (on interBTC).
15+
2. **Issue**: Vaults receive BTC from users for safekeeping. This locks the Vault's collateral until BTC is redeemed again.
16+
3. **Redeem**: Vaults monitor the interBTC/Kintsugi bridge for redeem requests. When a user requests to redeem interBTC/kBTC, Vaults release BTC to the user and prove that they behaved correctly via the BTC-Relay. Only if this proof is correct, the Vault's collateral is unlocked.
17+
18+
To support the integrity of the bridge, Vaults are also able to assume the role of a Relayer:
19+
20+
1. **Maintain BTC-Relay**: submit Bitcoin block headers to BTC-Relay and make sure the bridge stays up to date with the Bitcoin mainchain.
21+
2. **Report Vault Theft**: monitor Vault Bitcoin addresses and BTC holdings and report theft to the bridge (providing an SPV proof to BTC-Relay)
1922

20-
To support the integrity of the parachain, Vaults are also able to assume the role of a Relayer:
23+
### Why operating a Vault?
2124

22-
1. **Maintain BTC-Relay**: submit Bitcoin block headers to interBTC's BTC-Relay and make sure the bridge stays up to date with the Bitcoin mainchain.
23-
2. **Report Vault Theft**: monitor Vault Bitcoin addresses and BTC holdings and report theft to the interBTC bridge (providing an SPV proof to BTC-Relay)
25+
1. **Earning potential:**
2426

25-
### Why would I want to become a Vault?
27+
- *interBTC/kBTC*: All Vaults are part of a fee pool and earn fees in interBTC/kBTC when any user issues or redeems interBTC/kBTC.
28+
- *KINT* (Kintsugi-only): Vaults receive a KINT block reward.
29+
- *KSM/DOT* (planned feature): Subject to governance, Vaults are able to provide collateral in liquid staked assets like LKSM or LDOT to receive both staking rewards from the relay chain and the rewards form the Kintsugi/interBTC bridge.
2630

27-
1. **Yield farming:** Vaults earn fees in interBTC and receive a subsidy in DOT. As such, Vaults earn yield on their DOT collateral and have **exposure to both DOT and (Polka)BTC**.
2831
2. **Self-custody:** Vaults hold BTC of users in custody. If you are a large liquidity provider, you can be your own vault and retain custody over your BTC holdings until you sell interBTC.
2932

3033
### What do I need to become a Vault?
3134

3235
1. Vault client ([source](https://github.com/interlay/interbtc-clients))
3336
2. Bitcoin full node ([instructions](https://bitcoin.org/en/full-node))
3437
3. Polkadot account ([public/private keypair](https://wiki.polkadot.network/docs/en/learn-keys))
35-
4. Some DOTs to provide as collateral and pay for transaction fees
38+
4. Some KSM/DOT to provide as collateral and pay for transaction fees
3639

3740
Head over to ["Installation"](/vault/installation) for a detailed setup guide.
3841

3942
## Fee Model
4043

41-
Vaults earn fees on issue and redeem, based on the interBTC volume.
44+
Vaults earn fees on issue and redeem, based on the BTC volume.
4245

4346
### Pool-based Fee Distribution
4447

45-
Vaults earn fees based on the issued and redeemed interBTC volume. To reduce variance of payouts, the interBTC bridge implements a **pooled fee model**.
48+
Vaults earn fees based on the issued and redeemed BTC volume. To reduce variance of payouts, the bridge implements a **pooled fee model**.
4649

47-
Each time a user issues or redeems interBTC, they pay the following fees to a **global fee pool**:
50+
Each time a user issues or redeems interBTC/kBTC, they pay the following fees to a **global fee pool**:
4851

49-
- **Issue Fee**: `0.5%` of the Issue volume, paid in *interBTC*
50-
- **Redeem**: `0.5%` of the redeem volume, paid in *interBTC*
52+
- **Issue Fee**: `0.5%` of the Issue volume, paid in *interBTC/kBTC*
53+
- **Redeem**: `0.5%` of the redeem volume, paid in *interBTC/kBTC*
5154

5255
From this fee pool, `100%` is distributed among all active Vaults based on the following factor:
5356

54-
- 100% based on the Vault's **BTC in custody** ( = issued interBTC) in proportion to the total locked BTC (= issued interBTC) across all Vaults
57+
- 100% based on the Vault's **BTC in custody** ( = issued interBTC/kBTC) in proportion to the total locked BTC (= issued interBTC/kBTC) across all Vaults
5558

5659
Specifically, each Vault's fee is calculated according to the following formula:
5760

@@ -60,10 +63,16 @@ Specifically, each Vault's fee is calculated according to the following formula:
6063

6164
The Vault fee is paid each time an Issue or Redeem request is executed.
6265

66+
### KINT Vault Block Rewards (Kintsugi-only)
67+
68+
Vaults receive KINT as fees for keeping BTC locked and providing the required insurance collateral in KSM and other assets. Early Vaults receive more rewards as they take up higher risk in terms of protocol maturity.
69+
70+
For the full details, see the [Kintsugi whitepaper](https://raw.githubusercontent.com/interlay/whitepapers/master/Kintsugi_Token_Economy.pdf).
71+
6372
## Collateral
6473

65-
To ensure Vaults have no incentive to steal user's BTC, Vaults provide collateral in DOT to the interBTC bridge.
66-
To mitigate exchange rate fluctuations, the interBTC bridge employs *over-collateralization* and a *multi-level collateral balancing* scheme.
74+
To ensure Vaults have no incentive to steal user's BTC, Vaults provide collateral in DOT to the interBTC bridge or KSM to the Kintsugi bridge.
75+
To mitigate exchange rate fluctuations, the bridge employs *over-collateralization* and a *multi-level collateral balancing* scheme.
6776

6877
### Over-collateralization
6978

0 commit comments

Comments
 (0)