-
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
Allow partial bonds claim #642
Conversation
382649c
to
e81fe4e
Compare
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
src/base/Pool.sol
Outdated
function withdrawBonds(address recipient_) external { | ||
function withdrawBonds( | ||
address recipient_, | ||
uint256 amount_ |
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.
we can rename amount_
to maxAmount_
to be consistent with rest of the code.
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, will do
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.
changed with 7e5e546
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! Just added one comment
amount
param towithdrawBonds
function (The max amount to withdraw from auction bonds. Constrained by claimable amounts and liquidity)InsufficientLiquidity
BondWithdrawn
event containing owner address, recipient to receive amount address and amount