Skip to content

Commit

Permalink
evm: Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nvsriram committed Nov 6, 2024
1 parent 6b060e2 commit caeb86b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
13 changes: 3 additions & 10 deletions evm/src/interfaces/IRateLimiterEvents.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,13 @@ interface IRateLimiterEvents {
/// 0x7e3b0fc388be9d36273f66210aed83be975df3a9adfffa4c734033f498f362cd.
/// @param oldLimit The old outbound limit.
/// @param newLimit The new outbound limit.
event OutboundTransferLimitUpdated(
uint256 oldLimit,
uint256 newLimit
);

event OutboundTransferLimitUpdated(uint256 oldLimit, uint256 newLimit);

/// @notice Emitted when the inbound transfer limit is updated.
/// @dev Topic0
/// 0x739ed886fd81a3ddc9f4b327ab69152e513cd45b26fda0c73660eaca8e119301.
/// @param chainId The chain ID the limit is set for.
/// @param oldLimit The old inbound limit.
/// @param newLimit The new inbound limit.
event InboundTransferLimitUpdated(
uint16 indexed chainId,
uint256 oldLimit,
uint256 newLimit
);
event InboundTransferLimitUpdated(uint16 indexed chainId, uint256 oldLimit, uint256 newLimit);
}
4 changes: 3 additions & 1 deletion evm/src/libraries/RateLimiter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ abstract contract RateLimiter is IRateLimiter, IRateLimiterEvents {
TrimmedAmount oldLimit = rateLimitParams.limit;
uint8 decimals = tokenDecimals();
_setLimit(limit, rateLimitParams);
emit InboundTransferLimitUpdated(chainId_, oldLimit.untrim(decimals), limit.untrim(decimals));
emit InboundTransferLimitUpdated(
chainId_, oldLimit.untrim(decimals), limit.untrim(decimals)
);
}

function getInboundLimitParams(
Expand Down

0 comments on commit caeb86b

Please sign in to comment.