Standalone line of credit
See original GitHub issueWhat is the Problem Being Solved?
We need a way to generate RUN in the mainnet0 timeframe. Some accounts will have BLD, and no fees will be charged yet.
Description of the Design
- Tweak the existing
x/lienmodule to serve as the source-of-truth for liens.- Add compare-and-swap fields in
SetLienrequest.
- Add compare-and-swap fields in
- Add a command for taking a line of credit in RUN against BLD in one’s own account.
- Required collateralization rate specified in module parameters, modifiable by governance.
- Module must be able to mint RUN.
- Same command can repay the LoC, lifting the lien.
- Need to establish behavior when multiple LoCs are present with different collateralization rates.
- Switches over to JS-controlled LoC system in mainnet1
- Need to be able to disable standalone LoC creation
- JS needs to be able to initialize LoC state from existing standalone LoCs.
Security Considerations
Must ensure conservation of liened BLD vs RUN.
Test Plan
Unit tests.
Manual testing on testnet:
- cannot take nonzero LoC without BLD
- produced RUN is transferrable
- liened BLD is not
- can change collateralization ratio
- payoff works
Issue Analytics
- State:
- Created 2 years ago
- Comments:22 (21 by maintainers)
Top Results From Across the Web
Standalone Letter of Credit Facility Definition - Law Insider
Standalone Letter of Credit Facility means any bi-lateral letter of credit facility provided by a Lender or an Affiliate of a Lender for...
Read more >Offer Borrowers More Convenience And Flexibility With HELOC
Standalone HELOC. Independent of who originated the loan, this product offers current homeowners a simple way of tapping into their home's equity when...
Read more >Home Equity Line of Credit (HELOC) | Home Loans - U.S. Bank
A home equity line of credit, or HELOC, is a revolving credit line. It's secured by the equity you've built in your home...
Read more >Stand-Alone HELOC - Symmetry Lending
Since many borrowers already have a great rate on an existing first mortgage and strong equity in their home, this is a great...
Read more >What Is A Home Equity Line Of Credit (HELOC)? | Rocket HQ
Though Rocket Mortgage® doesn't offer HELOCs, home equity loans are offered. Here's a side-by-side comparison of both home loan options: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Draft interface:
Golang keeper API:
GetLoC()returns zero amounts if no LoC is present.The
SetLoC()call has several checks and effects:SetLoC()must match the current LoC state.The configuration will specify the size of loan that can be taken for one unit of collateral, specifying both denominations. In the expected case of a RUN LoC on BLD, this gives an amount of RUN per liened BLD, which should be more immediately legible than the inverse price of BLD.
Question: should we specialize the API to list loan and collateral to
sdk.Coin? This would simplify the configuration and the JSON messages.Check with @dtribble as to whether this is a change to mainnet 0 scope, or just a feature that didn’t get top billing.