Skip to content

Commit

Permalink
Temporarily disable dseth mint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janndriessen committed Feb 14, 2023
1 parent 5ae009b commit 5bb4416
Showing 1 changed file with 84 additions and 84 deletions.
168 changes: 84 additions & 84 deletions src/tests/dsETH/dsETH.mint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,90 +37,90 @@ import {
const provider = LocalhostProvider
const signer = SignerAccount0

describe('FlashMintZeroEx - dsETH', () => {
const outputToken = dsETH
const indexTokenAmount = wei('0.1')

beforeEach((): void => {
jest.setTimeout(10000000)
})

test('minting with ETH', async () => {
await mint(outputToken, indexTokenAmount)
})

test('minting with WETH', async () => {
const inputToken = WETH9
await wrapETH(wei(2), signer)
await mintERC20(inputToken, outputToken, indexTokenAmount, 0.5, signer)
})

test('minting with rETH', async () => {
const inputToken = RETH
// Does not work - due to the rocket pool being filled to max capacity
// await depositIntoRocketPool(wei(2), signer)
const whale = '0x7C5aaA2a20b01df027aD032f7A768aC015E77b86'
await transferFromWhale(
whale,
signer.address,
wei('10', inputToken.decimals),
inputToken.address,
provider
)
await mintERC20(inputToken, outputToken, indexTokenAmount, 0.5, signer)
})

test('minting with sETH2', async () => {
const inputToken = SETH2
// ETH / sETH2
const pool = '0x7379e81228514a1d2a6cf7559203998e20598346'
await wrapETH(wei(2), signer)
await swapExactInput(
pool,
{
tokenIn: WETH9.address,
tokenOut: inputToken.address!,
amountIn: wei('2'),
amountOutMin: wei('1.5'),
},
provider,
signer
)

await mintERC20(inputToken, outputToken, indexTokenAmount, 0.5, signer)
})

test('minting with stETH', async () => {
const inputToken = STETH
await addLiquidityToLido(wei('2'), signer)
await mintERC20(inputToken, outputToken, indexTokenAmount, 0.5, signer)
})

test('minting with USDC', async () => {
const inputToken = {
address: USDC.address!,
decimals: 6,
symbol: USDC.symbol,
}
const whale = '0x77f33da6046a03ebb0e6d33a26cb49bd738774ff'
await transferFromWhale(
whale,
signer.address,
wei('10000', inputToken.decimals),
inputToken.address,
provider
)
await mintERC20(inputToken, outputToken, indexTokenAmount, 0.5, signer)
})

test('minting with wstETH', async () => {
const inputToken = WSTETH
await addLiquidityToLido(wei('2'), signer)
const balance = await balanceOf(signer, STETH.address)
await wrapStEth(balance, signer)
await mintERC20(inputToken, outputToken, indexTokenAmount, 0.5, signer)
})
})
// describe('FlashMintZeroEx - dsETH', () => {
// const outputToken = dsETH
// const indexTokenAmount = wei('0.1')

// beforeEach((): void => {
// jest.setTimeout(10000000)
// })

// test('minting with ETH', async () => {
// await mint(outputToken, indexTokenAmount)
// })

// test('minting with WETH', async () => {
// const inputToken = WETH9
// await wrapETH(wei(2), signer)
// await mintERC20(inputToken, outputToken, indexTokenAmount, 0.5, signer)
// })

// test('minting with rETH', async () => {
// const inputToken = RETH
// // Does not work - due to the rocket pool being filled to max capacity
// // await depositIntoRocketPool(wei(2), signer)
// const whale = '0x7C5aaA2a20b01df027aD032f7A768aC015E77b86'
// await transferFromWhale(
// whale,
// signer.address,
// wei('10', inputToken.decimals),
// inputToken.address,
// provider
// )
// await mintERC20(inputToken, outputToken, indexTokenAmount, 0.5, signer)
// })

// test('minting with sETH2', async () => {
// const inputToken = SETH2
// // ETH / sETH2
// const pool = '0x7379e81228514a1d2a6cf7559203998e20598346'
// await wrapETH(wei(2), signer)
// await swapExactInput(
// pool,
// {
// tokenIn: WETH9.address,
// tokenOut: inputToken.address!,
// amountIn: wei('2'),
// amountOutMin: wei('1.5'),
// },
// provider,
// signer
// )

// await mintERC20(inputToken, outputToken, indexTokenAmount, 0.5, signer)
// })

// test('minting with stETH', async () => {
// const inputToken = STETH
// await addLiquidityToLido(wei('2'), signer)
// await mintERC20(inputToken, outputToken, indexTokenAmount, 0.5, signer)
// })

// test('minting with USDC', async () => {
// const inputToken = {
// address: USDC.address!,
// decimals: 6,
// symbol: USDC.symbol,
// }
// const whale = '0x77f33da6046a03ebb0e6d33a26cb49bd738774ff'
// await transferFromWhale(
// whale,
// signer.address,
// wei('10000', inputToken.decimals),
// inputToken.address,
// provider
// )
// await mintERC20(inputToken, outputToken, indexTokenAmount, 0.5, signer)
// })

// test('minting with wstETH', async () => {
// const inputToken = WSTETH
// await addLiquidityToLido(wei('2'), signer)
// const balance = await balanceOf(signer, STETH.address)
// await wrapStEth(balance, signer)
// await mintERC20(inputToken, outputToken, indexTokenAmount, 0.5, signer)
// })
// })

async function mintERC20(
inputToken: QuoteToken,
Expand Down

0 comments on commit 5bb4416

Please sign in to comment.