-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove claimRewards double call #228
Changes from all commits
ed732e5
ee59b45
6d1eb1a
e91e8bc
ad7d519
77ea1c3
e1151fe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -469,21 +469,6 @@ contract TestSupplyVault is TestSetupVaults { | |
assertApproxEqAbs(uint256(userReward1_1), userReward1_2, 1); | ||
} | ||
|
||
// TODO: fix this test by using updated indexes in previewMint | ||
// function testShouldMintCorrectAmountWhenMorphoPoolIndexesOutdated() public { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you re-try this test? Perhaps redundant to new tests though.. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test is redundant yes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And it is passing, except on aave-v3 on which the lens was not added |
||
// uint256 amount = 10_000 ether; | ||
|
||
// vaultSupplier1.depositVault(daiSupplyVault, amount); | ||
|
||
// vm.roll(block.number + 100_000); | ||
// vm.warp(block.timestamp + 1_000_000); | ||
|
||
// uint256 assets = vaultSupplier2.mintVault(daiSupplyVault, amount); | ||
// uint256 shares = vaultSupplier2.withdrawVault(daiSupplyVault, assets); | ||
|
||
// assertEq(shares, amount, "unexpected redeemed shares"); | ||
// } | ||
|
||
function testShouldDepositCorrectAmountWhenMorphoPoolIndexesOutdated() public { | ||
uint256 amount = 10_000 ether; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change the name? IMO it's clear enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because there's the external function
claimRewards
and it may suggest that this internal function is the implementation toclaimRewards