Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
aminlatifi committed Jan 29, 2025
1 parent c3b4422 commit da21fca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/GardenUnipoolTokenDistributor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ contract GardenUnipoolTokenDistributor is LPTokenWrapper, TokenManagerHook, Owna
require(success, 'UnipoolTokenDistributor: CALL_FAILED');
(uint256 allocatedTokens,) = abi.decode(data, (uint256, uint256));

require(allocatedTokens >= _reward, 'UnipoolTokenDistributor: NOT_ENOUGH_TOKEND_ISTRO_BALANCE');
require(allocatedTokens >= _reward, 'UnipoolTokenDistributor: NOT_ENOUGH_TOKEN_DISTRO_BALANCE');

rewardRate = _reward.div(duration);
lastUpdateTime = _timestamp;
Expand Down
2 changes: 1 addition & 1 deletion contracts/UnipoolTokenDistributor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ contract UnipoolTokenDistributor is LPTokenWrapper, OwnableUpgradeable {
require(success, 'UnipoolTokenDistributor: CALL_FAILED');
(uint256 allocatedTokens,) = abi.decode(data, (uint256, uint256));

require(allocatedTokens >= _reward, 'UnipoolTokenDistributor: NOT_ENOUGH_TOKEND_ISTRO_BALANCE');
require(allocatedTokens >= _reward, 'UnipoolTokenDistributor: NOT_ENOUGH_TOKEN_DISTRO_BALANCE');

rewardRate = _reward.div(duration);
lastUpdateTime = _timestamp;
Expand Down
4 changes: 2 additions & 2 deletions test/UnipoolTests/UnipoolNotifyReward.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ contract UnipoolNotifyReward is UnipoolGIVpowerTest {
vm.stopPrank();

vm.startPrank(rewardDistributor);
vm.expectRevert('UnipoolTokenDistributor: NOT_ENOUGH_TOKEND_ISTRO_BALANCE');
vm.expectRevert('UnipoolTokenDistributor: NOT_ENOUGH_TOKEN_DISTRO_BALANCE');
givPower.notifyRewardAmount(_rewardBudget + 1);
vm.stopPrank();
}
Expand Down Expand Up @@ -69,7 +69,7 @@ contract UnipoolNotifyReward is UnipoolGIVpowerTest {

vm.startPrank(rewardDistributor);
givPower.notifyRewardAmount(_rewardBudget / 2);
vm.expectRevert('UnipoolTokenDistributor: NOT_ENOUGH_TOKEND_ISTRO_BALANCE');
vm.expectRevert('UnipoolTokenDistributor: NOT_ENOUGH_TOKEN_DISTRO_BALANCE');
givPower.notifyRewardAmount((_rewardBudget / 2) + 1 ether);
vm.stopPrank();
}
Expand Down

0 comments on commit da21fca

Please sign in to comment.