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
2 changes: 1 addition & 1 deletion src/pol/BGT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/pol/interfaces/IFeeCollector.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/pol/rewards/BlockRewardController.sol
Original file line number Diff line number Diff line change
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/pol/BGTStaker.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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();
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 @@ -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();
Expand Down