You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/learn/dual-stacking/dual-stacking-smart-contract.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ The Dual Stacking contract enables participants to earn boosted sBTC rewards by
6
6
7
7
{% hint style="info" %}
8
8
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)
9
11
{% endhint %}
10
12
11
13
### Decentralized Architecture
@@ -20,43 +22,43 @@ For the live dual stacking contract on mainnet, check out the contract page [her
20
22
21
23
{% stepper %}
22
24
{% step %}
23
-
#### Initialization
25
+
**Initialization**
24
26
25
27
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.
26
28
{% endstep %}
27
29
28
30
{% step %}
29
-
#### Enrollment
31
+
**Enrollment**
30
32
31
33
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.
32
34
{% endstep %}
33
35
34
36
{% step %}
35
-
#### Snapshots and Cycles
37
+
**Snapshots and Cycles**
36
38
37
39
Anyone can trigger periodic snapshots that capture participant sBTC balances and STX stacking amounts from on-chain data based on predefined block intervals.
38
40
{% endstep %}
39
41
40
42
{% step %}
41
-
#### Ratio Computation
43
+
**Ratio Computation**
42
44
43
45
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.
44
46
{% endstep %}
45
47
46
48
{% step %}
47
-
#### Weight Calculation
49
+
**Weight Calculation**
48
50
49
51
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.
50
52
{% endstep %}
51
53
52
54
{% step %}
53
-
#### Rewards
55
+
**Rewards**
54
56
55
57
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.
56
58
{% endstep %}
57
59
58
60
{% step %}
59
-
#### Administrative Controls
61
+
**Administrative Controls**
60
62
61
63
Admins maintain protocol parameters, enroll/opt-out DeFi protocols with special address configurations, manage whitelists and blacklists, and can perform emergency operations if needed.
62
64
{% endstep %}
@@ -118,15 +120,15 @@ The Dual Stacking smart contract operates in cycles, each divided into snapshots
118
120
119
121
{% stepper %}
120
122
{% step %}
121
-
#### Snapshot Phase (Anyone Can Execute)
123
+
**Snapshot Phase (Anyone Can Execute)**
122
124
123
125
* capture-snapshot-balances: Anyone can capture balances for enrolled users after each snapshot.
124
126
* advance-to-next-snapshot: Anyone can transition to the next snapshot.
125
127
* finalize-snapshots: Anyone can conclude all snapshot data after the final snapshot.
126
128
{% endstep %}
127
129
128
130
{% step %}
129
-
#### Ratio Validation Phase (Competitive & Permissionless)
0 commit comments