We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 372e6bc commit 3b35560Copy full SHA for 3b35560
lib/handlers/marshalling/pair-marshaller.ts
@@ -1,6 +1,7 @@
1
-import { Pair } from '@uniswap/v2-sdk'
+import { CustomPair } from '@axieinfinity/sdk-core'
2
import { CurrencyAmountMarshaller, MarshalledCurrencyAmount } from './currency-amount-marshaller'
3
import { Protocol } from '@uniswap/router-sdk'
4
+import { Pair } from '@uniswap/v2-sdk'
5
6
export interface MarshalledPair {
7
protocol: Protocol
@@ -18,7 +19,7 @@ export class PairMarshaller {
18
19
}
20
21
public static unmarshal(marshalledPair: MarshalledPair): Pair {
- return new Pair(
22
+ return new CustomPair(
23
CurrencyAmountMarshaller.unmarshal(marshalledPair.currencyAmountA),
24
CurrencyAmountMarshaller.unmarshal(marshalledPair.tokenAmountB)
25
)
0 commit comments