diff --git a/deps/kamino.so b/deps/kamino.so index fd9f4acc..bcc02f23 100644 Binary files a/deps/kamino.so and b/deps/kamino.so differ diff --git a/packages/kamino-sdk/src/kamino-client/instructions/emergencySwap.ts b/packages/kamino-sdk/src/kamino-client/instructions/emergencySwap.ts index 8903d4e5..06fda472 100644 --- a/packages/kamino-sdk/src/kamino-client/instructions/emergencySwap.ts +++ b/packages/kamino-sdk/src/kamino-client/instructions/emergencySwap.ts @@ -13,6 +13,8 @@ export interface EmergencySwapAccounts { adminAuthority: PublicKey strategy: PublicKey globalConfig: PublicKey + tokenAMint: PublicKey + tokenBMint: PublicKey tokenAVault: PublicKey tokenBVault: PublicKey baseVaultAuthority: PublicKey @@ -49,6 +51,8 @@ export function emergencySwap( { pubkey: accounts.adminAuthority, isSigner: true, isWritable: true }, { pubkey: accounts.strategy, isSigner: false, isWritable: true }, { pubkey: accounts.globalConfig, isSigner: false, isWritable: false }, + { pubkey: accounts.tokenAMint, isSigner: false, isWritable: false }, + { pubkey: accounts.tokenBMint, isSigner: false, isWritable: false }, { pubkey: accounts.tokenAVault, isSigner: false, isWritable: true }, { pubkey: accounts.tokenBVault, isSigner: false, isWritable: true }, { pubkey: accounts.baseVaultAuthority, isSigner: false, isWritable: true }, @@ -59,7 +63,7 @@ export function emergencySwap( { pubkey: accounts.tickArray0, isSigner: false, isWritable: true }, { pubkey: accounts.tickArray1, isSigner: false, isWritable: true }, { pubkey: accounts.tickArray2, isSigner: false, isWritable: true }, - { pubkey: accounts.oracle, isSigner: false, isWritable: false }, + { pubkey: accounts.oracle, isSigner: false, isWritable: true }, { pubkey: accounts.poolProgram, isSigner: false, isWritable: false }, { pubkey: accounts.scopePrices, isSigner: false, isWritable: false }, { pubkey: accounts.tokenInfos, isSigner: false, isWritable: false }, diff --git a/packages/kamino-sdk/src/kamino-client/instructions/orcaSwap.ts b/packages/kamino-sdk/src/kamino-client/instructions/orcaSwap.ts index 9832f44b..55f9a723 100644 --- a/packages/kamino-sdk/src/kamino-client/instructions/orcaSwap.ts +++ b/packages/kamino-sdk/src/kamino-client/instructions/orcaSwap.ts @@ -23,6 +23,8 @@ export interface OrcaSwapAccounts { tokenVaultA: PublicKey tokenOwnerAccountB: PublicKey tokenVaultB: PublicKey + tokenMintA: PublicKey + tokenMintB: PublicKey tickArray0: PublicKey tickArray1: PublicKey tickArray2: PublicKey @@ -54,6 +56,8 @@ export function orcaSwap( { pubkey: accounts.tokenVaultA, isSigner: false, isWritable: false }, { pubkey: accounts.tokenOwnerAccountB, isSigner: false, isWritable: false }, { pubkey: accounts.tokenVaultB, isSigner: false, isWritable: false }, + { pubkey: accounts.tokenMintA, isSigner: false, isWritable: false }, + { pubkey: accounts.tokenMintB, isSigner: false, isWritable: false }, { pubkey: accounts.tickArray0, isSigner: false, isWritable: false }, { pubkey: accounts.tickArray1, isSigner: false, isWritable: false }, { pubkey: accounts.tickArray2, isSigner: false, isWritable: false }, diff --git a/packages/kamino-sdk/src/kamino-client/instructions/swapUnevenVaults.ts b/packages/kamino-sdk/src/kamino-client/instructions/swapUnevenVaults.ts index 666b6870..37858399 100644 --- a/packages/kamino-sdk/src/kamino-client/instructions/swapUnevenVaults.ts +++ b/packages/kamino-sdk/src/kamino-client/instructions/swapUnevenVaults.ts @@ -70,7 +70,7 @@ export function swapUnevenVaults( { pubkey: accounts.tickArray0, isSigner: false, isWritable: true }, { pubkey: accounts.tickArray1, isSigner: false, isWritable: true }, { pubkey: accounts.tickArray2, isSigner: false, isWritable: true }, - { pubkey: accounts.oracle, isSigner: false, isWritable: false }, + { pubkey: accounts.oracle, isSigner: false, isWritable: true }, { pubkey: accounts.poolProgram, isSigner: false, isWritable: false }, { pubkey: accounts.scopePrices, isSigner: false, isWritable: false }, { pubkey: accounts.tokenInfos, isSigner: false, isWritable: false },