Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
janndriessen committed Jul 23, 2024
1 parent 11aadce commit 4769d76
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/quote/swap/adapters/adapter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ETH, stETH } from 'constants/tokens'
import { EthAddress } from 'constants/addresses'
import { stETH } from 'constants/tokens'
import { CurveSwapQuoteProvider } from 'quote/swap/adapters/curve'
import { UniswapSwapQuoteProvider } from 'quote/swap/adapters/uniswap'
import {
Expand All @@ -17,15 +18,12 @@ export class IndexSwapQuoteProvider implements SwapQuoteProvider {
let inputToken = request.inputToken
let outputToken = request.outputToken
if (inputToken === 'ETH') {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
inputToken = ETH.address!
inputToken = EthAddress
}
if (outputToken === 'ETH') {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
outputToken = ETH.address!
outputToken = EthAddress
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const eth = ETH.address!
const eth = EthAddress
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const stEth = stETH.address!
const isEth =
Expand Down

0 comments on commit 4769d76

Please sign in to comment.