Skip to content
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
1 change: 1 addition & 0 deletions packages/sdk/src/programs/stable-swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,7 @@ export class StableSwapContext<T extends Provider = Provider> extends WalletCont
.execStrategy(rampStep, rampDuration)
.accountsStrict({
strategy: address,
owner: pool.ownerAddress,
pool: pool.address,
})
.instruction();
Expand Down
3 changes: 1 addition & 2 deletions programs/stable-swap/src/instructions/shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ pub fn process_shutdown<'a, 'b, 'c, 'info>(ctx: Context<'_, '_, 'info, 'info, Sh

#[derive(Accounts)]
pub struct Shutdown<'info> {
/// CHECK: OK
#[account(mut)]
pub owner: UncheckedAccount<'info>,
pub owner: Signer<'info>,

#[account(mut, close = owner, has_one = owner)]
pub pool: Account<'info, Pool>,
Expand Down
4 changes: 3 additions & 1 deletion programs/stable-swap/src/instructions/strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ pub struct ExecStrategy<'info> {
#[account(has_one = pool)]
pub strategy: Account<'info, Strategy>,

#[account(mut)]
pub owner: Signer<'info>,

#[account(mut, has_one = owner)]
pub pool: Account<'info, Pool>,
}
3 changes: 1 addition & 2 deletions programs/weighted-swap/src/instructions/shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ pub fn process_shutdown<'a, 'b, 'c, 'info>(ctx: Context<'_, '_, 'info, 'info, Sh

#[derive(Accounts)]
pub struct Shutdown<'info> {
/// CHECK: OK
#[account(mut)]
pub owner: UncheckedAccount<'info>,
pub owner: Signer<'info>,

#[account(mut, close = owner, has_one = owner)]
pub pool: Account<'info, Pool>,
Expand Down