# \[BIP-323\] Authorize Mimic Smart Vaults on Optimism & Polygon

**URL:** <https://forum.balancer.fi/t/bip-323-authorize-mimic-smart-vaults-on-optimism-polygon/4857>\
**Category:** General Proposal\
**Created:** [June 9, 2023, 6:21pm UTC](https://forum.balancer.fi/t/bip-323-authorize-mimic-smart-vaults-on-optimism-polygon/4857 "2023-06-09T18:21:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![solarcurve](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.balancer.fi/solarcurve/32/1487_2.png) [@solarcurve](https://forum.balancer.fi/u/solarcurve)\
**Post date:** [June 9, 2023, 6:21pm UTC](https://forum.balancer.fi/t/bip-323-authorize-mimic-smart-vaults-on-optimism-polygon/4857/1 "2023-06-09T18:21:21Z")

</div>

> <https://github.com/BalancerMaxis/multisig-ops/pull/255>

### Motivation

After BIP-115 passed late last year work began to create Mimic smart vaults that automatically collect protocol fees, sell for USDC, then bridge it back to Ethereum if necessary. The Maxis have recently conducted several tests in collaboration with Mimic and the Arbitrum smart vault is already fully operational after [BIP-294](https://forum.balancer.fi/t/bip-294-authorize-mimic-smart-vault-on-arbitrum/4779).

Tests have been completed in the Polygon and Optimism smart vaults. Both the Maxis and Mimic have high confidence all is working as expected. In case an issue arises the role for allowing the smart vault to call `withdrawCollectedFees` on the `ProtocolFeeWithdrawer` can be revoked with a future BIP.

### Risks

Assigning access to the fee collector gives the contracts assigned access to sweep all fees from the collector. In the very worst case, the fee collector could stop functioning correctly/start leaking funds.

Manual work is required in the process every 2 weeks to process veBAL fees and core pool bribes. In the event that there was a significant leak of value from the fee collector, It could take up to 2 weeks to notice, and then up to an additional week to enact governance to revoke rights to the fee collector.

As a result, there is some risk that up to 3 weeks of protocol fees could be lost.

Here is a link to [Mimics audits](https://docs.mimic.fi/miscellaneous/security)

### Specification

> **Polygon**
>
> The DAO Multisig on Polygon `matic:0xeE071f4B516F69a1603dA393CdE8e76C40E5Be85` will interact with the Authorizer `0xA331D84eC860Bf466b4CdCcFb4aC09a1B43F3aE6` and call `grantRole` with the following arguments:
> 
> role: `0x25995e0bfb9b837ed9e3ed24df7d42689be47c45073cc1953bb0836b292faa13`
> 
> which corresponds to the role for calling `withdrawCollectedFees` on the `ProtocolFeeWithdrawer` on Polygon, verifiable [here](https://github.com/balancer/balancer-deployments/blob/master/action-ids/polygon/action-ids.json#LL295C64-L295C130).
> 
> account: `0x94Dd9C6152a2A0BBcB52d3297b723A6F01D5F9f7`
> 
> which is the contract address for the Mimic smart vault on Polygon.

> **Optimism**
>
> The DAO Multisig on Optimism `oeth:0x043f9687842771b3dF8852c1E9801DCAeED3f6bc` will interact with the Authorizer `0xA331D84eC860Bf466b4CdCcFb4aC09a1B43F3aE6` and call `grantRole` with the following arguments:
> 
> role: `0x5a57bdde85c7a823e064d8cdc9a9a1b617f739068ec8925eaf6a562aa22513c6`
> 
> which corresponds to the role for calling `withdrawCollectedFees` on the `ProtocolFeeWithdrawer` on Optimism, verifiable [here](https://github.com/balancer/balancer-deployments/blob/master/action-ids/optimism/action-ids.json#LL160C64-L160C130).
> 
> account: `0x94Dd9C6152a2A0BBcB52d3297b723A6F01D5F9f7`
> 
> which is the contract address for the Mimic smart vault on Polygon.

---

<div class="post-metadata">

**Author:** ![Xeonus](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.balancer.fi/xeonus/32/3621_2.png) [@Xeonus](https://forum.balancer.fi/u/Xeonus)\
**Post date:** [June 14, 2023, 7:05pm UTC](https://forum.balancer.fi/t/bip-323-authorize-mimic-smart-vaults-on-optimism-polygon/4857/2 "2023-06-14T19:05:24Z")

</div>

[https://snapshot.org/#/balancer.eth/proposal/0xa0bfc9d0f19a420ced9bffd69c93acb1b3b8fea6f6b9590574ca0b48cbca4cd0](https://snapshot.org/#/balancer.eth/proposal/0xa0bfc9d0f19a420ced9bffd69c93acb1b3b8fea6f6b9590574ca0b48cbca4cd0)
