Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
0x777A committed Dec 10, 2024
1 parent 8f59040 commit 32fe1b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Clone the repository and test the program.
```shell

git clone https://github.com/raydium-io/raydium-cp-swap
cd raydium-cp-swap && anchor test
cd raydium-cp-swap && yarn && anchor test
```

## License
Expand Down
4 changes: 2 additions & 2 deletions programs/cp-swap/src/instructions/initialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub struct Initialize<'info> {
)]
pub creator_lp_token: Box<InterfaceAccount<'info, TokenAccount>>,

/// CHECK: Token_0 vault for the pool
/// CHECK: Token_0 vault for the pool, create by contract
#[account(
mut,
seeds = [
Expand All @@ -113,7 +113,7 @@ pub struct Initialize<'info> {
)]
pub token_0_vault: UncheckedAccount<'info>,

/// CHECK: Token_1 vault for the pool
/// CHECK: Token_1 vault for the pool, create by contract
#[account(
mut,
seeds = [
Expand Down
2 changes: 1 addition & 1 deletion programs/cp-swap/src/instructions/swap_base_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ pub fn swap_base_input(ctx: Context<Swap>, amount_in: u64, minimum_amount_out: u
"source_amount_swapped:{}, destination_amount_swapped:{}, trade_fee:{}, constant_before:{},constant_after:{}",
result.source_amount_swapped,
result.destination_amount_swapped,
trade_fee,
result.trade_fee,
constant_before,
constant_after
);
Expand Down

0 comments on commit 32fe1b0

Please sign in to comment.