File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ contract Blue {
82
82
/// @notice It is the owner's responsibility to ensure a fee recipient is set before setting a non-zero fee.
83
83
function setFee (Market calldata market , uint256 newFee ) external onlyOwner {
84
84
Id id = market.id ();
85
- require (lastUpdate[id] != 0 , " unknown market " );
86
- require (newFee <= FEE_CAP, " fee must be <= 20% " );
85
+ require (lastUpdate[id] != 0 , Errors.MARKET_NOT_CREATED );
86
+ require (newFee <= FEE_CAP, Errors.FEE_CAP_EXCEEDED );
87
87
fee[id] = newFee;
88
88
}
89
89
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ library Errors {
6
6
7
7
string internal constant LLTV_TOO_HIGH = "LLTV too high " ;
8
8
9
+ string internal constant FEE_CAP_EXCEEDED = "fee must be <= 20% " ;
10
+
9
11
string internal constant IRM_NOT_ENABLED = "IRM not enabled " ;
10
12
11
13
string internal constant LLTV_NOT_ENABLED = "LLTV not enabled " ;
You can’t perform that action at this time.
0 commit comments