-
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
Pool maintanence #663
Pool maintanence #663
Conversation
Reorg interface functions and events based on their action
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.
Just a comment regarding a comment.
/** | ||
* @notice Called by lenders to update pool interest rate (can be updated only once in a 12 hours period of time). | ||
*/ | ||
function updateInterest() external; |
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 why this belongs in lender actions. Lender is incentivized to call when rate would go up, borrower is incentivized to call when rate would go down. Understand it needs to live somewhere. Maybe just update comment to remove by lenders
?
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.
yep, renamed to by actors
with 2512e5d (ideally we would have a separate InterestRate interface)
* @param owner LPs owner. | ||
* @param spender Address approved to transfer LPs. | ||
* @param indexes Bucket indexes of LPs approved. | ||
* @param amounts LP amounts added (ordered by approved indexes). |
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.
Here it should be 'LP amounts removed'
* @dev Intended for use by the PositionManager contract. | ||
* @param spender The new owner of the LPs. | ||
* @param indexes Bucket indexes from where LPs are transferred. | ||
* @param amounts The amounts of LPs approved to transfer. |
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.
Similarly 'disapproved' here
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.
updated in 70fc3b7
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.
Looks ok
* @dev write state: | ||
* - increment LPs allowances | ||
* @dev emit events: | ||
* - SetLPsAllowance |
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.
'IncreaseLPsAllowance' here
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.
yep, updated in c9fcfdc
* @dev write state: | ||
* - decrement LPs allowances | ||
* @dev emit events: | ||
* - SetLPsAllowance |
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.
'DecreaseLPsAllowance' here
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.
updated in c9fcfdc
* @dev write state: | ||
* - decrement LPs allowances | ||
* @dev emit events: | ||
* - SetLPsAllowance |
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.
'RevokeLPsAllowance'
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.
updated in c9fcfdc
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.
Looks ok
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
contract size before change
after change