From 2a34ef4814103e844688f0852d6db00e8c7cdde5 Mon Sep 17 00:00:00 2001 From: Reppelin Tom <75627352+tomrpl@users.noreply.github.com> Date: Thu, 7 Mar 2024 10:48:05 +0100 Subject: [PATCH 1/4] Update README.md json format Signed-off-by: Reppelin Tom <75627352+tomrpl@users.noreply.github.com> --- README.md | 66 +++++++++++++++++++++++++++---------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 701cb3d..b00c1ae 100644 --- a/README.md +++ b/README.md @@ -53,49 +53,49 @@ To deploy a `MorphoChainlinkOracleV2` on the Ethereum mainnet, use the `MorphoCh Below are the arguments to fill for the creation of the WETH/USDT oracle: ```json -- `baseVault`: "0x0000000000000000000000000000000000000000", -- `baseVaultConversionSample`: 1, -- `baseFeed1`: "0x0000000000000000000000000000000000000000", -- `baseFeed2`: "0x0000000000000000000000000000000000000000", -- `baseTokenDecimals`: 18, -- `quoteVault`:"0x0000000000000000000000000000000000000000", -- `quoteVaultConversionSample`: 1, -- `quoteFeed1`: "0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46", -- `quoteFeed2`: "0x0000000000000000000000000000000000000000", -- `quoteTokenDecimals`: 6, -- `salt`: , +`baseVault`: "0x0000000000000000000000000000000000000000", +`baseVaultConversionSample`: 1, +`baseFeed1`: "0x0000000000000000000000000000000000000000", +`baseFeed2`: "0x0000000000000000000000000000000000000000", +`baseTokenDecimals`: 18, +`quoteVault`:"0x0000000000000000000000000000000000000000", +`quoteVaultConversionSample`: 1, +`quoteFeed1`: "0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46", +`quoteFeed2`: "0x0000000000000000000000000000000000000000", +`quoteTokenDecimals`: 6, +`salt`: , ``` and for the sDAI/USDC oracle: ```json -- `baseVault`: "0x83F20F44975D03b1b09e64809B757c47f942BEeA", -- `baseVaultConversionSample`: 1000000000000000000, // 1e18 -- `baseFeed1`: "0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9", -- `baseFeed2`: "0x0000000000000000000000000000000000000000", -- `baseTokenDecimals`: 18, -- `quoteVault`: "0x0000000000000000000000000000000000000000", -- `quoteVaultConversionSample`: 1, -- `quoteFeed1`: "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6", -- `quoteFeed2`: "0x0000000000000000000000000000000000000000", -- `quoteTokenDecimals`: 6, -- `salt`: , +`baseVault`: "0x83F20F44975D03b1b09e64809B757c47f942BEeA", +`baseVaultConversionSample`: 1000000000000000000, // 1e18 +`baseFeed1`: "0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9", +`baseFeed2`: "0x0000000000000000000000000000000000000000", +`baseTokenDecimals`: 18, +`quoteVault`: "0x0000000000000000000000000000000000000000", +`quoteVaultConversionSample`: 1, +`quoteFeed1`: "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6", +`quoteFeed2`: "0x0000000000000000000000000000000000000000", +`quoteTokenDecimals`: 6, +`salt`: , ``` and for the wstETH/ETH oracle: ```json -- `baseVault`: "0x0000000000000000000000000000000000000000", -- `baseVaultConversionSample`: 1, -- `baseFeed1`: "0x905b7dAbCD3Ce6B792D874e303D336424Cdb1421", -- `baseFeed2`: "0x86392dC19c0b719886221c78AB11eb8Cf5c52812", -- `baseTokenDecimals`: 18, -- `quoteVault`: "0x0000000000000000000000000000000000000000", -- `quoteVaultConversionSample`: 1, -- `quoteFeed1`: "0x0000000000000000000000000000000000000000", -- `quoteFeed2`: "0x0000000000000000000000000000000000000000", -- `quoteTokenDecimals`: 18, -- `salt`: , +`baseVault`: "0x0000000000000000000000000000000000000000", +`baseVaultConversionSample`: 1, +`baseFeed1`: "0x905b7dAbCD3Ce6B792D874e303D336424Cdb1421", +`baseFeed2`: "0x86392dC19c0b719886221c78AB11eb8Cf5c52812", +`baseTokenDecimals`: 18, +`quoteVault`: "0x0000000000000000000000000000000000000000", +`quoteVaultConversionSample`: 1, +`quoteFeed1`: "0x0000000000000000000000000000000000000000", +`quoteFeed2`: "0x0000000000000000000000000000000000000000", +`quoteTokenDecimals`: 18, +`salt`: , ``` ## Getting Started From e561c6be931decb8d8ff5d430b403adef3800d7c Mon Sep 17 00:00:00 2001 From: Reppelin Tom <75627352+tomrpl@users.noreply.github.com> Date: Thu, 7 Mar 2024 11:02:35 +0100 Subject: [PATCH 2/4] Update README.md Signed-off-by: Reppelin Tom <75627352+tomrpl@users.noreply.github.com> --- README.md | 84 +++++++++++++++++++++++++++---------------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index b00c1ae..df334f4 100644 --- a/README.md +++ b/README.md @@ -36,15 +36,15 @@ The Ethereum Mainnet address of this factory is [0x3A7bB36Ee3f3eE32A60e9f2b33c1e To create a new `MorphoChainlinkOracleV2` oracle using the factory, call the `createMorphoChainlinkOracleV2` function with the following parameters: -- `baseVault`: The ERC4626 token vault for the base asset. -- `baseVaultConversionSample`: A sample amount for converting base vault units. -- `baseFeed1`, `baseFeed2`: Chainlink-interface-compliant data feeds for the base asset. -- `baseTokenDecimals`: Decimal precision of the base asset. -- `quoteVault`: The ERC4626 token vault for the quote asset. -- `quoteVaultConversionSample`: A sample amount for converting quote vault units. -- `quoteFeed1`, `quoteFeed2`: Chainlink-interface-compliant data feeds for the quote asset. -- `quoteTokenDecimals`: Decimal precision of the quote asset. -- `salt`: A unique identifier to create deterministic addresses for deployed oracles. +- 'baseVault': The ERC4626 token vault for the base asset. +- 'baseVaultConversionSample': A sample amount for converting base vault units. +- 'baseFeed1', 'baseFeed2': Chainlink-interface-compliant data feeds for the base asset. +- 'baseTokenDecimals': Decimal precision of the base asset. +- 'quoteVault': The ERC4626 token vault for the quote asset. +- 'quoteVaultConversionSample': A sample amount for converting quote vault units. +- 'quoteFeed1', 'quoteFeed2': Chainlink-interface-compliant data feeds for the quote asset. +- 'quoteTokenDecimals': Decimal precision of the quote asset. +- 'salt': A unique identifier to create deterministic addresses for deployed oracles. ### Deploy an Oracle @@ -53,49 +53,49 @@ To deploy a `MorphoChainlinkOracleV2` on the Ethereum mainnet, use the `MorphoCh Below are the arguments to fill for the creation of the WETH/USDT oracle: ```json -`baseVault`: "0x0000000000000000000000000000000000000000", -`baseVaultConversionSample`: 1, -`baseFeed1`: "0x0000000000000000000000000000000000000000", -`baseFeed2`: "0x0000000000000000000000000000000000000000", -`baseTokenDecimals`: 18, -`quoteVault`:"0x0000000000000000000000000000000000000000", -`quoteVaultConversionSample`: 1, -`quoteFeed1`: "0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46", -`quoteFeed2`: "0x0000000000000000000000000000000000000000", -`quoteTokenDecimals`: 6, -`salt`: , +"baseVault": "0x0000000000000000000000000000000000000000", +"baseVaultConversionSample": 1, +"baseFeed1": "0x0000000000000000000000000000000000000000", +"baseFeed2": "0x0000000000000000000000000000000000000000", +"baseTokenDecimals": 18, +"quoteVault":"0x0000000000000000000000000000000000000000", +"quoteVaultConversionSample": 1, +"quoteFeed1": "0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46", +"quoteFeed2": "0x0000000000000000000000000000000000000000", +"quoteTokenDecimals": 6, +"salt": , ``` and for the sDAI/USDC oracle: ```json -`baseVault`: "0x83F20F44975D03b1b09e64809B757c47f942BEeA", -`baseVaultConversionSample`: 1000000000000000000, // 1e18 -`baseFeed1`: "0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9", -`baseFeed2`: "0x0000000000000000000000000000000000000000", -`baseTokenDecimals`: 18, -`quoteVault`: "0x0000000000000000000000000000000000000000", -`quoteVaultConversionSample`: 1, -`quoteFeed1`: "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6", -`quoteFeed2`: "0x0000000000000000000000000000000000000000", -`quoteTokenDecimals`: 6, -`salt`: , +"baseVault": "0x83F20F44975D03b1b09e64809B757c47f942BEeA", +"baseVaultConversionSample": 1000000000000000000, // 1e18 +"baseFeed1": "0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9", +"baseFeed2": "0x0000000000000000000000000000000000000000", +"baseTokenDecimals": 18, +"quoteVault": "0x0000000000000000000000000000000000000000", +"quoteVaultConversionSample": 1, +"quoteFeed1": "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6", +"quoteFeed2": "0x0000000000000000000000000000000000000000", +"quoteTokenDecimals": 6, +"salt": , ``` and for the wstETH/ETH oracle: ```json -`baseVault`: "0x0000000000000000000000000000000000000000", -`baseVaultConversionSample`: 1, -`baseFeed1`: "0x905b7dAbCD3Ce6B792D874e303D336424Cdb1421", -`baseFeed2`: "0x86392dC19c0b719886221c78AB11eb8Cf5c52812", -`baseTokenDecimals`: 18, -`quoteVault`: "0x0000000000000000000000000000000000000000", -`quoteVaultConversionSample`: 1, -`quoteFeed1`: "0x0000000000000000000000000000000000000000", -`quoteFeed2`: "0x0000000000000000000000000000000000000000", -`quoteTokenDecimals`: 18, -`salt`: , +"baseVault": "0x0000000000000000000000000000000000000000", +"baseVaultConversionSample": 1, +"baseFeed1": "0x905b7dAbCD3Ce6B792D874e303D336424Cdb1421", +"baseFeed2": "0x86392dC19c0b719886221c78AB11eb8Cf5c52812", +"baseTokenDecimals": 18, +"quoteVault": "0x0000000000000000000000000000000000000000", +"quoteVaultConversionSample": 1, +"quoteFeed1": "0x0000000000000000000000000000000000000000", +"quoteFeed2": "0x0000000000000000000000000000000000000000", +"quoteTokenDecimals": 18, +"salt": , ``` ## Getting Started From d48f7bdb4c208110fbc3d02df0d3ec3a03f74eac Mon Sep 17 00:00:00 2001 From: Reppelin Tom <75627352+tomrpl@users.noreply.github.com> Date: Thu, 7 Mar 2024 11:03:21 +0100 Subject: [PATCH 3/4] Update README.md Signed-off-by: Reppelin Tom <75627352+tomrpl@users.noreply.github.com> --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index df334f4..3e289e8 100644 --- a/README.md +++ b/README.md @@ -63,14 +63,14 @@ Below are the arguments to fill for the creation of the WETH/USDT oracle: "quoteFeed1": "0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46", "quoteFeed2": "0x0000000000000000000000000000000000000000", "quoteTokenDecimals": 6, -"salt": , +"salt": "", ``` and for the sDAI/USDC oracle: ```json "baseVault": "0x83F20F44975D03b1b09e64809B757c47f942BEeA", -"baseVaultConversionSample": 1000000000000000000, // 1e18 +"baseVaultConversionSample": 1000000000000000000, "baseFeed1": "0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9", "baseFeed2": "0x0000000000000000000000000000000000000000", "baseTokenDecimals": 18, @@ -79,7 +79,7 @@ and for the sDAI/USDC oracle: "quoteFeed1": "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6", "quoteFeed2": "0x0000000000000000000000000000000000000000", "quoteTokenDecimals": 6, -"salt": , +"salt": "", ``` and for the wstETH/ETH oracle: @@ -95,7 +95,7 @@ and for the wstETH/ETH oracle: "quoteFeed1": "0x0000000000000000000000000000000000000000", "quoteFeed2": "0x0000000000000000000000000000000000000000", "quoteTokenDecimals": 18, -"salt": , +"salt": "", ``` ## Getting Started From 14cdf371b8dbd9c280c43fec28f0b99fe36ac51e Mon Sep 17 00:00:00 2001 From: Reppelin Tom <75627352+tomrpl@users.noreply.github.com> Date: Thu, 7 Mar 2024 11:22:46 +0100 Subject: [PATCH 4/4] Update README.md Signed-off-by: Reppelin Tom <75627352+tomrpl@users.noreply.github.com> --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3e289e8..41bfee6 100644 --- a/README.md +++ b/README.md @@ -36,15 +36,15 @@ The Ethereum Mainnet address of this factory is [0x3A7bB36Ee3f3eE32A60e9f2b33c1e To create a new `MorphoChainlinkOracleV2` oracle using the factory, call the `createMorphoChainlinkOracleV2` function with the following parameters: -- 'baseVault': The ERC4626 token vault for the base asset. -- 'baseVaultConversionSample': A sample amount for converting base vault units. -- 'baseFeed1', 'baseFeed2': Chainlink-interface-compliant data feeds for the base asset. -- 'baseTokenDecimals': Decimal precision of the base asset. -- 'quoteVault': The ERC4626 token vault for the quote asset. -- 'quoteVaultConversionSample': A sample amount for converting quote vault units. -- 'quoteFeed1', 'quoteFeed2': Chainlink-interface-compliant data feeds for the quote asset. -- 'quoteTokenDecimals': Decimal precision of the quote asset. -- 'salt': A unique identifier to create deterministic addresses for deployed oracles. +- `baseVault`: The ERC4626 token vault for the base asset. +- `baseVaultConversionSample`: A sample amount for converting base vault units. +- `baseFeed1`, `baseFeed2`: Chainlink-interface-compliant data feeds for the base asset. +- `baseTokenDecimals`: Decimal precision of the base asset. +- `quoteVault`: The ERC4626 token vault for the quote asset. +- `quoteVaultConversionSample`: A sample amount for converting quote vault units. +- `quoteFeed1`, `quoteFeed2`: Chainlink-interface-compliant data feeds for the quote asset. +- `quoteTokenDecimals`: Decimal precision of the quote asset. +- `salt`: A unique identifier to create deterministic addresses for deployed oracles. ### Deploy an Oracle