From c7e25191be7f9104a68ffe96f0eb256a4d2d1a76 Mon Sep 17 00:00:00 2001 From: Joxes <91908708+Joxess@users.noreply.github.com> Date: Tue, 26 Aug 2025 15:11:02 -0300 Subject: [PATCH] docs: add deauthorizeMinter function in LiquidityController Signed-off-by: Joxes <91908708+Joxess@users.noreply.github.com> --- protocol/custom-gas-token.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/protocol/custom-gas-token.md b/protocol/custom-gas-token.md index dd97bc37..bee29392 100644 --- a/protocol/custom-gas-token.md +++ b/protocol/custom-gas-token.md @@ -75,11 +75,22 @@ contract LiquidityController { // Authorized addresses to manage liquidity of NativeAssetLiquidity mapping(address => bool) public minters; + // Authorizes an address from performing liquidity control operations function authorizeMinter(address _minter) external { if (msg.sender != IProxyAdmin(Predeploys.PROXY_ADMIN).owner()) revert Unauthorized(); minters[_minter] = true; (...) } + + // Deauthorizes an address from performing liquidity control operations + function deauthorizeMinter(address _minter) external { + if (msg.sender != IProxyAdmin(Predeploys.PROXY_ADMIN).owner()) revert Unauthorized(); + if (!minters[_minter]) revert NotMinter(_minter); + + delete minters[_minter]; + (...) + } + // Authorized minter can unlock native asset function mint(address _to, uint256 _amount) external { if (!minters[msg.sender]) revert Unauthorized();