Skip to content

Commit

Permalink
fix ratios and lsd chainlink oracle address
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkatsios committed Sep 16, 2024
1 parent 7886ad9 commit c24dcd8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
8 changes: 7 additions & 1 deletion protocol/reseed/reseed9.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ async function reseed9(account, L2Beanstalk, mock = false) {
let oracles = assets.map((asset) => asset[4]);

// deploy LSD chainlink oracle for whitelist:
await deployContract("LSDChainlinkOracle", account, true, []);
const LSDChainlinkOracle = await deployContract("LSDChainlinkOracle", account, true, []);
console.log("LSDChainlinkOracle deployed at:", LSDChainlinkOracle.address);

// modify oracles for token 4 (WSTETH) and token 5 (WEETH) to use LSDChainlinkOracle address.
oracles[4][0] = LSDChainlinkOracle.address;
oracles[5][0] = LSDChainlinkOracle.address;


await upgradeWithNewFacets({
diamondAddress: L2Beanstalk,
Expand Down
22 changes: 11 additions & 11 deletions protocol/reseed/reseedAddLiquidityAndTransfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const {
L2_USDC,
L2_USDT
} = require("../test/hardhat/utils/constants.js");
const { to18, to6 } = require("../test/hardhat/utils/helpers.js");
const { to18, to6, toX } = require("../test/hardhat/utils/helpers.js");
const { impersonateToken } = require("../scripts/impersonate.js");
const fs = require("fs");

Expand Down Expand Up @@ -36,20 +36,20 @@ async function reseedAddLiquidityAndTransfer(account, L2Beanstalk, mock = true,
);

const nonBeanAmounts = [
balancesInBeanEthWell[1], // BEAN/WETH
balancesInBeanWstEthWell[1], // BEAN/WstETH
to18("1000"), // BEAN/WEEETH
to18("1"), // BEAN/WBTC
balancesInBeanStableWell[1], // BEAN/USDC
to6("100000") // BEAN/USDT
to18("100"), // BEAN/WETH
to18("100"), // BEAN/WstETH
to18("1500"), // BEAN/WEEETH
toX("20", 8), // BEAN/WBTC (8 decimals)
to6("1000000"), // BEAN/USDC
to6("1000000") // BEAN/USDT
];

const beanAmounts = [
balancesInBeanEthWell[0], // BEAN/WETH
balancesInBeanWstEthWell[0], // BEAN/WstETH
to6("1000000"), // BEAN/WETH
to6("1000000"), // BEAN/WstETH
to6("1000000"), // BEAN/WEEETH
to6("100000000000000000"), // BEAN/WBTC
to6("1000000000000"), // BEAN/USDC
to6("1000000"), // BEAN/WBTC
to6("1000000"), // BEAN/USDC
to6("1000000") // BEAN/USDT
];
console.log("-----------------------------------");
Expand Down

0 comments on commit c24dcd8

Please sign in to comment.