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/docs/aleph_zero/storage.md
+15-14Lines changed: 15 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,20 @@ slug: /aleph_zero/storage
6
6
7
7
This section provides an in-depth exploration of key data structures integral to the Aleph Zero protocol's storage mechanism. Understanding these structures is fundamental for developers and integrators working with the protocol.
8
8
9
+
## Contract state
10
+
11
+
```rust
12
+
pubstructState {
13
+
pubadmin:AccountId,
14
+
pubprotocol_fee:Percentage,
15
+
}
16
+
```
17
+
|Name|Type|Description|
18
+
|-|-|-|
19
+
|admin|AccountId|Account address of pool admin|
20
+
|protocol_fee|Percentage|Percentage of the fee collected upon every swap in the pool|
21
+
22
+
9
23
## FeeTier
10
24
11
25
```rust
@@ -114,17 +128,4 @@ pub struct Tick {
114
128
|sqrt_price|SqrtPrice|Square root of tick price|
115
129
|fee_growth_outside_x|FeeGrowth|Amount of Fees accumulated in token_x outside-range|
116
130
|fee_growth_outside_y|FeeGrowth|Amount of Fees accumulated in token_y outside-range|
117
-
|seconds_outside|u64|Seconds outside-range|
118
-
119
-
## State
120
-
121
-
```rust
122
-
pubstructState {
123
-
pubadmin:AccountId,
124
-
pubprotocol_fee:Percentage,
125
-
}
126
-
```
127
-
|Name|Type|Description|
128
-
|-|-|-|
129
-
|admin|AccountId|Account address of pool admin|
130
-
|protocol_fee|Percentage|Percentage of the fee collected upon every swap in the pool|
0 commit comments