-
Notifications
You must be signed in to change notification settings - Fork 11
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 RewardsManager.sol
#1041
Conversation
@@ -47,4 +57,87 @@ contract ERC20PoolPositionHandler is PositionPoolHandler, BaseERC20PoolHandler { | |||
_quote = TokenWithNDecimals(_pool.quoteTokenAddress()); | |||
_collateral = TokenWithNDecimals(_pool.collateralAddress()); | |||
} | |||
|
|||
function lenderKickAuction( |
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.
Do we still need access to lenderKick
and takeOrSettle
in position if we're no longer handling rewards?
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.
Unsure. We have regression tests which were using these with no staked liquidity. Want to ensure we don't eliminate any PositionManager
invariant coverage.
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.
I don't think lenderKick()
and takeOrSettle()
are necessary. They were originally added to check invariants against rewards manager. See the original PR here -> ac303b8
…s into remove-rewards-mgr
…reciated tests (#1043) Co-authored-by: Ian Harvey <iharvey@comcast.net>
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.
LGTM
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.
Commit 9fd555c removes ERC20PoolPositionHandler
and regression tests, which I spent substantial effort making operational.
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.
I prefer to be consistent in naming, that is rename Positions
directories in tests to PositionManager
(to match ERC20Pool
and ERC721Pool
namings)
Apologies @EdNoepel , didn't take the time to review "why" you made the changes. Your changes successfully resolved |
Resolved -> 3a63048 |
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.
LGTM; much thanks.
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.
LGTM
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.
Ok
Description
RewardsManager.sol
and all respective testsPurpose
During our Sherlock and Kiril audits there was a bug discovered in
RewardsManager.sol
. Although we had previously agreed not to deploy the contract prior to the audit, having a implementation example with a bug is a bad idea. We opted to removeRewardsManager.sol
all together in the event someone used it.Impact
Tasks