Skip to content

Commit

Permalink
chore: use UsualPPData type in getDexParam on UsualPP
Browse files Browse the repository at this point in the history
  • Loading branch information
KanievskyiDanylo committed Jan 10, 2025
1 parent 1cd346d commit 202f9a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dex/usual-pp/usual-pp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { Interface } from '@ethersproject/abi';
import UsualPoolAbi from '../../abi/usual-pp/abi.json';
import { Config } from './config';
import { getDexKeysWithNetwork } from '../../utils';
import { UsualBondData } from '../usual/types';

export class UsualPP extends SimpleExchange implements IDex<UsualPPData> {
readonly hasConstantPriceLargeAmounts = false;
Expand Down Expand Up @@ -186,7 +185,7 @@ export class UsualPP extends SimpleExchange implements IDex<UsualPPData> {
srcAmount: NumberAsString,
destAmount: NumberAsString,
recipient: Address,
data: UsualBondData,
data: UsualPPData,
side: SwapSide,
): Promise<DexExchangeParam> {
if (this.isUsd0PP(srcToken) && this.isUsd0(destToken)) {
Expand Down

0 comments on commit 202f9a8

Please sign in to comment.