@@ -36,15 +36,15 @@ The Ethereum Mainnet address of this factory is [0x3A7bB36Ee3f3eE32A60e9f2b33c1e
36
36
37
37
To create a new ` MorphoChainlinkOracleV2 ` oracle using the factory, call the ` createMorphoChainlinkOracleV2 ` function with the following parameters:
38
38
39
- - ` baseVault ` : The ERC4626 token vault for the base asset.
40
- - ` baseVaultConversionSample ` : A sample amount for converting base vault units.
41
- - ` baseFeed1 ` , ` baseFeed2 ` : Chainlink-interface-compliant data feeds for the base asset.
42
- - ` baseTokenDecimals ` : Decimal precision of the base asset.
43
- - ` quoteVault ` : The ERC4626 token vault for the quote asset.
44
- - ` quoteVaultConversionSample ` : A sample amount for converting quote vault units.
45
- - ` quoteFeed1 ` , ` quoteFeed2 ` : Chainlink-interface-compliant data feeds for the quote asset.
46
- - ` quoteTokenDecimals ` : Decimal precision of the quote asset.
47
- - ` salt ` : A unique identifier to create deterministic addresses for deployed oracles.
39
+ - ' baseVault' : The ERC4626 token vault for the base asset.
40
+ - ' baseVaultConversionSample' : A sample amount for converting base vault units.
41
+ - ' baseFeed1', ' baseFeed2' : Chainlink-interface-compliant data feeds for the base asset.
42
+ - ' baseTokenDecimals' : Decimal precision of the base asset.
43
+ - ' quoteVault' : The ERC4626 token vault for the quote asset.
44
+ - ' quoteVaultConversionSample' : A sample amount for converting quote vault units.
45
+ - ' quoteFeed1', ' quoteFeed2' : Chainlink-interface-compliant data feeds for the quote asset.
46
+ - ' quoteTokenDecimals' : Decimal precision of the quote asset.
47
+ - ' salt' : A unique identifier to create deterministic addresses for deployed oracles.
48
48
49
49
### Deploy an Oracle
50
50
@@ -53,49 +53,49 @@ To deploy a `MorphoChainlinkOracleV2` on the Ethereum mainnet, use the `MorphoCh
53
53
Below are the arguments to fill for the creation of the WETH/USDT oracle:
54
54
55
55
``` json
56
- ` baseVault` : "0x0000000000000000000000000000000000000000",
57
- ` baseVaultConversionSample` : 1,
58
- ` baseFeed1` : "0x0000000000000000000000000000000000000000",
59
- ` baseFeed2` : "0x0000000000000000000000000000000000000000",
60
- ` baseTokenDecimals` : 18,
61
- ` quoteVault` :"0x0000000000000000000000000000000000000000",
62
- ` quoteVaultConversionSample` : 1,
63
- ` quoteFeed1` : "0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46",
64
- ` quoteFeed2` : "0x0000000000000000000000000000000000000000",
65
- ` quoteTokenDecimals` : 6,
66
- ` salt` : <user-defined value used to make the address unique>,
56
+ " baseVault" : " 0x0000000000000000000000000000000000000000" ,
57
+ " baseVaultConversionSample" : 1 ,
58
+ " baseFeed1" : " 0x0000000000000000000000000000000000000000" ,
59
+ " baseFeed2" : " 0x0000000000000000000000000000000000000000" ,
60
+ " baseTokenDecimals" : 18 ,
61
+ " quoteVault" :" 0x0000000000000000000000000000000000000000" ,
62
+ " quoteVaultConversionSample" : 1 ,
63
+ " quoteFeed1" : " 0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46" ,
64
+ " quoteFeed2" : " 0x0000000000000000000000000000000000000000" ,
65
+ " quoteTokenDecimals" : 6 ,
66
+ " salt" : <user-defined value used to make the address unique>,
67
67
```
68
68
69
69
and for the sDAI/USDC oracle:
70
70
71
71
``` json
72
- ` baseVault` : "0x83F20F44975D03b1b09e64809B757c47f942BEeA",
73
- ` baseVaultConversionSample` : 1000000000000000000, // 1e18
74
- ` baseFeed1` : "0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9",
75
- ` baseFeed2` : "0x0000000000000000000000000000000000000000",
76
- ` baseTokenDecimals` : 18,
77
- ` quoteVault` : "0x0000000000000000000000000000000000000000",
78
- ` quoteVaultConversionSample` : 1,
79
- ` quoteFeed1` : "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6",
80
- ` quoteFeed2` : "0x0000000000000000000000000000000000000000",
81
- ` quoteTokenDecimals` : 6,
82
- ` salt` : <user-defined value used to make the address unique>,
72
+ " baseVault" : " 0x83F20F44975D03b1b09e64809B757c47f942BEeA" ,
73
+ " baseVaultConversionSample" : 1000000000000000000 , // 1e18
74
+ " baseFeed1" : " 0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9" ,
75
+ " baseFeed2" : " 0x0000000000000000000000000000000000000000" ,
76
+ " baseTokenDecimals" : 18 ,
77
+ " quoteVault" : " 0x0000000000000000000000000000000000000000" ,
78
+ " quoteVaultConversionSample" : 1 ,
79
+ " quoteFeed1" : " 0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6" ,
80
+ " quoteFeed2" : " 0x0000000000000000000000000000000000000000" ,
81
+ " quoteTokenDecimals" : 6 ,
82
+ " salt" : <user-defined value used to make the address unique>,
83
83
```
84
84
85
85
and for the wstETH/ETH oracle:
86
86
87
87
``` json
88
- ` baseVault` : "0x0000000000000000000000000000000000000000",
89
- ` baseVaultConversionSample` : 1,
90
- ` baseFeed1` : "0x905b7dAbCD3Ce6B792D874e303D336424Cdb1421",
91
- ` baseFeed2` : "0x86392dC19c0b719886221c78AB11eb8Cf5c52812",
92
- ` baseTokenDecimals` : 18,
93
- ` quoteVault` : "0x0000000000000000000000000000000000000000",
94
- ` quoteVaultConversionSample` : 1,
95
- ` quoteFeed1` : "0x0000000000000000000000000000000000000000",
96
- ` quoteFeed2` : "0x0000000000000000000000000000000000000000",
97
- ` quoteTokenDecimals` : 18,
98
- ` salt` : <user-defined value used to make the address unique>,
88
+ " baseVault" : " 0x0000000000000000000000000000000000000000" ,
89
+ " baseVaultConversionSample" : 1 ,
90
+ " baseFeed1" : " 0x905b7dAbCD3Ce6B792D874e303D336424Cdb1421" ,
91
+ " baseFeed2" : " 0x86392dC19c0b719886221c78AB11eb8Cf5c52812" ,
92
+ " baseTokenDecimals" : 18 ,
93
+ " quoteVault" : " 0x0000000000000000000000000000000000000000" ,
94
+ " quoteVaultConversionSample" : 1 ,
95
+ " quoteFeed1" : " 0x0000000000000000000000000000000000000000" ,
96
+ " quoteFeed2" : " 0x0000000000000000000000000000000000000000" ,
97
+ " quoteTokenDecimals" : 18 ,
98
+ " salt" : <user-defined value used to make the address unique>,
99
99
```
100
100
101
101
## Getting Started
0 commit comments