You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,10 @@ This oracle handles the following cases among others (let's say that our pair is
18
18
- A/C and C/B are feeds (typically, WBTC/BTC and BTC/ETH).
19
19
- A'/C and B/C are feeds, and there is an exchange rate between A and A'. (typically A=sDAI and A'=DAI).
20
20
21
-
### MorphoChainlinkOracleV2Factory
21
+
##Deploy an Oracle
22
22
23
-
#### Deploy an Oracle
24
-
25
-
To deploy a `MorphoChainlinkOracleV2` on the Ethereum mainnet, use the `MorphoChainlinkOracleV2Factory` to create a new oracle. Call the `createMorphoChainlinkOracleV2` function with the following parameters:
23
+
To deploy a `MorphoChainlinkOracleV2` on the Ethereum mainnet, use the `MorphoChainlinkOracleV2Factory` to create a new oracle.
24
+
Call the `createMorphoChainlinkOracleV2` function with the following parameters:
26
25
27
26
-`baseVault`: The ERC4626 token vault for the base asset.
28
27
-`baseVaultConversionSample`: A sample amount for converting base vault units.
@@ -37,11 +36,11 @@ To deploy a `MorphoChainlinkOracleV2` on the Ethereum mainnet, use the `MorphoCh
37
36
**Warning:** If there is an ERC4626-compliant vault for `baseVault` or `quoteVault`, the `baseTokenDecimals` or `quoteTokenDecimals` are still the decimals of the asset in the vault, and not the decimals of the Vault asset.
38
37
E.g: for a MetaMorpho WETH vault, as `baseVault`, the `baseTokenDecimals` is 18 as WETH has 18 decimals.
39
38
40
-
####Addresses
39
+
### Addresses
41
40
42
41
The Ethereum Mainnet address of this factory is [0x3A7bB36Ee3f3eE32A60e9f2b33c1e5f2E83ad766](https://etherscan.io/address/0x3a7bb36ee3f3ee32a60e9f2b33c1e5f2e83ad766#code).
43
42
44
-
####Examples
43
+
### Examples
45
44
46
45
Below are the arguments to fill for the creation of the WETH/USDT oracle:
47
46
@@ -95,7 +94,7 @@ and for the wstETH/ETH oracle:
95
94
96
95
A specific implementation, the `WstEthStEthExchangeRateChainlinkAdapter`, provides the exchange rate between wstETH and stETH as a Chainlink-interface-compliant feed.
97
96
98
-
This adapter is deployed on Ethereum Mainnet at the address [0x905b7dAbCD3Ce6B792D874e303D336424Cdb1421](https://etherscan.io/address/0x905b7dabcd3ce6b792d874e303d336424cdb1421#code).
97
+
This adapter is deployed on the Ethereum Mainnet at the address [0x905b7dAbCD3Ce6B792D874e303D336424Cdb1421](https://etherscan.io/address/0x905b7dabcd3ce6b792d874e303d336424cdb1421#code).
0 commit comments