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: wrong value comments texting #33

Open
wants to merge 1 commit 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
6 changes: 3 additions & 3 deletions programs/cp-swap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,18 @@ pub mod raydium_cp_swap {
/// * `fund_fee_rate`- The new fund fee rate of amm config, be set when `param` is 2
/// * `new_owner`- The config's new owner, be set when `param` is 3
/// * `new_fund_owner`- The config's new fund owner, be set when `param` is 4
/// * `param`- The vaule can be 0 | 1 | 2 | 3 | 4, otherwise will report a error
/// * `param`- The value can be 0 | 1 | 2 | 3 | 4, otherwise will report a error
///
pub fn update_amm_config(ctx: Context<UpdateAmmConfig>, param: u8, value: u64) -> Result<()> {
instructions::update_amm_config(ctx, param, value)
}

/// Update pool status for given vaule
/// Update pool status for given value
///
/// # Arguments
///
/// * `ctx`- The context of accounts
/// * `status` - The vaule of status
/// * `status` - The value of status
///
pub fn update_pool_status(ctx: Context<UpdatePoolStatus>, status: u8) -> Result<()> {
instructions::update_pool_status(ctx, status)
Expand Down
6 changes: 3 additions & 3 deletions programs/cp-swap/src/states/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ pub struct PoolState {

pub auth_bump: u8,
/// Bitwise representation of the state of the pool
/// bit0, 1: disable deposit(vaule is 1), 0: normal
/// bit1, 1: disable withdraw(vaule is 2), 0: normal
/// bit2, 1: disable swap(vaule is 4), 0: normal
/// bit0, 1: disable deposit(value is 1), 0: normal
/// bit1, 1: disable withdraw(value is 2), 0: normal
/// bit2, 1: disable swap(value is 4), 0: normal
pub status: u8,

pub lp_mint_decimals: u8,
Expand Down