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

Add protocol id disambiguator to AaveLinearPoolFactory #2115

Merged
merged 9 commits into from
Dec 7, 2022

Conversation

EndymionJkb
Copy link
Collaborator

Description

Multiple protocols use the AaveLinearPoolFactory to deploy pools (e.g., Beefy, Sturdy). Add a protocol identifier to protocol creation, and an event that emits it, so that off-chain tools can easily find AaveLinearPools associated with a given protocol.

For further convenience and transparency, there is a permissioned function to register protocol ids with associated names. (We do not require that a protocol id be registered in order to create a pool with it.)

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Dependency changes
  • Code refactor / cleanup
  • Documentation or wording changes
  • Other

Checklist:

  • The diff is legible and has no extraneous changes
  • Complex code has been commented, including external interfaces
  • Tests are included for all code paths
  • The base branch is either master, or there's a description of how to merge

Issue Resolution

Resolves #2104

Copy link
Contributor

@jubeira jubeira left a comment

Choose a reason for hiding this comment

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

Looks pretty good!
I've left a few comments / questions for my own understanding.

@EndymionJkb EndymionJkb requested a review from nventuro December 7, 2022 00:45
@EndymionJkb EndymionJkb merged commit 5329a2c into master Dec 7, 2022
@EndymionJkb EndymionJkb deleted the linear-protocol-id branch December 7, 2022 04:50
TomAFrench added a commit that referenced this pull request Dec 7, 2022
* master: (61 commits)
  Add protocol id disambiguator to AaveLinearPoolFactory (#2115)
  Add veBoostV2 deployment (#2112)
  feat: add EIP1271 support to boostv2 (#2084)
  feat: add infinite allowance for Balancer Vault (#2109)
  chore: rename BoostV2 to VeBoostV2 (#2116)
  Remove salt from veboost domain separator and expose version (#2085)
  Add totalSupply to VotingEscrowDelegationProxy (#2098)
  Deploy L2 Gauge Checkpointer (#2114)
  Nuke distributors package (#2111)
  Replace gauge manager with authorizer adaptor (#2108)
  Deployment preparation: L2 gauge checkpointer (#1601)
  Pull in base for new L2 gauges (#2102)
  Add NullVotingEscrow contract (#2105)
  chore: prevent src directory from being included in package (#2106)
  Remove unused controllers (#2100)
  Add BasePoolMath (#2097)
  Refactor flag getters / setters in managed pool contracts (#2096)
  Bump and pub interface package (#2094)
  Patch deployments package (#2095)
  Deployments v3.1 (#2092)
  ...
TomAFrench added a commit that referenced this pull request Dec 7, 2022
* master: (29 commits)
  test: always use abi encoder v2 in fuzz tests (#2121)
  Configurable pause window Preparation (#2118)
  Do deployment (#2117)
  Add missing managed factory ids (#2120)
  Add protocol id disambiguator to AaveLinearPoolFactory (#2115)
  Add veBoostV2 deployment (#2112)
  feat: add EIP1271 support to boostv2 (#2084)
  feat: add infinite allowance for Balancer Vault (#2109)
  chore: rename BoostV2 to VeBoostV2 (#2116)
  Remove salt from veboost domain separator and expose version (#2085)
  Add totalSupply to VotingEscrowDelegationProxy (#2098)
  Deploy L2 Gauge Checkpointer (#2114)
  Nuke distributors package (#2111)
  Replace gauge manager with authorizer adaptor (#2108)
  Deployment preparation: L2 gauge checkpointer (#1601)
  Pull in base for new L2 gauges (#2102)
  Add NullVotingEscrow contract (#2105)
  chore: prevent src directory from being included in package (#2106)
  Remove unused controllers (#2100)
  Add BasePoolMath (#2097)
  ...
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.

Linear Pool differentiation
4 participants