OriginProtocol / OriginProtocol/origin-dollar
Integrated Mint and Insure
Nobody has claimed this yet.
- Dominant language
- Solidity
- Stars
- 152
- Forks
- 115
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 17
Description
As suggested by JesseDS#3625 in Discord:
It would be slick for Origin to have a checkbox “buy insurance” when you minted OUSD and then sell the user the right amount of cover tokens (or whatever protocol we end up using) from their own supply.
Some considerations:
- We're launching with optional insurance as a separate transaction that is done through a different DApp (not ours). Adding it to ours would require engineering work to call the provider's contract.
- If we were to combine the two steps into a single action in our DApp, it would either have to be two blockchain transactions or we would have to write a new contract method "mint and insure" that calls both contracts and reverts the mint if the coverage fails.
- Insurance may be offered through more than one provider, so it's not necessarily a binary decision for the user. We wouldn't want to choose the provider on their behalf and don't want to become the provider ourselves.
- Coverage is not perpetual, it comes with a term. So the user would need to understand that the minted OUSD will only be insured for a certain period of time. It would also make sense for the user to choose this time period, which further complicates the interface.
- Insurance is not tied to any particular OUSD. There aren't two different classes of OUSD (insured vs. uninsured). Since it's an independent transaction, one does not have to hold OUSD to buy coverage for it. We might want to keep these concepts separate to make this clear.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by reviewing the existing mint flow and the boundary between the DApp and potential insurance-provider contracts, then clarify provider choice, coverage terms, transaction behavior, and whether the work belongs in this project. Done would require an agreed design and implementation scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100