Skip to content

Commit

Permalink
fix(paraswap): update types
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Nov 19, 2024
1 parent fd86c39 commit 2d99927
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions packages/liquidation-sdk-viem/src/swap/paraswap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,9 @@ export namespace Paraswap {
logoURI: "",
},
tx: {
from: calldata.from as Address,
to: calldata.to as Address,
data: calldata.data as Hex,
value: calldata.value,
gasPrice: calldata.gasPrice,
gas: Number(calldata.gas),
value: BigInt(calldata.value),
},
protocols: [],
};
Expand Down
5 changes: 1 addition & 4 deletions packages/liquidation-sdk-viem/src/swap/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,8 @@ export interface SwapResponse {
dstAmount: string;
protocols: {}[];
tx: {
from: Address;
to: Address;
data: Hex;
value: string;
gasPrice: string;
gas: number;
value: bigint;
};
}

0 comments on commit 2d99927

Please sign in to comment.