Skip to content

Commit

Permalink
fix: deployed OneJumpOracle
Browse files Browse the repository at this point in the history
  • Loading branch information
web3rover committed Aug 16, 2024
1 parent 4e6d7b9 commit ecc31c4
Show file tree
Hide file tree
Showing 10 changed files with 1,062 additions and 98 deletions.
5 changes: 0 additions & 5 deletions contracts/interfaces/IAccountantWithRateProviders.sol

This file was deleted.

37 changes: 0 additions & 37 deletions contracts/oracles/WeETHAccountantOracle.sol

This file was deleted.

19 changes: 0 additions & 19 deletions contracts/test/MockAccountantWithRateProviders.sol

This file was deleted.

28 changes: 0 additions & 28 deletions deploy/13-dependencies-accountant-oracle.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,20 @@ const func: DeployFunction = async ({
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();

const redStoneOracle = await ethers.getContract("RedStoneOracle");
const resilientOracle = await ethers.getContract("ResilientOracle");
const proxyOwnerAddress = network.live ? ADDRESSES[network.name].timelock : deployer;
const defaultProxyAdmin = await artifacts.readArtifact(
"hardhat-deploy/solc_0.8/openzeppelin/proxy/transparent/ProxyAdmin.sol:ProxyAdmin",
);
let { weETHsAccountant } = ADDRESSES[network.name];
const { weETHs, WETH } = ADDRESSES[network.name];

weETHsAccountant = weETHsAccountant || (await ethers.getContract("weETHsMockAccountantWithRateProviders")).address;

await deploy("WeETHsAccountantOracle", {
contract: "WeETHAccountantOracle",
await deploy("weETHsOneJumpRedStoneOracle", {
contract: "OneJumpOracle",
from: deployer,
log: true,
deterministicDeployment: false,
args: [weETHsAccountant, weETHs, WETH, resilientOracle.address],
args: [weETHs, WETH, resilientOracle.address, redStoneOracle.address],
proxy: {
owner: proxyOwnerAddress,
proxyContract: "OptimizedTransparentUpgradeableProxy",
Expand All @@ -42,5 +40,5 @@ const func: DeployFunction = async ({
};

export default func;
func.tags = ["accountant-oracle"];
func.tags = ["weETHs"];
func.skip = async (hre: HardhatRuntimeEnvironment) => hre.network.name !== "ethereum" && hre.network.name !== "sepolia";
322 changes: 322 additions & 0 deletions deployments/sepolia/solcInputs/04b8d48531fd1efbae754b96568494bd.json

Large diffs are not rendered by default.

306 changes: 306 additions & 0 deletions deployments/sepolia/weETHsOneJumpRedStoneOracle.json

Large diffs are not rendered by default.

204 changes: 204 additions & 0 deletions deployments/sepolia/weETHsOneJumpRedStoneOracle_Implementation.json

Large diffs are not rendered by default.

224 changes: 224 additions & 0 deletions deployments/sepolia/weETHsOneJumpRedStoneOracle_Proxy.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions helpers/deploymentConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const ADDRESSES: PreconfiguredAddresses = {
sfrxETH: "0x14AECeEc177085fd09EA07348B4E1F7Fcc030fA1",
rsETH: "0xfA0614E5C803E15070d31f7C38d2d430EBe68E47",
ezETH: "0xB8eb706b85Ae7355c9FE4371a499F50f3484809c",
weETHs: "0x917ceE801a67f933F2e6b33fC0cD1ED2d5909D88",
weETHs: "0xE233527306c2fa1E159e251a2E5893334505A5E0",
},
ethereum: {
vBNBAddress: ethers.constants.AddressZero,
Expand All @@ -142,7 +142,6 @@ export const ADDRESSES: PreconfiguredAddresses = {
rsETH: "0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7",
ezETH: "0xbf5495Efe5DB9ce00f80364C8B423567e58d2110",
weETHs: "0x917ceE801a67f933F2e6b33fC0cD1ED2d5909D88",
weETHsAccountant: "0xbe16605B22a7faCEf247363312121670DFe5afBE",
},
opbnbtestnet: {
vBNBAddress: ethers.constants.AddressZero,
Expand Down

0 comments on commit ecc31c4

Please sign in to comment.