0xcbd1c32a…beebsent to0xe1b3f07a…0f6e·#20,131,355·view on Etherscan
UIP-015: Union Safety Module
# Abstract
Deploy the Cozy Safety Module for UNION.
# Specification
- Deploying the Union Safety Module requires 3 steps
1. Deploying the governance-controlled trigger contract
1. Deploying the Safety Module
1. Update the Safety Module metadata
- Deploy the Union Rewards Manager requires 2 steps
1. Deploying the rewards dripping model
1. Deploying the rewards manager
# Test Cases
Tests and simulations can be found [here](https://github.com/unioncredit/UIPs/pull/24)
# Implementation
- Deploy the governance-controlled trigger contract by calling CozyRouter.deployOwnableTrigger(address,(string,string,string,string),bytes32)
- Deploy the Safety Module by calling CozyRouter.deploySafetyModule(address,address,((uint256,address)[],(address,address,bool)[],(uint64,uint64,uint64)),bytes32)
- Update the Safety Module metadata by calling CozyRouter.updateSafetyModuleMetadata(address,address,(string,string,string,string))
- Deploy the Drip Model for the Rewards Manager by calling CozyRouter.deployDripModelConstant(address,uint256,bytes32)
- Deploy the Rewards Manager by calling CozyRouter.deployRewardsManager(address,address,(address,uint16)[],(address,address)[],bytes32)