From adf619a2000d95535ceeefc61586aaa9561d4c8c Mon Sep 17 00:00:00 2001 From: Daniel Wang <99078276+dantaik@users.noreply.github.com> Date: Mon, 13 May 2024 19:51:17 +0800 Subject: [PATCH] add comment (#17116) --- packages/protocol/contracts/bridge/IQuotaManager.sol | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/protocol/contracts/bridge/IQuotaManager.sol b/packages/protocol/contracts/bridge/IQuotaManager.sol index 8b2381ae8e..3091e01931 100644 --- a/packages/protocol/contracts/bridge/IQuotaManager.sol +++ b/packages/protocol/contracts/bridge/IQuotaManager.sol @@ -6,6 +6,13 @@ pragma solidity 0.8.24; interface IQuotaManager { /// @notice Consumes a specific amount of quota for a given address. /// This function must revert if available quota is smaller than the given amount of quota. + /// + /// @dev Note that IQuotaManager is used by vaults and bridge, and should be registered in a + /// shared address manager on the L1, therefore, a registered IQuotaManager and its per-token + /// quota settings will be shared by all Taiko L2s. To enable a per-L2 quota, we need to modify + /// this function to: + /// `function consumeQuota(uint256 _srcChainId, address _token, uint256 _amount) ` + /// /// @param _token The token address. Ether is represented with address(0). /// @param _amount The amount of quota to consume. function consumeQuota(address _token, uint256 _amount) external;