generated from AngleProtocol/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 14
/
SettersGuardian.sol
39 lines (30 loc) · 1.39 KB
/
SettersGuardian.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
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.19;
import { ISettersGuardian } from "interfaces/ISetters.sol";
import { LibSetters } from "../libraries/LibSetters.sol";
import { AccessControlModifiers } from "./AccessControlModifiers.sol";
import "../Storage.sol";
/// @title SettersGuardian
/// @author Angle Labs, Inc.
contract SettersGuardian is AccessControlModifiers, ISettersGuardian {
/// @inheritdoc ISettersGuardian
function togglePause(address collateral, ActionType pausedType) external onlyGuardian {
LibSetters.togglePause(collateral, pausedType);
}
/// @inheritdoc ISettersGuardian
function setFees(address collateral, uint64[] memory xFee, int64[] memory yFee, bool mint) external onlyGuardian {
LibSetters.setFees(collateral, xFee, yFee, mint);
}
/// @inheritdoc ISettersGuardian
function setRedemptionCurveParams(uint64[] memory xFee, int64[] memory yFee) external onlyGuardian {
LibSetters.setRedemptionCurveParams(xFee, yFee);
}
/// @inheritdoc ISettersGuardian
function toggleWhitelist(WhitelistType whitelistType, address who) external onlyGuardian {
LibSetters.toggleWhitelist(whitelistType, who);
}
/// @inheritdoc ISettersGuardian
function setStablecoinCap(address collateral, uint256 stablecoinCap) external onlyGuardian {
LibSetters.setStablecoinCap(collateral, stablecoinCap);
}
}