Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

add comment #17116

Merged
merged 3 commits into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/protocol/contracts/bridge/IQuotaManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading