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

Managed Pool: BPT management fees #1163

Merged
merged 80 commits into from
Apr 6, 2022
Merged

Managed Pool: BPT management fees #1163

merged 80 commits into from
Apr 6, 2022

Conversation

EndymionJkb
Copy link
Collaborator

@EndymionJkb EndymionJkb commented Mar 13, 2022

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.

nventuro and others added 30 commits January 27, 2022 11:20
pkg/pool-weighted/contracts/smart/ManagedPool.sol Outdated Show resolved Hide resolved
pkg/pool-weighted/contracts/smart/ManagedPool.sol Outdated Show resolved Hide resolved
pkg/pool-weighted/contracts/smart/ManagedPool.sol Outdated Show resolved Hide resolved
pkg/pool-weighted/test/ManagedPool.test.ts Show resolved Hide resolved
pkg/pool-weighted/test/ManagedPool.test.ts Outdated Show resolved Hide resolved
@EndymionJkb EndymionJkb requested a review from nventuro April 4, 2022 23:11
Copy link
Contributor

@nventuro nventuro left a 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.

@nventuro nventuro merged commit 03723c3 into master Apr 6, 2022
@nventuro nventuro deleted the bpt-mgmt-fee branch April 6, 2022 19:30
TomAFrench added a commit that referenced this pull request Apr 7, 2022
* 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)
  ...
TomAFrench added a commit that referenced this pull request Apr 7, 2022
* master:
  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)
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.

4 participants