Skip to content
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
4 changes: 2 additions & 2 deletions src/pol/rewards/BlockRewardController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ contract BlockRewardController is IBlockRewardController, OwnableUpgradeable, UU
/// @notice The minimum reward rate for BGT after accounting for validator boosts.
uint256 public minBoostedRewardRate;

/// @notice The boost mutliplier param in the function, determines the inflation cap, 18 dec.
/// @notice The boost multiplier param in the function, determines the inflation cap, 18 dec.
uint256 public boostMultiplier;

/// @notice The reward convexity param in the function, determines how fast it converges to its max, 18 dec.
Expand Down Expand Up @@ -232,7 +232,7 @@ contract BlockRewardController is IBlockRewardController, OwnableUpgradeable, UU

emit BlockRewardProcessed(pubkey, nextTimestamp, base, reward);

// Use the beaconDepositContract to fetch the operator, Its gauranteed to return a valid address.
// Use the beaconDepositContract to fetch the operator, Its guaranteed to return a valid address.
// Beacon Deposit contract will enforce validators to set an operator.
address operator = beaconDepositContract.getOperator(pubkey);
if (base > 0) bgt.mint(operator, base);
Expand Down
2 changes: 1 addition & 1 deletion test/honey/Honey.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ contract HoneyTest is StdCheats, SoladyTest {
// Initialize the faultyHoney through the proxy
FaultyMockHoney(address(honey)).initialize(faultyHoneyOwner);

// Factory slot has not initializated on the Proxy storage
// Factory slot has not initialized on the Proxy storage
// So factory is equal to address(0)
// "collidedFactoryValue" variable instead, has taken the value of the factory address
// since it's pointing to the "original" factory slot of the storage
Expand Down
2 changes: 1 addition & 1 deletion test/mock/token/ReentrantERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity 0.8.26;
import "./MockERC20.sol";
import { IDistributor } from "src/pol/interfaces/IDistributor.sol";

/// @dev For test purposes this contract simulate a malicius ERC20
/// @dev For test purposes this contract simulate a malicious ERC20
/// that try to reentrancy attack the distributor contract
contract ReentrantERC20 is MockERC20 {
address internal distributor;
Expand Down
8 changes: 4 additions & 4 deletions test/pol/BeraChef.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ contract BeraChefTest is POLTest {

/// @dev Should fail if default reward allocation contains a weight percentage equal to 0
function testFail_SetDefaultRewardAllocationWithZeroPercentageWeight() public {
address receiverOne = makeAddr("recevierOne");
address receiverTwo = makeAddr("recevierTwo");
address receiverOne = makeAddr("receiverOne");
address receiverTwo = makeAddr("receiverTwo");
IBeraChef.Weight[] memory weights = new IBeraChef.Weight[](3);
weights[0] = IBeraChef.Weight(receiver, 5000);
weights[1] = IBeraChef.Weight(receiverOne, 0);
Expand Down Expand Up @@ -305,8 +305,8 @@ contract BeraChefTest is POLTest {

/// @dev Should fail if reward allocation contains a weight percentage equal to 0
function test_FailIfZeroRewardAllocationWeight() public {
address receiverOne = makeAddr("recevierOne");
address receiverTwo = makeAddr("recevierTwo");
address receiverOne = makeAddr("receiverOne");
address receiverTwo = makeAddr("receiverTwo");
IBeraChef.Weight[] memory weights = new IBeraChef.Weight[](3);
weights[0] = IBeraChef.Weight(receiver, 5000);
weights[1] = IBeraChef.Weight(receiverOne, 0);
Expand Down
2 changes: 1 addition & 1 deletion test/pol/RewardVault.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ contract RewardVaultTest is DistributorTest, StakingTest {
assertEq(updatedAmountRemaining, amountToAdd1 + insufficientAmountToAdd);
}

// test the increase in incentive rate when amoutRemaining is not required to be 0.
// test the increase in incentive rate when amountRemaining is not required to be 0.
function testFuzz_AddIncentive_IncreaseIncentiveRate(uint256 newIncentiveRate) public {
newIncentiveRate = bound(newIncentiveRate, 200 * 1e18 + 1, 1e36);
// updates the incentive rate to 200 * 1e18 while minRate is 100 * 1e18.
Expand Down