Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto-vincent committed Aug 19, 2024
1 parent beabd61 commit a84b1d3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
17 changes: 14 additions & 3 deletions programs/uxd/tests/integration_tests/suites/test_ensure_devnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ async fn test_ensure_devnet() -> Result<(), program_context::ProgramError> {
)
.await?;
}

program_uxd::instructions::process_edit_controller(
&mut program_context,
&payer,
Expand Down Expand Up @@ -325,18 +324,30 @@ async fn test_ensure_devnet() -> Result<(), program_context::ProgramError> {
)
.await?;

program_uxd::instructions::process_mint_with_credix_lp_depository(
program_uxd::instructions::process_redeem_from_identity_depository(
&mut program_context,
&payer,
&authority,
&collateral_mint,
&authority,
&authority_collateral,
&authority_redeemable,
10_000, // 0.01 collateral
)
.await?;

program_uxd::instructions::process_redeem_from_mercurial_vault_depository(
&mut program_context,
&payer,
&authority,
&collateral_mint,
&mercurial_vault_lp_mint.pubkey(),
&authority,
&authority_collateral,
&authority_redeemable,
10_000 - 1, // 0.01 collateral (-precision-loss)
)
.await?;

// Done
Ok(())
}
13 changes: 0 additions & 13 deletions tests/test_ci_credix_lp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { editControllerTest } from './cases/editControllerTest';
import { initializeControllerTest } from './cases/initializeControllerTest';
import { authority, bank, uxdProgramId } from './constants';
import { credixLpDepositoryEditSuite } from './suite/credixLpDepositoryEditSuite';
import { credixLpDepositoryMintSuite } from './suite/credixLpDepositoryMintSuite';
import { credixLpDepositorySetupSuite } from './suite/credixLpDepositorySetupSuite';
import {
transferSol,
Expand Down Expand Up @@ -79,18 +78,6 @@ import {
credixLpDepositoryEditSuite({ authority, controller });
});

/**
* Disabling minting test on devnet since credix program has minting disabled now
*/
// describe('credixLpDepositoryMintSuite', function () {
// credixLpDepositoryMintSuite({
// authority,
// user,
// payer: bank,
// controller,
// });
// });

this.afterAll('Transfer funds back to bank', async function () {
await transferAllTokens(
collateralMint,
Expand Down

0 comments on commit a84b1d3

Please sign in to comment.