Skip to content

Commit

Permalink
Refactor docs/a0
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-cichocki committed Dec 5, 2023
1 parent d56fae9 commit a05aed9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/docs/aleph_zero/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The `Positions` struct is designed to manage positions associated with different

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

**Why Positions are Stored in State Instead of NFTs:**
**Why Positions are Stored in State Instead of NFTs?**

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

Expand Down
29 changes: 15 additions & 14 deletions docs/docs/aleph_zero/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ slug: /aleph_zero/storage

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.

## Contract state

```rust
pub struct State {
pub admin: AccountId,
pub protocol_fee: Percentage,
}
```
|Name|Type|Description|
|-|-|-|
|admin|AccountId|Account address of pool admin|
|protocol_fee|Percentage|Percentage of the fee collected upon every swap in the pool|


## FeeTier

```rust
Expand Down Expand Up @@ -114,17 +128,4 @@ pub struct Tick {
|sqrt_price|SqrtPrice|Square root of tick price|
|fee_growth_outside_x|FeeGrowth|Amount of Fees accumulated in token_x outside-range|
|fee_growth_outside_y|FeeGrowth|Amount of Fees accumulated in token_y outside-range|
|seconds_outside|u64|Seconds outside-range|

## State

```rust
pub struct State {
pub admin: AccountId,
pub protocol_fee: Percentage,
}
```
|Name|Type|Description|
|-|-|-|
|admin|AccountId|Account address of pool admin|
|protocol_fee|Percentage|Percentage of the fee collected upon every swap in the pool|
|seconds_outside|u64|Seconds outside-range|

0 comments on commit a05aed9

Please sign in to comment.