Skip to content

Commit

Permalink
Update packages/solidity-contracts/contracts/fuelchain/FuelMessagePor…
Browse files Browse the repository at this point in the history
…tal/v3/FuelMessagePortalV3.sol


chore: minor touchup

Co-authored-by: Mad <[email protected]>
  • Loading branch information
viraj124 and DefiCake authored Oct 24, 2024
1 parent 7f0209d commit be3cc77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ contract FuelMessagePortalV3 is FuelMessagePortalV2 {
* @notice Resets the rate limit amount.
* @param _amount The amount to reset the limit to.
* Fuel's implementation is inspired by the Linea Bridge design (https://github.com/Consensys/linea-contracts/blob/main/contracts/messageService/lib/RateLimiter.sol)
* Only point of difference from the linea implementation is that when currentPeriodEnd >= block.timestamp, then currentPeriodAmount is not updated this makes sure that if rate limit is first reduced & then increased within the rate limit duration then any extra amount can't be withdrawn.
* Only point of difference from the linea implementation is that when currentPeriodEnd >= block.timestamp, then currentPeriodAmount is not updated. This makes sure that if rate limit is first reduced & then increased within the rate limit duration then any extra amount can't be withdrawn.
*/
function resetRateLimitAmount(uint256 _amount) external onlyRole(SET_RATE_LIMITER_ROLE) {
// if period has expired then currentPeriodAmount is zero
Expand Down

0 comments on commit be3cc77

Please sign in to comment.