Skip to content

Commit

Permalink
Avoid hardcoded address for UniStaker in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
apbendi committed Mar 26, 2024
1 parent b4876db commit a30210c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/UniStaker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ contract UniStaker is INotifiableRewardReceiver, Multicall, EIP712, Nonces {
/// Note that the contract tracks the unclaimed rewards internally with the scale factor
/// included, in order to avoid the accrual of precision losses as users takes actions that
/// cause rewards to be checkpointed. This external helper method is useful for integrations, and
/// returns the value after it has been scaled down to the reward token's raw decimal amount.
/// returns the value after it has been scaled down to the reward token's raw decimal amount.
/// @return Live value of the unclaimed rewards earned by a given beneficiary account.
function unclaimedReward(address _beneficiary) external view returns (uint256) {
return _scaledUnclaimedReward(_beneficiary) / SCALE_FACTOR;
Expand Down
2 changes: 1 addition & 1 deletion test/UniStaker.integration.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ contract Stake is IntegrationTest, PercentAssertions {
) public {
vm.assume(_depositor != address(0) && _delegatee != address(0) && _amount != 0);
// Make sure depositor is not UniStaker
vm.assume(_depositor != 0xE2307e3710d108ceC7a4722a020a050681c835b3);
vm.assume(_depositor != address(uniStaker));
_passQueueAndExecuteProposals();
_swapAndClaimFees(_swapAmount);
_amount = _dealStakingToken(_depositor, _amount);
Expand Down

0 comments on commit a30210c

Please sign in to comment.