From 3ec73b7b9faed25eae120a8dc0a20c887415b1e8 Mon Sep 17 00:00:00 2001 From: "nature.xie" Date: Sat, 23 Dec 2023 11:40:59 +0800 Subject: [PATCH] fix ts error --- redux/assetState.ts | 2 +- store/actions/repayFromDeposits.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/redux/assetState.ts b/redux/assetState.ts index 0c0bd5b0..b543a7bf 100644 --- a/redux/assetState.ts +++ b/redux/assetState.ts @@ -1,7 +1,7 @@ import { IAssetDetailed, IMetadata, IAssetFarmReward, INetTvlFarmRewards } from "../interfaces"; export type Asset = Omit & { - metadata: IMetadata; + metadata: IMetadata | any; farms: { supplied: { [token: string]: IAssetFarmReward; diff --git a/store/actions/repayFromDeposits.ts b/store/actions/repayFromDeposits.ts index 5d370b53..eb79e8ee 100644 --- a/store/actions/repayFromDeposits.ts +++ b/store/actions/repayFromDeposits.ts @@ -12,10 +12,12 @@ export async function repayFromDeposits({ tokenId, amount, extraDecimals, + position, }: { tokenId: string; amount: string; extraDecimals: number; + position?: string; }) { const { logicContract, oracleContract } = await getBurrow(); const { decimals } = (await getMetadata(tokenId))!;