File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -75,11 +75,22 @@ contract LiquidityController {
75
75
// Authorized addresses to manage liquidity of NativeAssetLiquidity
76
76
mapping(address => bool) public minters;
77
77
78
+ // Authorizes an address from performing liquidity control operations
78
79
function authorizeMinter(address _minter) external {
79
80
if (msg.sender != IProxyAdmin(Predeploys.PROXY_ADMIN).owner()) revert Unauthorized();
80
81
minters[_minter] = true;
81
82
(...)
82
83
}
84
+
85
+ // Deauthorizes an address from performing liquidity control operations
86
+ function deauthorizeMinter(address _minter) external {
87
+ if (msg.sender != IProxyAdmin(Predeploys.PROXY_ADMIN).owner()) revert Unauthorized();
88
+ if (!minters[_minter]) revert NotMinter(_minter);
89
+
90
+ delete minters[_minter];
91
+ (...)
92
+ }
93
+
83
94
// Authorized minter can unlock native asset
84
95
function mint(address _to, uint256 _amount) external {
85
96
if (!minters[msg.sender]) revert Unauthorized();
You can’t perform that action at this time.
0 commit comments