The current loan's utxo.
The amount to increase the collateral.
The private key of the current loan.
A set of spendable coins to fund the refinance procedure.
A list of payout rules.
add collateral tx result
Get musd & oracle token id.
Liquidate an under-water (collateral < 110%) loan. With MUSD tokens equivalent to the loan amount. The payout is the loan's collateral + the remainder of MUSD tokens if more MUSD is provided in inputs.
The moria's utxo.
The oracle's utxo.
The current loan's utxo.
A set of spendable coins to fund the refinance procedure.
A list of payout rules. The payout rules is expected to not have more than two outputs.
A tx that pays out the collateral in exchange for MUSD
Mint a new loan. The collateral amount is taken from input_coins and the remaining - fees is in the payouts.
The moria's utxo.
The oracle's utxo.
A set of spendable coins to fund the loan's collateral + fees
The amount of MUSD to mint.
The collateral amount (sats)
borrower's public key's hash160, the pkh's format is equivalent to pkh used in p2pkh
A list of payout rules. The payout rules is expected to not have more than two outputs.
The mint tx result.
Redeem MUSD tokens equivalent to the loan amount with a BCH payout, The payout includes the remainder of MUSD tokens if more MUSD is provided in inputs.
The moria's utxo.
The oracle's utxo.
The current loan's utxo.
A unique sig which will be revealed on the blockchain once the sunset event occurs.
A set of spendable coins to fund the refinance procedure.
A list of payout rules. The payout rules is expected to not have more than two outputs.
A tx that redeems MUSD with BCH payouts
Mint a new loan to pay back another loan in order to reduce or increase the size and/or add or decrease the collateral rate of the loan.
The moria's utxo.
The oracle's utxo.
the amount of the next loan
The collateral amount for the substitute loan
The current loan's utxo.
The private key of the current loan.
borrower's public key's hash160, the pkh's format is equivalent to pkh used in p2pkh.
A set of spendable coins to fund the refinance procedure.
A list of payout rules. The payout rules is expected to not have more than two outputs.
refinance tx chain with details
Repay a loan with MUSD tokens equivalent to the loan amount. The payout is the loan's collateral + the remainder of MUSD tokens if more MUSD is provided in inputs.
The moria's utxo.
The oracle's utxo.
The current loan's utxo.
The private key of the current loan.
A set of spendable coins to fund the refinance procedure.
A list of payout rules. The payout rules is expected to not have more than two outputs.
A tx that pays out the collateral in exchange for MUSD
Static
calculateHelper function for calculating the collateral amount for a target collateral rate at a given price.
Loan amount.
Collateral rate represented as a Fraction or literal string 'MIN' for minimum collateral amount possible.
The token price from the oracle
the collateral amount
Static
calculateHelper function for calculating the loan amount with the collateral_amount with a target collateral rate at a given price.
Collateral amount in sats.
Collateral rate represented as a Fraction or literal string 'MIN' for minimum collateral amount possible.
The token price from the oracle
the loan amount
Static
getStatic
moriaStatic
oracleStatic
parseReads a valid oracle's commitment.
the nft's commitment
parameters stored in the loan's commitment
Static
parseReads a valid loan's commitment.
the nft's commitment
parameters stored in the loan's commitment
Add collateral to an existing loan.