Skip to content

Commit

Permalink
feat: mult
Browse files Browse the repository at this point in the history
  • Loading branch information
rhlsthrm committed Dec 2, 2024
1 parent a811118 commit d8027ef
Show file tree
Hide file tree
Showing 11 changed files with 2,891 additions and 2 deletions.
8 changes: 8 additions & 0 deletions packages/chains/src/lisk/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const USDT = "0x05D032ac25d322df992303dCa074EE7392C117b9";
export const LSK = "0xac485391EB2d7D88253a7F1eF18C37f4242D1A24";
export const USDC = "0xF242275d3a6527d877f2c927a82D9b057609cc71";
export const WBTC = "0x03C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3";
export const ION = "0x3f608A49a3ab475dA7fBb167C1Be6b7a45cD7013";

export const assets: SupportedAsset[] = [
{
Expand Down Expand Up @@ -87,6 +88,13 @@ export const assets: SupportedAsset[] = [
initialBorrowCap: parseUnits("0.1", 8).toString(),
initialSupplyCap: parseUnits("0.1", 8).toString(),
initialCf: "0.5"
},
{
symbol: assetSymbols.ION,
underlying: ION,
name: "Ion",
decimals: 18,
oracle: OracleTypes.SimplePriceOracle
}
];

Expand Down
13 changes: 12 additions & 1 deletion packages/contracts/chainDeploy/mainnets/lisk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { lisk } from "@ionicprotocol/chains";
import { ChainDeployConfig, deployChainlinkOracle } from "../helpers";
import { Address } from "viem";
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { ChainlinkSpecificParams, OracleTypes } from "@ionicprotocol/types";
import { assetSymbols, ChainlinkSpecificParams, OracleTypes } from "@ionicprotocol/types";
import { addUnderlyingsToMpo } from "../helpers/oracles/utils";

const assets = lisk.assets;
const PRICES_CONTRACT = "0x07F544813E9Fb63D57a92f28FbD3FF0f7136F5cE";
Expand Down Expand Up @@ -56,6 +57,16 @@ export const deploy = async ({
chainlinkAssets
});

const ion = assets.find((asset) => asset.symbol === assetSymbols.ION)?.underlying;
if (!ion) {
throw new Error("ION not found");
}
const mpo = await viem.getContractAt(
"MasterPriceOracle",
(await deployments.get("MasterPriceOracle")).address as Address
);
const simplePriceOracle = await deployments.get("SimplePriceOracle");
await addUnderlyingsToMpo(mpo as any, [ion], simplePriceOracle.address as Address, deployer, publicClient);
//// Uniswap V3 Liquidator Funder
const uniswapV3LiquidatorFunder = await deployments.deploy("UniswapV3LiquidatorFunder", {
from: deployer,
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit d8027ef

Please sign in to comment.