-
Notifications
You must be signed in to change notification settings - Fork 385
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
Managed Pool: BPT management fees #1163
Conversation
# Conflicts: # pkg/pool-weighted/contracts/smart/ManagedPool.sol
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 great! Let's get this merged so we can unblock all other PRs, given the massive size of this one.
We should later consider how we'll deal with join/exit swap fees, and evaluate improving the tests to have at least one scenario where we don't depend on a bunch of libraries to compute a result.
* master: (39 commits) Authorizer: Migration script (#1173) Managed Pool: BPT management fees (#1163) Improve token checkpointing logic (#1217) Prevent late lockers from having to claim many weeks of zero-value distributions (#1218) fix: make sure to use EVM time when calculating startTime (#1221) Add custom implementation of FeeDistributor contract (#1191) Authorizer: Improve grant/revoke delays granularity (#1197) Linear Pool: ERC4626 Finalized (#1177) Weighted pool: use correct compare operators (#1209) Re-do Polygon BalancerHelpers deployment Update deployments readme chore: deploy SmartWalletChecker to kovan (#1208) Add SmartWalletChecker (#1207) Update readme.md (#1206) veBAL deployment (#1205) Misc veBAL changes (#1204) chore: organise contracts in liquidity-mining package (#1203) Fix compile error Deploy Batch Relayer V2 to Polygon (#1182) Fix reading historical balances/total supply by timestamp (#1201) ...
This PR extends BPT protocol fee payment to ManagedPools: both protocol fees and management fees will be paid in BPT. Since the weights are not constant, this needs to be done on each swap, instead of joins/exits.