Skip to content

Commit 0de2990

Browse files
eric-stacksgitbook-bot
authored andcommitted
GITBOOK-29: update Dual Stacking page
1 parent 0bc74db commit 0de2990

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

docs/learn/dual-stacking/dual-stacking-smart-contract.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The Dual Stacking contract enables participants to earn boosted sBTC rewards by
66

77
{% hint style="info" %}
88
For the live dual stacking contract on mainnet, check out the contract page [here](https://explorer.hiro.so/txid/SP1HFCRKEJ8BYW4D0E3FAWHFDX8A25PPAA83HWWZ9.dual-stacking-v1?chain=mainnet).
9+
10+
On December 15, 2025, the dual stacking contract will be upgraded to [`.dual-stacking-v2_0_2`](https://explorer.hiro.so/txid/SP1HFCRKEJ8BYW4D0E3FAWHFDX8A25PPAA83HWWZ9.dual-stacking-v2_0_2?chain=mainnet)
911
{% endhint %}
1012

1113
### Decentralized Architecture
@@ -20,43 +22,43 @@ For the live dual stacking contract on mainnet, check out the contract page [her
2022

2123
{% stepper %}
2224
{% step %}
23-
#### Initialization
25+
**Initialization**
2426

2527
The contract is initialized once with a Stacks block height parameter that is the first one in the Bitcoin block specified, or after it, in case there aren't any STX blocks anchored to it.
2628
{% endstep %}
2729

2830
{% step %}
29-
#### Enrollment
31+
**Enrollment**
3032

3133
Users can self-enroll for participation with custom reward addresses. DeFi protocols can be enrolled by admin with custom tracking, stacking, and reward addresses. All participants can opt-out or change their addresses at any time.
3234
{% endstep %}
3335

3436
{% step %}
35-
#### Snapshots and Cycles
37+
**Snapshots and Cycles**
3638

3739
Anyone can trigger periodic snapshots that capture participant sBTC balances and STX stacking amounts from on-chain data based on predefined block intervals.
3840
{% endstep %}
3941

4042
{% step %}
41-
#### Ratio Computation
43+
**Ratio Computation**
4244

4345
After snapshots are complete, anyone can propose a golden ratio (optimal STX/sBTC ratio), tally participant distributions, and validate if their proposal meets the 95th percentile criteria to determine the benchmark for maximum rewards.
4446
{% endstep %}
4547

4648
{% step %}
47-
#### Weight Calculation
49+
**Weight Calculation**
4850

4951
Anyone can trigger participant weight calculations using the validated dual stacking formula that provides up to 10x boost (configurable) for those who meet or exceed the golden ratio.
5052
{% endstep %}
5153

5254
{% step %}
53-
#### Rewards
55+
**Rewards**
5456

5557
Anyone can trigger reward distribution every cycle based on calculated weights. Administrators can update configurations like APR, yield boost multiplier, snapshot length, and number of snapshots per cycle.
5658
{% endstep %}
5759

5860
{% step %}
59-
#### Administrative Controls
61+
**Administrative Controls**
6062

6163
Admins maintain protocol parameters, enroll/opt-out DeFi protocols with special address configurations, manage whitelists and blacklists, and can perform emergency operations if needed.
6264
{% endstep %}
@@ -118,15 +120,15 @@ The Dual Stacking smart contract operates in cycles, each divided into snapshots
118120

119121
{% stepper %}
120122
{% step %}
121-
#### Snapshot Phase (Anyone Can Execute)
123+
**Snapshot Phase (Anyone Can Execute)**
122124

123125
* capture-snapshot-balances: Anyone can capture balances for enrolled users after each snapshot.
124126
* advance-to-next-snapshot: Anyone can transition to the next snapshot.
125127
* finalize-snapshots: Anyone can conclude all snapshot data after the final snapshot.
126128
{% endstep %}
127129

128130
{% step %}
129-
#### Ratio Validation Phase (Competitive & Permissionless)
131+
**Ratio Validation Phase (Competitive & Permissionless)**
130132

131133
* propose-golden-ratio: Anyone can propose a golden ratio.
132134
* tally-participant-ratios: The proposer tallies participant ratios relative to their proposed ratio.
@@ -135,22 +137,22 @@ The Dual Stacking smart contract operates in cycles, each divided into snapshots
135137
{% endstep %}
136138

137139
{% step %}
138-
#### Weight Computation Phase (Anyone Can Execute)
140+
**Weight Computation Phase (Anyone Can Execute)**
139141

140142
* calculate-participant-weights: Anyone can calculate participant weights using the dual stacking formula.
141143
* finalize-weight-computation: Anyone can finalize weight computation.
142144
{% endstep %}
143145

144146
{% step %}
145-
#### Reward Distribution Phase (Anyone Can Execute)
147+
**Reward Distribution Phase (Anyone Can Execute)**
146148

147149
* set-is-distribution-enabled: Anyone can enable reward distribution by determining the available reward pool.
148150
* distribute-rewards: Anyone can distribute rewards to enrolled users based on their weights.
149151
* finalize-reward-distribution: Anyone can finalize reward distribution after all participants are rewarded.
150152
{% endstep %}
151153

152154
{% step %}
153-
#### Cycle Transition (Anyone Can Execute)
155+
**Cycle Transition (Anyone Can Execute)**
154156

155157
* advance-to-next-cycle: Anyone can advance to the next cycle after all rewards are distributed.
156158
{% endstep %}

0 commit comments

Comments
 (0)