Skip to content

Commit a05aed9

Browse files
Refactor docs/a0
1 parent d56fae9 commit a05aed9

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

docs/docs/aleph_zero/collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The `Positions` struct is designed to manage positions associated with different
2525

2626
This documentation should help users understand the purpose of the `Positions` struct and how to use its functions effectively.
2727

28-
**Why Positions are Stored in State Instead of NFTs:**
28+
**Why Positions are Stored in State Instead of NFTs?**
2929

3030
We have chosen to store positions in the state rather than using NFTs for several reasons:
3131

docs/docs/aleph_zero/storage.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ slug: /aleph_zero/storage
66

77
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.
88

9+
## Contract state
10+
11+
```rust
12+
pub struct State {
13+
pub admin: AccountId,
14+
pub protocol_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+
923
## FeeTier
1024

1125
```rust
@@ -114,17 +128,4 @@ pub struct Tick {
114128
|sqrt_price|SqrtPrice|Square root of tick price|
115129
|fee_growth_outside_x|FeeGrowth|Amount of Fees accumulated in token_x outside-range|
116130
|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-
pub struct State {
123-
pub admin: AccountId,
124-
pub protocol_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|
131+
|seconds_outside|u64|Seconds outside-range|

0 commit comments

Comments
 (0)