Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
robercano committed May 24, 2024
1 parent e40a1f7 commit 5565920
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions sdk/sdk-e2e/tests/refinance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import {
import { ProtocolName, isLendingPool } from '@summerfi/sdk-common/protocols'
import { ProtocolClient, makeSDK, type Chain, type User } from '@summerfi/sdk-client'
import { PositionsManager, IRefinanceParameters, Order } from '@summerfi/sdk-common/orders'
import { ISimulation } from '@summerfi/sdk-common/simulation'
import { ISimulation, SimulationType } from '@summerfi/sdk-common/simulation'
import { TransactionUtils } from './utils/TransactionUtils'

import { Hex } from 'viem'
import assert from 'assert'
import { EmodeType } from '@summerfi/protocol-plugins/plugins/common'
import { AddressValue, CommonTokenSymbols, RefinanceSimulationTypes } from '@summerfi/sdk-common'
import { AddressValue, CommonTokenSymbols } from '@summerfi/sdk-common'
import {
SparkLendingPoolId,
isSparkLendingPoolId,
Expand Down Expand Up @@ -176,7 +176,7 @@ describe.skip('Refinance All | SDK', () => {
assert(false, 'Spark pool type is not lending')
}

const refinanceSimulation: ISimulation<RefinanceSimulationTypes> =
const refinanceSimulation: ISimulation<SimulationType.Refinance> =
await sdk.simulator.refinance.simulateRefinancePosition({
sourcePosition: makerPosition,
targetPool: sparkPool,
Expand Down
4 changes: 2 additions & 2 deletions sdk/sdk-e2e/tests/refinanceAaveV3SparkAnyPair.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { EmodeType } from '@summerfi/protocol-plugins/plugins/common'
import {
AddressValue,
CommonTokenSymbols,
RefinanceSimulationTypes,
ISimulation,
Percentage,
TokenAmount,
Expand All @@ -13,6 +12,7 @@ import {
ChainFamilyMap,
PositionType,
IToken,
SimulationType,
} from '@summerfi/sdk-common'
import { PositionsManager, Order, RefinanceParameters } from '@summerfi/sdk-common/orders'
import {
Expand Down Expand Up @@ -166,7 +166,7 @@ describe('Refinance AaveV3 Spark | SDK', () => {
slippage: Percentage.createFrom({ value: 0.2 }),
})

const refinanceSimulation: ISimulation<RefinanceSimulationTypes> =
const refinanceSimulation: ISimulation<SimulationType.Refinance> =
await sdk.simulator.refinance.simulateRefinancePosition(refinanceParameters)

expect(refinanceSimulation).toBeDefined()
Expand Down
4 changes: 2 additions & 2 deletions sdk/sdk-e2e/tests/refinanceMakerSparkAlreadyImported.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { ProtocolName } from '@summerfi/sdk-common/protocols'
import { makeSDK, type Chain, type User, ProtocolClient } from '@summerfi/sdk-client'
import { CommonTokenSymbols } from '@summerfi/sdk-common/common/enums'
import { PositionsManager, Order, RefinanceParameters } from '@summerfi/sdk-common/orders'
import { ISimulation, RefinanceSimulationTypes } from '@summerfi/sdk-common/simulation'
import { ISimulation, SimulationType } from '@summerfi/sdk-common/simulation'
import { TransactionUtils } from './utils/TransactionUtils'
import {
decodeActionCalldata,
Expand Down Expand Up @@ -187,7 +187,7 @@ describe.skip('Refinance Maker Spark | SDK', () => {
slippage: Percentage.createFrom({ value: 0.2 }),
})

const refinanceSimulation: ISimulation<RefinanceSimulationTypes> =
const refinanceSimulation: ISimulation<SimulationType.Refinance> =
await sdk.simulator.refinance.simulateRefinancePosition(refinanceParameters)

expect(refinanceSimulation).toBeDefined()
Expand Down
4 changes: 2 additions & 2 deletions sdk/sdk-e2e/tests/refinanceMorphoSparkAnyPair.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { EmodeType } from '@summerfi/protocol-plugins/plugins/common'
import {
AddressValue,
CommonTokenSymbols,
RefinanceSimulationTypes,
ISimulation,
Percentage,
TokenAmount,
Expand All @@ -13,6 +12,7 @@ import {
ChainFamilyMap,
PositionType,
IToken,
SimulationType,
} from '@summerfi/sdk-common'
import { PositionsManager, Order, RefinanceParameters } from '@summerfi/sdk-common/orders'
import {
Expand Down Expand Up @@ -164,7 +164,7 @@ describe.skip('Refinance Morpho Spark | SDK', () => {
slippage: Percentage.createFrom({ value: 0.2 }),
})

const refinanceSimulation: ISimulation<RefinanceSimulationTypes> =
const refinanceSimulation: ISimulation<SimulationType.Refinance> =
await sdk.simulator.refinance.simulateRefinancePosition(refinanceParameters)

expect(refinanceSimulation).toBeDefined()
Expand Down

0 comments on commit 5565920

Please sign in to comment.