Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some doc typos #63

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions programs/amm/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ pub enum ErrorCode {
InvaildTickIndex,
#[msg("The lower tick must be below the upper tick")]
TickInvaildOrder,
#[msg("The tick must be greater, or equal to the minimum tick(-221818)")]
#[msg("The tick must be greater, or equal to the minimum tick(-443636)")]
TickLowerOverflow,
#[msg("The tick must be lesser than, or equal to the maximum tick(221818)")]
#[msg("The tick must be lesser than, or equal to the maximum tick(443636)")]
TickUpperOverflow,
#[msg("tick % tick_spacing must be zero")]
TickAndSpacingNotMatch,
Expand Down
4 changes: 2 additions & 2 deletions programs/amm/src/instructions/create_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct CreatePool<'info> {
)]
pub pool_state: AccountLoader<'info, PoolState>,

/// Token_0 mint, the key must grater then token_1 mint.
/// Token_0 mint, the key must be greater then token_1 mint.
#[account(
constraint = token_mint_0.key() < token_mint_1.key(),
mint::token_program = token_program_0
Expand Down Expand Up @@ -73,7 +73,7 @@ pub struct CreatePool<'info> {
)]
pub token_vault_1: Box<InterfaceAccount<'info, TokenAccount>>,

/// CHECK: Initialize an account to store oracle observations, the account must be created off-chain, constract will initialzied it
/// CHECK: Initialize an account to store oracle observations, the account must be created off-chain, contract will initialize it
#[account(mut)]
pub observation_state: UncheckedAccount<'info>,

Expand Down
2 changes: 1 addition & 1 deletion programs/amm/src/states/oracle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl ObservationState {
Ok(())
}

// Writes an oracle observation to the account, returning the next observation_index.
/// Writes an oracle observation to the account, returning the next observation_index.
/// Writable at most once per second. Index represents the most recently written element.
/// If the index is at the end of the allowable array length (1000 - 1), the next index will turn to 0.
///
Expand Down