Skip to content

Commit

Permalink
refactor: remove icreth
Browse files Browse the repository at this point in the history
  • Loading branch information
janndriessen committed Jul 23, 2024
1 parent f2c7e56 commit d80654a
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 503 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ jobs:
# - run: npm run test:eth2x
# - run: npm run test:gtceth
# - run: npm run test:iceth
# - run: npm run test:icreth
# run last - as it alters the block number
# skip as it can't be minted or redeemed with 0x
# - run: npm run test:eth2xfli
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"test:gtceth": "npm test src/tests/gtceth",
"test:hyeth": "npm test src/tests/hyeth.test.ts",
"test:iceth": "npm test src/tests/iceth",
"test:icreth": "npm test src/tests/icreth",
"test:watch": "jest --watch"
},
"keywords": [
Expand Down
9 changes: 0 additions & 9 deletions src/quote/provider/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
IndexCoopInverseBitcoinIndex,
IndexCoopInverseEthereumIndex,
InterestCompoundingETHIndex,
LeveragedrEthStakingYield,
MetaverseIndex,
} from 'constants/tokens'

Expand Down Expand Up @@ -136,12 +135,4 @@ describe('getContractType()', () => {
)
expect(contractType).toBe(FlashMintContractType.leveraged)
})

test('returns correct contract type for icRETH', async () => {
const contractType = getContractType(
LeveragedrEthStakingYield.symbol,
ChainId.Mainnet
)
expect(contractType).toBe(FlashMintContractType.leveraged)
})
})
4 changes: 1 addition & 3 deletions src/quote/provider/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
IndexCoopInverseBitcoinIndex,
IndexCoopInverseEthereumIndex,
InterestCompoundingETHIndex,
LeveragedrEthStakingYield,
MetaverseIndex,
RealWorldAssetIndex,
} from 'constants/tokens'
Expand Down Expand Up @@ -56,8 +55,7 @@ export function getContractType(
token === ETH2xFlexibleLeverageIndex.symbol ||
token === IndexCoopBitcoin2xIndex.symbol ||
token === IndexCoopEthereum2xIndex.symbol ||
token === InterestCompoundingETHIndex.symbol ||
token === LeveragedrEthStakingYield.symbol
token === InterestCompoundingETHIndex.symbol
)
return FlashMintContractType.leveraged
return null
Expand Down
152 changes: 0 additions & 152 deletions src/tests/icreth/index.test.ts

This file was deleted.

Loading

0 comments on commit d80654a

Please sign in to comment.