Commit fc8d3a0
committed
fix: simplify nested price feeds deployment
Underlying price feeds prices are no longer queried during deployment.
This call is redundant since price validity is checked when adding price feed to PFS and PO.
At the same time, it significantly complicates deployment when underlying feeds are updatable.1 parent f8d1010 commit fc8d3a0
File tree
9 files changed
+25
-25
lines changed- contracts/oracles
- balancer
- curve
- pendle
- lib/@gearbox-protocol
9 files changed
+25
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
- contracts/core/AliasedLossPolicyV3.sol+311
- contracts/core/BotListV3.sol+5-2
- contracts/core/GearStakingV3.sol+28-7
- contracts/core/PriceOracleV3.sol+2-37
- contracts/credit/CreditConfiguratorV3.sol+16-1
- contracts/credit/CreditFacadeV3.sol+51-33
- contracts/credit/CreditManagerV3.sol+10-3
- contracts/interfaces/IAliasedLossPolicyV3.sol+33
- contracts/interfaces/ICreditConfiguratorV3.sol+2
- contracts/interfaces/ICreditFacadeV3.sol+3-1
- contracts/interfaces/ICreditFacadeV3Multicall.sol+1-1
- contracts/interfaces/IExceptions.sol+3
- contracts/interfaces/IPriceOracleV3.sol-21
- contracts/interfaces/base/ILossPolicy.sol+38-11
- contracts/interfaces/base/IPriceFeedStore.sol+16
- contracts/libraries/Constants.sol+5
- contracts/pool/TumblerV3.sol+2
- contracts/test/helpers/IntegrationTestHelper.sol+5-1
- contracts/test/integration/credit/CreditConfigurator.int.t.sol+33-13
- contracts/test/integration/credit/LiquidateCreditAccount.int.t.sol+2-2
- contracts/test/interfaces/IAddressProviderV3.sol+1
- contracts/test/mocks/core/AddressProviderV3ACLMock.sol+4
- contracts/test/mocks/core/LossPolicyMock.sol+17-8
- contracts/test/mocks/oracles/PriceFeedStoreMock.sol+28
- contracts/test/mocks/oracles/PriceOracleMock.sol+8-7
- contracts/test/mocks/token/WETHFallbackMock.sol-76
- contracts/test/mocks/token/WETHMock.sol+10-2
- contracts/test/suites/CreditManagerFactory.sol+2-1
- contracts/test/suites/GenesisFactory.sol+3
- contracts/test/unit/core/AliasedLossPolicyV3.unit.t.sol+527
- contracts/test/unit/core/AliasedLossPolicyV3Harness.sol+61
- contracts/test/unit/core/BotListV3.unit.t.sol+36
- contracts/test/unit/core/PriceOracleV3.unit.t.sol+50-73
- contracts/test/unit/core/PriceOracleV3Harness.sol-4
- contracts/test/unit/credit/CreditFacadeV3.unit.t.sol+72-20
- contracts/test/unit/credit/CreditFacadeV3Harness.sol+4-3
- contracts/test/unit/credit/CreditManagerV3.unit.t.sol+30-13
- contracts/test/unit/pool/TumblerV3.unit.t.sol+5-1
- contracts/traits/ACLTrait.sol+5-1
- contracts/traits/ContractsRegisterTrait.sol+5-1
- contracts/traits/PriceFeedValidationTrait.sol+25-31
0 commit comments