Skip to content

Commit

Permalink
Update flywheel-v2, and update test to remove workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
kphed committed Dec 11, 2023
1 parent 18e4b93 commit 418a7ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion lib/flywheel-v2
5 changes: 0 additions & 5 deletions test/Helper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@ contract Helper is Test {
);
dynamicRewardsStore = dynamicRewards.rewardsStore();

// Hacky workaround since the zero address has a non-zero WETH balance which
// causes `setFlywheelRewards` to revert when FlywheelCore tries to do a transfer.
vm.prank(address(0));

ERC20(WETH).approve(address(flywheel), type(uint256).max);

flywheel.setFlywheelRewards(dynamicRewards);
flywheel.addStrategyForRewards(ERC20(address(stakedBRR)));

Expand Down

0 comments on commit 418a7ee

Please sign in to comment.