PSP-IPΔX: Implementing Mimic Smart Vaults for Fee Collection and Conversion
Keywords
PSP 2.0, Fee Sharing, Automation
Simple Summary
Mimic is a platform for DeFi automation. By deploying custom Smart Vaults, it can transform centralized manual work into trustless automated actions.
Recently, members of the ParaSwap DAO have proposed to implement a Fee Redistribution mechanism as part of their PSP 2.0 proposal, in which assets accrued as fees would be converted to a native chain token (eg. ETH), and then distributed between stakers and the DAO treasury.
In the current version of the proposal, there is no automated solution for this mechanism. We propose that Mimic Smart Vaults could be used to automatically convert accrued assets into the desired token. Mimic Smart Vault could be deployed in each different layer ParaSwap is in to automate how ParaSwap collects, converts and distributes its protocol fees.
Context: About Mimic
Mimic is a platform that allows you to deploy tailored infrastructure to automate (and/or delegate) access to DeFi, in a secure and 100% non-custodial way. Mimic is especially suitable to replace and speed up manual and centralized tasks while tracking and monitoring every detail. This is achieved through our innovative Smart Vaults concept: an automated and trustless solution that can be customized to suit your operation needs.
Deploying a Smart Vault is simple. We only need to figure out the best configuration that suits your needs and customize one for you. Moreover, Mimic provides you with lots of multi-layer flexibility, it can be easily scaled up by deploying and connecting additional Smart Vaults.
Our team members have a large experience in blockchain and especially in DeFi protocols. We have previously worked on many well-known projects like Aave, Balancer, Open Zeppelin, Aragon, POAP, and The Graph.
Goals
Currently, ParaSwap DAO collects protocol fees in seven layers: Ethereum Mainnet, Binance Smart Chain, Avalanche, Polygon, Fantom, Arbitrum and Optimism.
Assuming that the ParaSwap DAO decides to implement the fee redistribution system proposed in PSP 2.0, We propose to provide ParaSwap DAO with a solution to automate how it collects and distributes its protocol fees to assist with the implementation of this system. To accomplish this, Mimic will deploy customized Smart Vaults owned by ParaSwap DAO, one on each layer.
All Smart Vaults will only be allowed to collect earned fees when each token reaches a pre-determined value in USDC. Collected PSP and wrapped native chain token will not be converted. Collected chain token will be wrapped All other tokens will be converted to wrapped native chain token. Finally, once a month, those collected tokens will be automatically withdrawn from Mainnet Smart Vault to a ParaSwap smart contract to distribute back to their token holders.
Also, it is essential to mention that at all times, the DAO has full ownership and control of all Smart Vault’s assets. This means that, for example, at any moment, it can remove permissions to execute an action or withdraw any asset by itself.
Means
There will be seven Smart Vaults - one per layer: Ethereum Mainnet, Binance Smart Chain, Avalanche, Polygon, Fantom, Arbitrum, and Optimism. All Smart Vaults will have a single owner who has full control over them at all times.
Each Smart Vault will be configured with a series of predefined actions. Some of which will be automatically executed by Mimic network of bots and others manually by an authorized manager that ParaSwap DAO designates. Those actions are:
- Gather and swap: Gathers assets (except from WETH and ETH) from ParaSwap Fee Claimer and swaps them to WETH (except from PSP).
- Gather and wrap: Gathers WETH or ETH from ParaSwap Fee Claimer and if ETH, wraps it into WETH.
- Withdraw monthly: Withdraws WETH to a ParaSwap smart contract.
- Withdraw: Withdraws any asset to an external wallet configured by the owner.
Note that all this behavior will be enforced by smart contracts code. Actions won’t be allowed to perform any other logic (More information here: https://docs.mimic.fi/general/how-it-works)
In case external conditions change, the deployed infrastructure can be adjusted as necessary on an ongoing basis to reach the endowment’s objectives. Smart Vaults provide full flexibility to add new allow-listed actions, change permissions or incorporate new strategies.
Following the current implementation of PSP 2.0, all smart vaults could initially gather and swap into WETH, and the assets could be bridged to Mainnet for redistribution. If the DAO proposes to implement staking on any of these chains in the future, the parameters of these vaults could also be changed if needed.
Metrics: Operational Details
1. Reporting
Mimic offers a reporting site where users can follow all their Smart Vaults activity. Mimic also supports subscribing to a notifications service that can be easily integrated with some chat rooms like Discord. Additionally, users can subscribe to be notified with periodic reports that will be emitted by Mimic automatically.
2. Maintenance
Mimic will be in charge of monitoring the Smart Vaults daily, making sure the reporting tools are kept up-to-date accordingly. Additionally, Mimic will use its own bots infrastructure to execute the automated actions when needed.
If a critical report is received, Mimic will act immediately to assess its severity and act accordingly. In case Smart Vaults assets are at risk, the Mimic team will get in touch with the trusted committee to pause the Smart Vaults operations until it can be migrated to a new implementation with the corresponding fixes.
3. Fees
Mimic will charge a 2% fee for the assets processed through the Smart Vaults with a 5K USD monthly cap. Fees will start at 0% and increase by 0.5% every three months to reach 2% after a year of execution.
3. a. Test Period
The first six epochs of the Mimic implementation will be considered a pilot period to assess the effectiveness of the solutions implemented. After that, fees will increase by 0.5% every three months to reach 2% (always with a monthly cap).
4. Termination
As mentioned before, ParaSwap DAO will fully control its Smart Vaults and the funds deposited into them. This means ParaSwap DAO is allowed to exit at any point in time. Neither Mimic nor anyone else, unless it was previously allowed by the ParaSwap DAO, will never be in control of those funds.
4. Audit
Initially, Mimic Smart Contracts have been all privately audited. They were recently audited by Verilog and no critical issues were found. Currently, they are being audited by Certora. More information and full reports here: https://docs.mimic.fi/miscellaneous/security
Implementation Overview
Once the final details of the ParaSwap Smart Vaults are finalized, the Mimic team will take full responsibility for setting up the required automated actions. Mimic already counts with infrastructure to deploy and test Smart Vaults that can be applied for this use case.
Assuming the proposed investment strategies and automated actions are accepted by ParaSwap DAO, setting seven Smart Vaults for it shouldn’t take longer than a month. After that, we will schedule an audit process just for the configuration before the deployment which shouldn’t take more than one week.
Contact
Website — mimic.fi
Docs — docs.mimic.fi
Whitepaper — mimic.fi/whitepaper
Twitter — twitter.com/mimicfi
Discord — discord.mimic.fi
Medium — medium.com/mimicfi
Voting Options
- For
- Against
- Abstain
Annex I - Actions
Number | Name | Description | Executed by |
---|---|---|---|
#1 | Gather and swap | Gathers assets (except from WETH and ETH) from ParaSwap Fee Claimer and swaps them to WETH (except from PSP) | Mimic bot |
#2 | Gather and wrap | Gathers WETH or ETH from ParaSwap Fee Claimer and if ETH, wraps it into WETH | Mimic bot |
#3 | Withdraw monthly | Withdraws WETH to an external wallet configured by the owner. | Mimic bot |
#4 | Withdraw | Withdraws any asset to an external wallet configured by the owner. | Manager |
Action #1 - “Gather and swap”
Overview
Description | Gathers assets (expect from WETH and ETH) from ParaSwap Fee Claimer and swaps them to WETH (except from PSP) |
---|---|
Automatic execution | Yes. By Mimic bot when assets on Fee Claimer that are not ETH or WETH are over a minimal amount. |
Manual execution | Yes. By Manager. |
Authorization | - |
Timelock | - |
Primitives
Primitive | Param | Limits | Configured by | Conf. timelock |
---|---|---|---|---|
Generic | Contract | Fee Claimer | - | - |
Function | withdrawSomeERC20 | - | ||
Assets | Any asset but ETH or WETH | - | - | |
Amount | Min 500 USDC (mainnet) | |||
Min 200 USDC (other chains/layers) | Owner | - | ||
Swap | Instrument | ParaSwap | - | - |
Token In | Any asset but PSP | Owner | - | |
Token Out | WETH | - | - | |
AmountIn | Any amount | - | - | |
MinAmount | Signature protected | - | - |
Action #2 - “Gather and wrap”
Overview
Description | Gathers ETH or WETH from ParaSwap Fee Claimer. If ETH, it wraps all into WETH. |
---|---|
Automatic execution | Yes. By Mimic bot when ETH or WETH on Fee Claimer are over a minimal amount. |
Manual execution | Yes. By Manager. |
Authorization | - |
Timelock | - |
Primitives
Primitive | Param | Limits | Configured by | Conf. timelock |
---|---|---|---|---|
Generic | Contract | Fee Claimer | - | - |
Function | withdrawSomeERC20 | - | ||
Assets | ETH or WETH | - | - | |
Amount | Min 500 USDC (mainnet) | |||
Min 200 USDC (other chains/layers) | Owner | - | ||
Wrap | Amount | Any amount | - | - |
Action #3 - “Withdraw monthly”
Overview
Description | Withdraws WETH to an external wallet configured by the owner. |
---|---|
Automatic execution | Yes. By Mimic bot once a month. |
Manual execution | No |
Authorization | - |
Timelock | - |
Gas price | TBD |
Gas amount | TBD |
Gas configuration | Owner |
Primitives
Primitive | Param | Limits | Configured by | Conf. timelock |
---|---|---|---|---|
Withdraw | Recipient | Paraswap Smart Contract to distribute tokens | Owner | - |
Asset | WETH | - | - | |
Amount | All | - | - |
Action #4 - “Withdraw”
Overview
Description | Withdraws any asset to an external wallet configured by the owner. |
---|---|
Automatic execution | No |
Manual execution | Yes. By Manager. |
Authorization | - |
Timelock | - |
Primitives
Primitive | Param | Limits | Configured by | Conf. timelock |
---|---|---|---|---|
Withdraw | Recipient | Recipient addresses | Owner | - |
Asset | Any | - | - | |
Amount | Any | - | - |