Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions predict-dot-loan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ In order for a new loan to be refinanced, the following conditions must be fulfi
1. The new loan offer must have an interest rate at least as good as the current loan's
2. The new loan offer's collateral amount required must not be higher than the current loan's

The old loan is being repaid with the new loan and the protocol can charge a fee on the loan amount. With each refinance,
the collateral ratio of the loan decreases as the loan amount increases. At some point it will no longer be possible to
refinance the loan because the collateral ratio will be below 100%.

```mermaid
sequenceDiagram
Lender/Borrower->>+PredictDotLoan: acceptBorrowRequest(borrowRequest, fulfillAmount)/acceptLoanOffer(loanOffer, fulfillAmount)
Expand All @@ -140,6 +144,9 @@ sequenceDiagram

### Bid on auctioned collateral

The old loan is being repaid with the new loan and the protocol can charge a fee on the loan amount.
If the collateral ratio is below 100%, the loan cannot be auctioned.

```mermaid
sequenceDiagram
Lender/Borrower->>+PredictDotLoan: acceptBorrowRequest(borrowRequest, fulfillAmount)/acceptLoanOffer(loanOffer, fulfillAmount)
Expand Down
5 changes: 4 additions & 1 deletion predict-dot-loan/contracts/BlastPredictDotLoan.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ contract BlastPredictDotLoan is BlastNativeYield, PredictDotLoan {
* @param _negRiskCtfExchange predict.fun neg risk CTF exchange
* @param _umaCtfAdapter Binary outcome UMA CTF adapter
* @param _negRiskUmaCtfAdapter Neg risk UMA CTF adapter
* @param _negRiskOperator Neg risk operator
* @param _addressFinder Address finder
* @param _owner Contract owner
*/
Expand All @@ -26,6 +27,7 @@ contract BlastPredictDotLoan is BlastNativeYield, PredictDotLoan {
address _negRiskCtfExchange,
address _umaCtfAdapter,
address _negRiskUmaCtfAdapter,
address _negRiskOperator,
address _addressFinder,
address _owner
)
Expand All @@ -36,7 +38,8 @@ contract BlastPredictDotLoan is BlastNativeYield, PredictDotLoan {
_ctfExchange,
_negRiskCtfExchange,
_umaCtfAdapter,
_negRiskUmaCtfAdapter
_negRiskUmaCtfAdapter,
_negRiskOperator
)
{}
}
193 changes: 142 additions & 51 deletions predict-dot-loan/contracts/PredictDotLoan.sol

Large diffs are not rendered by default.

Loading