@@ -15,7 +15,7 @@ import { utils } from "@project-serum/anchor";
1515import { setMangoDepositoriesRedeemableSoftCap } from "./api" ;
1616
1717console . log ( uxdProgramId . toString ( ) ) ;
18- const mangoDepositorySOL = new MangoDepository ( WSOL , "SOL" , SOL_DECIMALS , USDC_DEVNET , "USDC" , USDC_DECIMALS , USDC_DEVNET , "USDC" , USDC_DECIMALS , uxdProgramId ) ;
18+ const mangoDepositorySOL = new MangoDepository ( WSOL , "SOL" , SOL_DECIMALS , USDC_DEVNET , "USDC" , USDC_DECIMALS , uxdProgramId ) ;
1919const mangoDepositoryBTC = new MangoDepository ( BTC_DEVNET , "BTC" , BTC_DECIMALS , USDC_DEVNET , "USDC" , UXD_DECIMALS , uxdProgramId ) ;
2020const mangoDepositoryETH = new MangoDepository ( ETH_DEVNET , "ETH" , ETH_DECIMALS , USDC_DEVNET , "USDC" , USDC_DECIMALS , uxdProgramId ) ;
2121const controller = new Controller ( "UXD" , UXD_DECIMALS , uxdProgramId ) ;
@@ -37,7 +37,6 @@ describe("Integration tests SOL", function () {
3737 } ) ;
3838
3939
40-
4140 describe ( "Init" , async function ( ) {
4241 it ( "Initialize Controller" , async function ( ) {
4342 await initializeControllerTest ( authority , controller , payer ) ;
@@ -46,23 +45,23 @@ describe("Integration tests SOL", function () {
4645 it ( `Initialize ${ mangoDepositorySOL . collateralMintSymbol } Depository` , async function ( ) {
4746 await registerMangoDepositoryTest ( authority , controller , mangoDepositorySOL , mango , payer ) ;
4847 } ) ;
49- it . skip ( `Initialize ${ mangoDepositoryBTC . collateralMintSymbol } Depository` , async function ( ) {
50- await registerMangoDepositoryTest ( authority , controller , mangoDepositoryBTC , mango , payer ) ;
51- } ) ;
48+ // it.skip(`Initialize ${mangoDepositoryBTC.collateralMintSymbol} Depository`, async function () {
49+ // await registerMangoDepositoryTest(authority, controller, mangoDepositoryBTC, mango, payer);
50+ // });
5251 // it(`Initialize ${mangoDepositoryETH.collateralMintSymbol} Depository`, async function () {
5352 // await initializeMangoDepositoryTest(authority, controller, mangoDepositoryETH, mango, payer);
5453 // });
5554
5655 it ( `Deposit 100 USDC of insurance` , async function ( ) {
57- await depositInsuranceMangoDepositoryTest ( 100 , authority , controller , mangoDepositoryBTC , mango ) ;
56+ await depositInsuranceMangoDepositoryTest ( 100 , authority , controller , mangoDepositorySOL , mango ) ;
5857 } ) ;
5958
6059 it ( "Increase soft cap" , async function ( ) {
6160 await setMangoDepositoriesRedeemableSoftCap ( authority , controller , 10_000_000 ) ;
6261 } ) ;
6362
6463 it ( "Mint 1 BTC" , async function ( ) {
65- await mintWithMangoDepositoryTest ( 1 , slippage , user , controller , mangoDepositoryBTC , mango , payer ) ;
64+ await mintWithMangoDepositoryTest ( 1 , slippage , user , controller , mangoDepositorySOL , mango , payer ) ;
6665 } ) ;
6766 // it(`Withdraw 10 USDC of insurance`, async function () {
6867 // await withdrawInsuranceMangoDepositoryTest(10, authority, controller, mangoDepositorySOL, mango);
@@ -74,22 +73,14 @@ describe("Integration tests SOL", function () {
7473
7574 } ) ;
7675
77- describe . only ( "Quote Mint And Redeem Suite" , async function ( ) {
78- quoteMintAndRedeemSuite ( authority , user , payer , controller , mangoDepositoryBTC ) ;
79- } ) ;
76+ // describe.only("Quote Mint And Redeem Suite", async function () {
77+ // quoteMintAndRedeemSuite(authority, user, payer, controller, mangoDepositoryBTC);
78+ // });
8079
8180 // describe("Quote mint and redeem", async function () {
8281 // it("Mint 10 BTC", async function() {
8382 // await mintWithMangoDepositoryTest(10, slippage, user, controller, mangoDepositoryBTC, mango, payer);
8483 // });
85- it ( `Mint 1 ${ controller . redeemableMintSymbol } then redeem the outcome (${ slippage / slippageBase * 100 } % slippage)` , async function ( ) {
86- const perpPrice = await mangoDepositorySOL . getCollateralPerpPriceUI ( mango ) ;
87- const amount = 1 / perpPrice ;
88- console . log ( "[🧾 amount" , amount , mangoDepositorySOL . collateralMintSymbol , "]" ) ;
89- const mintedAmount = await mintWithMangoDepositoryTest ( amount , slippage , user , controller , mangoDepositorySOL , mango , payer ) ;
90- await redeemFromMangoDepositoryTest ( mintedAmount , slippage , user , controller , mangoDepositorySOL , mango , payer ) ;
91- } ) ;
92-
9384 // });
9485
9586 // describe.skip("Test minting/redeeming SOL", async function () {
@@ -130,8 +121,8 @@ describe("Integration tests SOL", function () {
130121 } ) ;
131122
132123 this . afterAll ( "Transfer funds back to bank" , async function ( ) {
133- await transferAllTokens ( USDC_DEVNET , USDC_DECIMALS , user , bank . publicKey ) ;
134- await transferAllTokens ( BTC_DEVNET , BTC_DECIMALS , user , bank . publicKey ) ;
124+ // await transferAllTokens(USDC_DEVNET, USDC_DECIMALS, user, bank.publicKey);
125+ // await transferAllTokens(BTC_DEVNET, BTC_DECIMALS, user, bank.publicKey);
135126 await transferAllSol ( user , bank . publicKey ) ;
136127 await transferAllSol ( user , bank . publicKey ) ;
137128 } ) ;
0 commit comments