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 in documentation files #127

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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