-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathEdgeRiskStewardRates.sol
More file actions
67 lines (59 loc) · 2.07 KB
/
Copy pathEdgeRiskStewardRates.sol
File metadata and controls
67 lines (59 loc) · 2.07 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;
import './RiskSteward.sol';
/**
* @title EdgeRiskStewardRates
* @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 EdgeRiskStewardRates is RiskSteward {
/**
* @param pool the aave 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 owner the owner of the risk steward being able to set configs and mark items as restricted
* @param riskConfig the risk configuration to setup for each individual risk param
*/
constructor(
address pool,
address engine,
address riskCouncil,
address owner,
Config memory riskConfig
) RiskSteward(pool, engine, riskCouncil, owner, 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 updateEModeCategories(
IEngine.EModeCategoryUpdate[] 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();
}
/// @inheritdoc IRiskSteward
function updatePendleDiscountRates(
DiscountRatePendleUpdate[] calldata
) external virtual override onlyRiskCouncil {
revert UpdateNotAllowed();
}
}