From ebd684dfe1e090c729339ad878be628fe30121a1 Mon Sep 17 00:00:00 2001 From: A5 Pickle Date: Mon, 12 Aug 2024 16:05:42 -0500 Subject: [PATCH] solana: skip Token 2022 outbound tests NOTE: Cannot swap via Raydium CLMM now. Need to fix these tests by forking new accounts and possibly excluding this dex. --- solana/ts/tests/10__swap.ts | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/solana/ts/tests/10__swap.ts b/solana/ts/tests/10__swap.ts index f0410f72..a05979e8 100644 --- a/solana/ts/tests/10__swap.ts +++ b/solana/ts/tests/10__swap.ts @@ -223,7 +223,17 @@ describe("Swap Layer -- Jupiter V6", () => { ); }); - it("User Swap Token-2022 Mint to USDC From Simulated Quote -- Multi Route", async function () { + // TODO: This test is disabled because Raydium CLMM is now breaking. + // + // Program CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK invoke [3] + // Program log: Instruction: Swap + // Program log: AnchorError thrown in programs/amm/src/instructions/swap.rs:189. Error Code: RequireKeysEqViolated. Error Number: 2502. Error Message: A require_keys_eq expression was violated. + // Program log: Left: + // Program log: FgRFwp3q4XP5heU3LXqhrcR7DVUBZrzW1BCiPdmGVjdK + // Program log: Right: + // Program log: 8sLbNZoA1cfnvMJLPfp98ZLAnFSYCFApfJKMbiXNLwxj + // Program CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK consumed 29907 of 270505 compute units + it.skip("User Swap Token-2022 Mint to USDC From Simulated Quote -- Multi Route", async function () { const addressLookupTableAccounts = await Promise.all( JUPITER_V6_LUT_ADDRESSES_BERN.map(async (lookupTableAddress) => { const resp = await connection.getAddressLookupTable(lookupTableAddress); @@ -710,7 +720,17 @@ describe("Swap Layer -- Jupiter V6", () => { assert.isTrue(preparedCustodyTokenBalance >= minAmountOut); }); - it("Token-2022 Mint via Multi-Route", async function () { + // TODO: This test is disabled because Raydium CLMM is now breaking. + // + // Program CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK invoke [3] + // Program log: Instruction: Swap + // Program log: AnchorError thrown in programs/amm/src/instructions/swap.rs:189. Error Code: RequireKeysEqViolated. Error Number: 2502. Error Message: A require_keys_eq expression was violated. + // Program log: Left: + // Program log: FgRFwp3q4XP5heU3LXqhrcR7DVUBZrzW1BCiPdmGVjdK + // Program log: Right: + // Program log: 8sLbNZoA1cfnvMJLPfp98ZLAnFSYCFApfJKMbiXNLwxj + // Program CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK consumed 29907 of 270505 compute units + it.skip("Token-2022 Mint via Multi-Route", async function () { const srcMint = BERN_MINT_ADDRESS; const {