Skip to content

Commit 31854f5

Browse files
authored
docs: add deauthorizeMinter function in LiquidityController (#329)
Signed-off-by: Joxes <[email protected]>
1 parent df51fd2 commit 31854f5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

protocol/custom-gas-token.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,22 @@ contract LiquidityController {
7575
// Authorized addresses to manage liquidity of NativeAssetLiquidity
7676
mapping(address => bool) public minters;
7777
78+
// Authorizes an address from performing liquidity control operations
7879
function authorizeMinter(address _minter) external {
7980
if (msg.sender != IProxyAdmin(Predeploys.PROXY_ADMIN).owner()) revert Unauthorized();
8081
minters[_minter] = true;
8182
(...)
8283
}
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+
8394
// Authorized minter can unlock native asset
8495
function mint(address _to, uint256 _amount) external {
8596
if (!minters[msg.sender]) revert Unauthorized();

0 commit comments

Comments
 (0)