Stake mBPT in mStable's Staked Token BPT (stkBPT) into Balancer's new mBPT Gauge
naddison36 opened this issue · 7 comments
This is the implementation of RPF Stake BPT staked in mStable into Balancer Staking contracts on the mStable Forum.
Details are documented in MCCP 21.
The PR for this change is #350
The governance vote is https://snapshot.org/#/mstablegovernance.eth/proposal/0x18331093de8b4a50ba41374c3d7fa1b6832057c0d14d0b86d05cd42fa1b63f20
Deployment plan:
- Deploy new
StakedTokenBPT
contract using theStakedToken.deploy
hardhat task - Propose proxy upgrade of
StakedTokenBPT
to newly deployed contract withdata
calling theinitialize
function.- Raise Protocol DAO tx
- Execute tx after 4 sigs
- Execute fork tests against the proposed upgrade
- Request Etherscan tag for new contract
Tuesday, 10 May
- Claim remaining BAL using old mechanism
- Approve proposed proxy upgrade
- Raise Protocol DAO tx
- Execute tx after 4 sigs
- Execute fork tests
- Merge PR #350
- Release a new version of the contracts
- git tag
- Github Release https://github.com/mstable/mStable-contracts/releases
- Publish to npm @mstable/protocol
- Protocol DAO call
StakedTokenBPT.setBalRecipient
- Request Dune Analytics decode of upgraded
StakedTokenBPT
- Import ABI to the Ethereum Signature Database https://www.4byte.directory/import-abi/
- Update developer docs
- Add Balancer mBPT Gauge to contract diagram https://developers.mstable.org/
- Update
stkBPT
ABI https://developers.mstable.org/contracts/governance/stkbpt
New StabkedTokenBPT
implementation deployed to 0xc63a48d85CCE7C3bD4d18db9c0972a4D223e4193
New Mainnet tx https://gnosis-safe.io/app/eth:0xF6FF1F7FCEB2cE6d26687EaaB5988b445d0b94a2/transactions/queue
312. Propose upgraded of StakedTokenBPT proxy to use Balancer's new mBPT Guage
Proposed proxy upgrade was done in https://etherscan.io/tx/0xa87fc987a4489a9dbab97f3b06ac522a2f804c6ff6341e4f034f05bdd366b0f4
at 2-May-2022 10:49:27 PM +UTC
The acceptance of the upgrade can be done from Tuesday, 10 May.
New mainnet tx https://gnosis-safe.io/app/eth:0xF6FF1F7FCEB2cE6d26687EaaB5988b445d0b94a2/transactions/queue
319. Accept upgrade of StakedTokenBPT proxy so mBPT can be added to Balancer's new gauge contract and rewards collected
I tested in a fork test that there is no more BAL to claim from the old StakedTokenBPT
implementation
The proxy has been upgraded
- tx https://etherscan.io/tx/0xd3d9b10c763b7a65f73e9b8c843ef7a084083b685a633b394f4fcd5e15aa190d
- 790,423 mBPT transferred to the gauge
- StakedTokenBPT now holds 70% of Balancer's mBPT gauge https://etherscan.io/token/0xbec2d02008dc64a6ad519471048cf3d3af5ca0c5#balances