Skip to content
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

feat: return withdrawn amount and protocol fee #304

Merged
merged 4 commits into from
Oct 14, 2024
Merged

Conversation

smol-ninja
Copy link
Member

Changelog

#275 is a pre-requisite to achieve #301 in order to avoid stack too deep errors in tests.

refactor: explicitness with protocolFeeAmount

Co-authored-by: Paul Razvan Berg <[email protected]>
@smol-ninja smol-ninja force-pushed the feat/return-withdraw branch 3 times, most recently from 00ca306 to 231c76a Compare October 14, 2024 10:37
@PaulRBerg PaulRBerg changed the title feat: return amountWithdrawn and feeTaken in withdraw feat: return withdrawn amount and protocol fee Oct 14, 2024
Copy link
Member

@PaulRBerg PaulRBerg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now

Copy link
Member

@andreivladbrg andreivladbrg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally LGTM 👍

why don't we declare the Vars struct only in Base_Test, similarly to Users, so that we don't have to import it on each file it is needed?

src/interfaces/ISablierFlow.sol Show resolved Hide resolved
docs: polish natspecs for withdraw and withdrawMax

Co-authored-by: Andrei Vlad Birgaoanu <[email protected]>
@smol-ninja smol-ninja merged commit 04f3ed6 into main Oct 14, 2024
7 checks passed
@smol-ninja smol-ninja deleted the feat/return-withdraw branch October 14, 2024 13:34
andreivladbrg added a commit that referenced this pull request Oct 15, 2024
* feat: return amountWithdrawn and feeTaken in withdraw
test: DRY'ify Vars struct

* refactor: follow somethingSomethingAmount pattern for variables naming
refactor: explicitness with protocolFeeAmount

Co-authored-by: Paul Razvan Berg <[email protected]>

* test: declare vars in Base contract
docs: polish natspecs for withdraw and withdrawMax

Co-authored-by: Andrei Vlad Birgaoanu <[email protected]>

* merge conflict

---------

Co-authored-by: Paul Razvan Berg <[email protected]>
Co-authored-by: Andrei Vlad Birgaoanu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return withdrawn amount and protocol fee in withdraw functions DRY'ify Vars struct
3 participants