Skip to content

FIP-92: Vote-locking BAL#634

Merged
Joeysantoro merged 17 commits intodevelopfrom
feat/vebal
Apr 20, 2022
Merged

FIP-92: Vote-locking BAL#634
Joeysantoro merged 17 commits intodevelopfrom
feat/vebal

Conversation

@eswak
Copy link
Contributor

@eswak eswak commented Apr 1, 2022

This pull-request contains several changes:

  • Add a new VeBalDelegatorPCVDeposit contract
    • can vote-lock B-80BAL-20WETH into "veBAL"
    • can stake BPTs in gauges
    • can delegate snapshot voting power to an EoA
  • Rename GaugeLens to AngleGaugeLens. The Angle gauges use a staking_token variable, but the original Curve gauges (and therefore, the Balancer gauges) use a lp_token variable. Conversely, a CurveGaugeLens contract was added (reading the lp_token variable, where AngleGaugeLens reads the staking_token variable)
  • Add a new BalancerPool2Lens contract. The BPTLens contract reads the whole balance of tokens inside of a Balancer pool. The BalancerPool2Lens reads a PCVDeposit who reports its balance in BPT, and return the balance of underlying tokens.
  • FIP-92 script
    • Move all B-80BAL-20WETH (~4M$) and vote-lock to veBAL
    • Vote 100% for B-30FEI-70WETH gauge
    • Move all B-30FEI-70WETH tokens (~65M$) & stake them in gauge
    • Whitelist 3 PCVDeposits as safe addresses (the new vote-locker, and 2 existing PCVDeposits that deposit/withdraw from B-30FEI-70WETH and B-80BAL-20WETH)

@eswak
Copy link
Contributor Author

eswak commented Apr 4, 2022

Architecture of the lenses and how the balances are reported to the CR oracle :

image

(I'm never doing a paint chart ever again, lucidchart & drawio ftw)

@eswak eswak marked this pull request as ready for review April 4, 2022 10:13
@eswak eswak requested a review from a team as a code owner April 4, 2022 10:13
@eswak
Copy link
Contributor Author

eswak commented Apr 4, 2022

Removing draft status. I'm happy with the PR as it is. After a review on the Solidity side, we can deploy the veBalDelegatorPCVDeposit. The Balancer DAO has to pass a snapshot vote to whitelist the Tribe DAO to vote-lock BAL into veBAL.

@eswak eswak changed the title Add VeBalDelegatorPCVDeposit FIP-92: Vote-locking BAL Apr 4, 2022

/// @title 80-BAL-20-WETH BPT PCV Deposit
/// @author Fei Protocol
contract VeBalDelegatorPCVDeposit is
Copy link
Contributor

Choose a reason for hiding this comment

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

should this include governor bravo compatibility? Vote escrow is a hard action to undo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can add OZGovernor capability (that have a contract ready & tested), but when I asked Kia he said that Balancer does everything with snapshot + multisigs, no governor

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you follow up and make sure they have no intentions of putting anything on-chain?

Copy link
Contributor

Choose a reason for hiding this comment

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

including for example a nope-dao?

@eswak eswak linked an issue Apr 13, 2022 that may be closed by this pull request
@Joeysantoro Joeysantoro reopened this Apr 20, 2022
@Joeysantoro Joeysantoro merged commit 36916ee into develop Apr 20, 2022
@Joeysantoro Joeysantoro deleted the feat/vebal branch April 20, 2022 16:46
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.

FIP-92: veBAL

2 participants

Comments