yearn / yearn-protocol

Yearn smart contracts
https://yearn.finance
GNU Affero General Public License v3.0
441 stars 212 forks source link

Add gauge weight voter strategy #64

Closed banteg closed 3 years ago

banteg commented 3 years ago

This hooks into StrategyProxy and allows voting for Curve Gauge weight allocations.

A script to determine optimal allocations: https://gist.github.com/banteg/546720079b63dd44ff149f2dfe4b9c34

Rationale: vote method in StrategyProxy is only callable by connected strategies, so this is a safe and secure way to isolate the voting.

Adding voting in Curve DAO (0xE478de485ad2fe566d49342Cbd03E49ed7DB3356.vote(uint256,bool,bool)) might be tricky since StrategyProxy doesn't expose a method to vote there.

banteg commented 3 years ago

I think we can close this without merging, since we now have scripts for most of the Curve DAO interactions in chief-multisig-officer.