-
Notifications
You must be signed in to change notification settings - Fork 485
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
Additional modifyLiquiditiesWithoutUnlock Tests #274
base: main
Are you sure you want to change the base?
Conversation
// subscriber did not modify liquidity | ||
assertEq(lpm.ownerOf(tokenId), address(this)); // owner still owns the position | ||
assertEq(lpm.nextTokenId(), tokenId + 1); // no new token minted | ||
assertEq(lpm.getPositionLiquidity(tokenId, config), 100e18); // liquidity unchanged |
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.
assert subscriber is addr 0 and hasSubscriber is false?
} | ||
|
||
/// @dev subscribers cannot re-enter posm on-unsubscribe since PM is not unlocked | ||
function test_fuzz_subscriber_unsubscribe_reenter_revert(uint256 seed) public { |
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.
not a revert test?
} | ||
} | ||
|
||
function notifyModifyLiquidity(uint256, PositionConfig memory, int256) external onlyByPosm { |
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.
update interface
Related Issue
Some tasks from #265
Description of changes
A new helper function
getFuzzySingleEncoded
which randomly returns an encoded call for a single operation -- mint, increase, decrease, and burn.