Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove IJar related files #834

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions packages/contracts/src/dollar/interfaces/IJar.sol

This file was deleted.

1 change: 0 additions & 1 deletion packages/dapp/components/config/named-accounts.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
"daiWhaleAddress": "0x16463c0fdB6BA9618909F5b120ea1581618C1b9E",
"sushiMultiSig": "0x9a8541Ddf3a932a9A922B607e9CF7301f1d47bD1",
"ubq": "0xefC0e701A824943b469a694aC564Aa1efF7Ab7dd",
"jarUSDCAddr": "0xEB801AB73E9A2A482aA48CaCA13B1954028F4c94",
"yieldProxy": "0x580F30316562448f4642bd33fb44f2Ca1Bc0Cc1e"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import useWeb3, { PossibleProviders } from "../use-web-3";

import NAMED_ACCOUNTS from "../../../config/named-accounts.json";
import { getCurveFactoryContract, getERC20Contract, getIJarContract, getYieldProxyContract } from "@/components/utils/contracts";
import { getCurveFactoryContract, getERC20Contract, getYieldProxyContract } from "@/components/utils/contracts";

export type NamedContracts = ReturnType<typeof connectedContracts> | null;
export function connectedContracts(provider: NonNullable<PossibleProviders>) {
Expand All @@ -11,7 +11,6 @@ export function connectedContracts(provider: NonNullable<PossibleProviders>) {
usdc: getERC20Contract(NAMED_ACCOUNTS.USDC, provider),
dai: getERC20Contract(NAMED_ACCOUNTS.DAI, provider),
usdt: getERC20Contract(NAMED_ACCOUNTS.USDT, provider),
jarUsdc: getIJarContract(NAMED_ACCOUNTS.jarUSDCAddr, provider),
};
}

Expand Down
6 changes: 0 additions & 6 deletions packages/dapp/components/utils/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import _ERC1155Ubiquity from "@ubiquity/contracts/out/ERC1155Ubiquity.sol/ERC115
import _ICreditNftRedemptionCalculator from "@ubiquity/contracts/out/ICreditNftRedemptionCalculator.sol/ICreditNftRedemptionCalculator.json";
import _ICreditRedemptionCalculator from "@ubiquity/contracts/out/ICreditRedemptionCalculator.sol/ICreditRedemptionCalculator.json";
import _ICurveFactory from "@ubiquity/contracts/out/ICurveFactory.sol/ICurveFactory.json";
import _IJar from "@ubiquity/contracts/out/IJar.sol/IJar.json";
import _IMetaPool from "@ubiquity/contracts/out/IMetaPool.sol/IMetaPool.json";
import _SimpleBond from "@ubiquity/contracts/out/SimpleBond.sol/SimpleBond.json";
import _Staking from "@ubiquity/contracts/out/StakingFacet.sol/StakingFacet.json";
Expand Down Expand Up @@ -46,7 +45,6 @@ import {
ERC1155Ubiquity,
ERC20,
ICurveFactory,
IJar,
IMetaPool,
ITWAPOracleDollar3pool,
IUniswapV2Pair,
Expand Down Expand Up @@ -103,10 +101,6 @@ export const getUbiquiStickSaleContract = (address: string, provider: Provider)
return getContract(_UbiquiStickSale.abi, address, provider) as UbiquiStickSale;
};

export const getIJarContract = (address: string, provider: Provider) => {
return getContract(_IJar.abi, address, provider) as IJar;
};

export const getCreditNftManagerContract = (address: string, provider: Provider) => {
return getContract(_CreditNftManager.abi, address, provider) as CreditNftManagerFacet;
};
Expand Down
Loading