diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1fbe230f..8dc4b368 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -41,7 +41,6 @@ jobs: - run: npm run test:builders - run: npm run test:quotes - run: npm run test:hyeth - - run: npm run test:rwa - run: npm run test:btc2x # skipping as currently no liquidity for sfrETH # - run: npm run test:dseth diff --git a/package.json b/package.json index 818b3c67..a328e56b 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "test:eth2xfli": "npm test src/tests/eth2xfli", "test:gtceth": "npm test src/tests/gtceth", "test:hyeth": "npm test src/tests/hyeth.test.ts", - "test:rwa": "npm test src/tests/rwa.presale.test.ts", "test:iceth": "npm test src/tests/iceth", "test:icreth": "npm test src/tests/icreth", "test:watch": "jest --watch" diff --git a/src/quote/provider/utils.test.ts b/src/quote/provider/utils.test.ts index cfccb887..441ac246 100644 --- a/src/quote/provider/utils.test.ts +++ b/src/quote/provider/utils.test.ts @@ -16,7 +16,6 @@ import { InterestCompoundingETHIndex, LeveragedrEthStakingYield, MetaverseIndex, - RealWorldAssetIndex, } from 'constants/tokens' import { FlashMintContractType } from './' @@ -145,12 +144,4 @@ describe('getContractType()', () => { ) expect(contractType).toBe(FlashMintContractType.leveraged) }) - - test('returns correct contract type for RWA', async () => { - const contractType = getContractType( - RealWorldAssetIndex.symbol, - ChainId.Mainnet - ) - expect(contractType).toBe(FlashMintContractType.zeroEx) - }) }) diff --git a/src/tests/rwa.presale.test.ts b/src/tests/rwa.presale.test.ts deleted file mode 100644 index 469a8735..00000000 --- a/src/tests/rwa.presale.test.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { - getMainnetTestFactory, - QuoteTokens, - SignerAccount4, - TestFactory, - transferFromWhale, - wei, - wrapETH, -} from './utils' - -const { eth, rwa, usdc, weth } = QuoteTokens - -describe('RWA presale', () => { - const indexToken = rwa - const signer = SignerAccount4 - let factory: TestFactory - beforeEach(async () => { - factory = getMainnetTestFactory(signer) - }) - - test('can mint with ETH', async () => { - await factory.fetchQuote({ - isMinting: true, - inputToken: eth, - outputToken: indexToken, - indexTokenAmount: wei('1'), - slippage: 0.5, - }) - await factory.executeTx() - }) - - test('can mint with WETH', async () => { - const quote = await factory.fetchQuote({ - isMinting: true, - inputToken: weth, - outputToken: indexToken, - indexTokenAmount: wei('1'), - slippage: 0.5, - }) - await wrapETH(quote.inputAmount, signer) - await factory.executeTx() - }) - - test('can mint with USDC', async () => { - const quote = await factory.fetchQuote({ - isMinting: true, - inputToken: usdc, - outputToken: indexToken, - indexTokenAmount: wei('1'), - slippage: 0.5, - }) - const whale = '0x7713974908Be4BEd47172370115e8b1219F4A5f0' - await transferFromWhale( - whale, - factory.getSigner().address, - wei('10000', quote.inputToken.decimals), - quote.inputToken.address, - factory.getProvider() - ) - await factory.executeTx() - }) - - test('can redeem to USDC', async () => { - await factory.fetchQuote({ - isMinting: false, - inputToken: indexToken, - outputToken: usdc, - indexTokenAmount: wei('1'), - slippage: 0.5, - }) - await factory.executeTx() - }) -}) diff --git a/src/tests/utils/quoteTokens.ts b/src/tests/utils/quoteTokens.ts index e890cb7f..57e81675 100644 --- a/src/tests/utils/quoteTokens.ts +++ b/src/tests/utils/quoteTokens.ts @@ -14,7 +14,6 @@ import { LeveragedrEthStakingYield, MetaverseIndex, RETH, - RealWorldAssetIndex, USDC, USDT, WETH, @@ -108,12 +107,6 @@ const reth: QuoteToken = { symbol: RETH.symbol, } -const rwa: QuoteToken = { - address: RealWorldAssetIndex.address!, - decimals: 18, - symbol: RealWorldAssetIndex.symbol, -} - const seth2: QuoteToken = { address: sETH2.address!, decimals: 18, @@ -165,7 +158,6 @@ export const QuoteTokens = { icreth, mvi, reth, - rwa, seth2, steth, usdc, diff --git a/src/utils/contracts.test.ts b/src/utils/contracts.test.ts index 8e40d1b1..d3a92021 100644 --- a/src/utils/contracts.test.ts +++ b/src/utils/contracts.test.ts @@ -24,7 +24,6 @@ import { IndexCoopBitcoin3xIndex, IndexCoopInverseEthereumIndex, IndexCoopInverseBitcoinIndex, - RealWorldAssetIndex, } from 'constants/tokens' import { @@ -443,21 +442,3 @@ describe('iETH1x', () => { expect(contract.functions.issueExactSetFromETH).toBeDefined() }) }) - -describe('RWA', () => { - test('return correct contract for token - arbitrum', async () => { - const expectedAddress = FlashMintZeroExMainnetAddress - const contract = getFlashMintZeroExContractForToken( - RealWorldAssetIndex.symbol, - undefined, - ChainId.Mainnet - ) - expect(contract.address).toEqual(expectedAddress) - expect(contract.functions.getRequiredIssuanceComponents).toBeDefined() - expect(contract.functions.getRequiredRedemptionComponents).toBeDefined() - expect(contract.functions.issueExactSetFromETH).toBeDefined() - expect(contract.functions.issueExactSetFromToken).toBeDefined() - expect(contract.functions.redeemExactSetForETH).toBeDefined() - expect(contract.functions.redeemExactSetForToken).toBeDefined() - }) -}) diff --git a/src/utils/issuanceModules.test.ts b/src/utils/issuanceModules.test.ts index 3d42c555..911c3da1 100644 --- a/src/utils/issuanceModules.test.ts +++ b/src/utils/issuanceModules.test.ts @@ -23,7 +23,6 @@ import { IndexCoopBitcoin2xIndex, IndexCoopBitcoin3xIndex, HighYieldETHIndex, - RealWorldAssetIndex, } from 'constants/tokens' import { getIssuanceModule } from './issuanceModules' @@ -71,13 +70,6 @@ describe('getIssuanceModule() - Mainnet - IndexProtocol', () => { expect(issuanceModule.isDebtIssuance).toBe(true) }) - test('returns debt issuance module v2 for RWA', async () => { - const expectedModule = IndexDebtIssuanceModuleV2Address_v2 - const issuanceModule = getIssuanceModule(RealWorldAssetIndex.symbol) - expect(issuanceModule.address).toEqual(expectedModule) - expect(issuanceModule.isDebtIssuance).toBe(true) - }) - test('returns debt issuance module v2 for wsETH2', async () => { const expectedModule = IndexDebtIssuanceModuleV2Address const issuanceModule = getIssuanceModule(wsETH2.symbol)