Add protocol fees in the withdraw function #1034
Labels
effort: epic
Multi-stage task that may require multiple PRs.
priority: 1
This is important. It should be dealt with shortly.
type: feature
New feature or request.
work: complicated
Sense-analyze-respond. The relationship between cause and effect requires analysis or expertise.
Rationale
Make it possible to charge protocol fees at withdrawal time. See https://github.com/sablier-labs/company-discussions/discussions/72.
There are two big advantages for charging fees at withdrawal time compared to deposit:
Spec
Note: this is similar to the historical functionality that used to be available in v1.1.0 and below, however, for simplicity purposes, this newer spec does not include a Comptroller.
getProtocolFee
getter_protocolFees
mappingsetProtocolFee
setter gated by admin functionThe text was updated successfully, but these errors were encountered: