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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #120

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
16 changes: 8 additions & 8 deletions src/revenue-share/BalanceTracker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,17 @@ contract BalanceTracker is ReentrancyGuardUpgradeable {
external
reinitializer(2)
{
uint256 systemAddresesLength = _systemAddresses.length;
require(systemAddresesLength > 0, "BalanceTracker: systemAddresses cannot have a length of zero");
uint256 systemAddressesLength = _systemAddresses.length;
require(systemAddressesLength > 0, "BalanceTracker: systemAddresses cannot have a length of zero");
require(
systemAddresesLength <= MAX_SYSTEM_ADDRESS_COUNT,
systemAddressesLength <= MAX_SYSTEM_ADDRESS_COUNT,
"BalanceTracker: systemAddresses cannot have a length greater than 20"
);
require(
systemAddresesLength == _targetBalances.length,
systemAddressesLength == _targetBalances.length,
"BalanceTracker: systemAddresses and targetBalances length must be equal"
);
for (uint256 i; i < systemAddresesLength;) {
for (uint256 i; i < systemAddressesLength;) {
require(_systemAddresses[i] != address(0), "BalanceTracker: systemAddresses cannot contain address(0)");
require(_targetBalances[i] > 0, "BalanceTracker: targetBalances cannot contain 0 target");
unchecked {
Expand All @@ -125,10 +125,10 @@ contract BalanceTracker is ReentrancyGuardUpgradeable {
*
*/
function processFees() external nonReentrant {
uint256 systemAddresesLength = systemAddresses.length;
require(systemAddresesLength > 0, "BalanceTracker: systemAddresses cannot have a length of zero");
uint256 systemAddressesLength = systemAddresses.length;
require(systemAddressesLength > 0, "BalanceTracker: systemAddresses cannot have a length of zero");
// Refills balances of systems addresses up to their target balances
for (uint256 i; i < systemAddresesLength;) {
for (uint256 i; i < systemAddressesLength;) {
refillBalanceIfNeeded(systemAddresses[i], targetBalances[i]);
unchecked {
i++;
Expand Down
2 changes: 1 addition & 1 deletion src/revenue-share/FeeDisburser.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ contract FeeDisburser {
uint256 public lastDisbursementTime;
/**
* @dev Tracks aggregate net fee revenue which is the sum of sequencer and base fees.
* @dev Explicity tracking Net Revenue is required to seperate L1FeeVault initiated
* @dev Explicitly tracking Net Revenue is required to separate L1FeeVault initiated
* withdrawals from Net Revenue calculations.
*/
uint256 public netFeeRevenue;
Expand Down