Skip to content

Commit

Permalink
refactor: remove IJar related files (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
rndquu authored Nov 15, 2023
1 parent 7a70182 commit cf74a62
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 49 deletions.
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

1 comment on commit cf74a62

@ubiquibot
Copy link

@ubiquibot ubiquibot bot commented on cf74a62 Nov 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.