From fd613666562bf4aaedd3c25d5eafc0b3acbd87bc Mon Sep 17 00:00:00 2001 From: Pierre Bertet Date: Sun, 14 Apr 2024 02:34:18 +0100 Subject: [PATCH] Lint fixes --- .../src/app/contracts/ContractBorrowerOperations.tsx | 2 +- frontend/src/app/contracts/page.tsx | 2 +- frontend/src/comps/Config/Config.tsx | 12 +++++++++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/contracts/ContractBorrowerOperations.tsx b/frontend/src/app/contracts/ContractBorrowerOperations.tsx index df075381..df94bc9e 100644 --- a/frontend/src/app/contracts/ContractBorrowerOperations.tsx +++ b/frontend/src/app/contracts/ContractBorrowerOperations.tsx @@ -1,6 +1,6 @@ import { FormField } from "@/src/comps/FormField/FormField"; import { TextInput } from "@/src/comps/Input/TextInput"; -import { BorrowerOperationsContract, CollTokenContract } from "@/src/contracts"; +import { BorrowerOperationsContract } from "@/src/contracts"; import { formValue, parseInputInt, parseInputPercentage, parseInputValue, useForm } from "@/src/form-utils"; import { getTroveId, useCollTokenAllowance } from "@/src/liquity-utils"; import * as dn from "dnum"; diff --git a/frontend/src/app/contracts/page.tsx b/frontend/src/app/contracts/page.tsx index c2fc8821..b06ac75e 100644 --- a/frontend/src/app/contracts/page.tsx +++ b/frontend/src/app/contracts/page.tsx @@ -18,7 +18,7 @@ import { css } from "@/styled-system/css"; import { useModal } from "connectkit"; import * as dn from "dnum"; import { match, P } from "ts-pattern"; -import { useAccount, useBalance, useDisconnect, useReadContracts } from "wagmi"; +import { useAccount, useBalance, useReadContracts } from "wagmi"; import { ContractBorrowerOperations } from "./ContractBorrowerOperations"; import { ContractStabilityPool } from "./ContractStabilityPool"; diff --git a/frontend/src/comps/Config/Config.tsx b/frontend/src/comps/Config/Config.tsx index 7cdd3234..befa0d9a 100644 --- a/frontend/src/comps/Config/Config.tsx +++ b/frontend/src/comps/Config/Config.tsx @@ -15,11 +15,13 @@ import { CONTRACT_BOLD_TOKEN, CONTRACT_BORROWER_OPERATIONS, CONTRACT_COLL_SURPLUS_POOL, + CONTRACT_COLL_TOKEN, CONTRACT_DEFAULT_POOL, CONTRACT_FUNCTION_CALLER, CONTRACT_GAS_POOL, CONTRACT_HINT_HELPERS, - CONTRACT_PRICE_FEED_TESTNET, + CONTRACT_INTEREST_ROUTER, + CONTRACT_PRICE_FEED, CONTRACT_SORTED_TROVES, CONTRACT_STABILITY_POOL, CONTRACT_TROVE_MANAGER, @@ -57,11 +59,13 @@ export const ConfigSchema = z.object({ contractBoldToken: zAddress(), contractBorrowerOperations: zAddress(), contractCollSurplusPool: zAddress(), + contractCollToken: zAddress(), contractDefaultPool: zAddress(), contractFunctionCaller: zAddress(), contractGasPool: zAddress(), contractHintHelpers: zAddress(), - contractPriceFeedTestnet: zAddress(), + contractInterestRouter: zAddress(), + contractPriceFeed: zAddress(), contractSortedTroves: zAddress(), contractStabilityPool: zAddress(), contractTroveManager: zAddress(), @@ -82,11 +86,13 @@ const defaultConfig: Config = { contractBoldToken: CONTRACT_BOLD_TOKEN, contractBorrowerOperations: CONTRACT_BORROWER_OPERATIONS, contractCollSurplusPool: CONTRACT_COLL_SURPLUS_POOL, + contractCollToken: CONTRACT_COLL_TOKEN, contractDefaultPool: CONTRACT_DEFAULT_POOL, contractFunctionCaller: CONTRACT_FUNCTION_CALLER, contractGasPool: CONTRACT_GAS_POOL, contractHintHelpers: CONTRACT_HINT_HELPERS, - contractPriceFeedTestnet: CONTRACT_PRICE_FEED_TESTNET, + contractInterestRouter: CONTRACT_INTEREST_ROUTER, + contractPriceFeed: CONTRACT_PRICE_FEED, contractSortedTroves: CONTRACT_SORTED_TROVES, contractStabilityPool: CONTRACT_STABILITY_POOL, contractTroveManager: CONTRACT_TROVE_MANAGER,