forked from aave-dao/aave-v3-risk-stewards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EdgeRiskSteward.sol
51 lines (45 loc) · 1.63 KB
/
EdgeRiskSteward.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;
import './RiskSteward.sol';
/**
* @title EdgeRiskSteward
* @author BGD labs
* @notice Contract to manage the interest rates params within configured bound on aave v3 pool.
* To be triggered by the Aave Steward Injector Contract in a automated way via the Edge Risk Oracle.
*/
contract EdgeRiskSteward is RiskSteward {
/**
* @param poolDataProvider The pool data provider of the pool to be controlled by the steward
* @param engine the config engine to be used by the steward
* @param riskCouncil the safe address of the council being able to interact with the steward
* @param riskConfig the risk configuration to setup for each individual risk param
*/
constructor(
IPoolDataProvider poolDataProvider,
IEngine engine,
address riskCouncil,
Config memory riskConfig
) RiskSteward(poolDataProvider, engine, riskCouncil, riskConfig) {}
/// @inheritdoc IRiskSteward
function updateCaps(IEngine.CapsUpdate[] calldata) external virtual override onlyRiskCouncil {
revert UpdateNotAllowed();
}
/// @inheritdoc IRiskSteward
function updateCollateralSide(
IEngine.CollateralUpdate[] calldata
) external virtual override onlyRiskCouncil {
revert UpdateNotAllowed();
}
/// @inheritdoc IRiskSteward
function updateLstPriceCaps(
PriceCapLstUpdate[] calldata
) external virtual override onlyRiskCouncil {
revert UpdateNotAllowed();
}
/// @inheritdoc IRiskSteward
function updateStablePriceCaps(
PriceCapStableUpdate[] calldata
) external virtual override onlyRiskCouncil {
revert UpdateNotAllowed();
}
}