In this acticle
Dedicated to assemble capital (in form of ERC20 tokens) and use it for backing protections. The system makes money from selling protections and it’s revenue comes from distributing matured protections premiums.
UnionSCPool inherits UnionERC20Pool and introduces SC-P specific features like:
ppID
- a smart contract protocol identiier (1 pool instance to back 1 protocol protections)- pool locking for deposit/withdraw when a Claim for protections payout is filled for the referenced protocol
- Protections payouts feature based on a Claim status.
Storage or all Smart Contract (SC) protections issued by UnionProtocol. Is referenced by uUNNToken. This contracts provides the following features for users:
- Selling of the SC Protections (create & createTo functions) - creates and sells SCProtection.
- Exercises SCProtections - when Claim is Approved.
- Provides an interface for keeping accompanied documentation for SCProtections.
- Implements Pausable feature
- Implements ACL.
Storage and operational contract for Smart Contract protection Claims. Claim can be filled by anyone who thinks that a protocol is hacked (for example) by invoking fillClaim
function and paying a claiming fee. This trigers a start of a Claim lifecycle workflow that may lead in Approved or Rejected state. If Approved, then all relevant protections backed by the protocol-dedicated UnionSCPool can be exercised. Rejected state gives no opportunity to exercise protection, but this state could be challenged and then result in either Approved or AppealRejected state. Approved state allows for exercising protections, AppealRejected is a terminal state and doesn't allow for any further actions.