Title: [TEMP CHECK] A Union Safety Module.
Date: 2024-05-17
Motivation
The primary risk to users of defi protocols like Union is smart contract risk: Risk of a bug, design flaw or potential attack surfacing on the smart contract layer which could lead to loss of funds.
A safety module is a dedicated pool of funds reserved to pay out in the event of such an unexpected loss of funds. The largest and most well known safety module being the one operated by AAVE.
Specification
Cozy Finance, an insurance markets protocol, has recently developed a saftey module product(you can read about it here: https://csm-docs.cozy.finance/). And has made it available for Union DAO.
We propose the creation of a Union Safety Module that anyone can interact with and help secure the protocol by locking an Asset (80:20 UNION-wstETH BPT in this case) into the Safety Module contract.
Proposed Initial Config
- Staking Asset : 80Union-20wstETH Balancer Pool Token - 0x3a2819b07981234f825e952f32cf977db5edbf7c
- Shortfall event determined by governance vote: specifically the Union DAO Timelock: 0xBBD3321f377742c4b3fe458b270c2F271d3294D8
- Cooldown: 2 week(14day) cooldown to unstake
- Slashing per Event: 30%
- Reward Rate: 2500 UNION per day
UIP DRAFT: UIP15: Union Safety Module by maxweng · Pull Request #24 · unioncredit/UIPs · GitHub
Repos
- https://github.com/Cozy-Finance/cozy-safety-module is the core SM protocol
- https://github.com/Cozy-Finance/cozy-safety-module-rewards-manager is for the staking contract (users deposit into a safety module, receiving receipt tokens which they can stake into a rewards manager)
- https://github.com/Cozy-Finance/cozy-safety-module-triggers are the trigger contracts
- https://github.com/Cozy-Finance/cozy-safety-module-models for the drip model contracts which are used for specifying drip rate of rewards
FAQ (drop any questions below)
- Who handles payouts? UNION governance
- What if there’s insufficient funds? up to governance,
- What if someone defaults on me, is that covered? no, thats not a smart contract hack, that’s how credit works.
- Will I be able to vote my UNION if they’re staked in the Safety Module? No, the dao would need to upgrade it’s governor to support that.
Next Steps:
- If there’s no objections this will progress to a full proposal in 3 days, and then another 2 days of review before being put up for vote.