diff --git a/src/pol/BGT.sol b/src/pol/BGT.sol index 7adb564..2d991ab 100644 --- a/src/pol/BGT.sol +++ b/src/pol/BGT.sol @@ -293,7 +293,7 @@ contract BGT is IBGT, ERC20VotesUpgradeable, OwnableUpgradeable, Multicallable { // `withdraw` will fail with zero amount. if (amount == 0 || !_checkEnoughTimePassed(blockNumberLast, dropBoostDelay)) return false; unchecked { - // queue drop boost gaurentees that the user has enough boosted balance to drop + // queue drop boost guarantees that the user has enough boosted balance to drop boosted[user][pubkey] -= amount; // `totalBoosts` >= `userBoosts[user].boost` >= `boosted[user][validator]` totalBoosts -= amount; diff --git a/src/pol/interfaces/IFeeCollector.sol b/src/pol/interfaces/IFeeCollector.sol index b508940..859b5b7 100644 --- a/src/pol/interfaces/IFeeCollector.sol +++ b/src/pol/interfaces/IFeeCollector.sol @@ -22,7 +22,7 @@ interface IFeeCollector is IPOLErrors { /// @notice Emitted when the `PayoutToken` is donated. /// @param caller Caller of the `donate` function. - /// @param amount The amount of payout token that is transfered. + /// @param amount The amount of payout token that is transferred. event PayoutDonated(address indexed caller, uint256 amount); /// @notice Emitted when the fees are claimed. diff --git a/src/pol/rewards/BlockRewardController.sol b/src/pol/rewards/BlockRewardController.sol index 1995dc5..f52ab23 100644 --- a/src/pol/rewards/BlockRewardController.sol +++ b/src/pol/rewards/BlockRewardController.sol @@ -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); diff --git a/test/pol/BGTStaker.t.sol b/test/pol/BGTStaker.t.sol index b972c8d..79233d3 100644 --- a/test/pol/BGTStaker.t.sol +++ b/test/pol/BGTStaker.t.sol @@ -151,7 +151,7 @@ contract BGTStakerTest is POLTest, StakingTest { assertApproxEqAbs(bgtStaker.earned(user), expectedEarned, 2e2); } - /// @dev Changing rewards duration during reward cycle afftects users staking in different times. + /// @dev Changing rewards duration during reward cycle affects users staking in different times. function test_SetRewardsDurationDuringCycleMultipleUsers() public { address user2 = makeAddr("user2"); uint256 blockTimestamp = vm.getBlockTimestamp(); diff --git a/test/pol/RewardVault.t.sol b/test/pol/RewardVault.t.sol index f2e7389..27c697e 100644 --- a/test/pol/RewardVault.t.sol +++ b/test/pol/RewardVault.t.sol @@ -304,7 +304,7 @@ contract RewardVaultTest is DistributorTest, StakingTest { assertApproxEqAbs(vault.earned(user), expectedEarned, 2e2); } - /// @dev Changing rewards duration during reward cycle afftects users staking in different times. + /// @dev Changing rewards duration during reward cycle affects users staking in different times. function test_SetRewardsDurationDuringCycleMultipleUsers() public { address user2 = makeAddr("user2"); uint256 blockTimestamp = vm.getBlockTimestamp();