@cashlab/moria
Preparing search index...
moria1
compiler
mintLoanWithExistingLoanAgent
Function mintLoanWithExistingLoanAgent
mintLoanWithExistingLoanAgent
(
context
:
MoriaCompilerContext
,
utxos
:
{
delphi
:
UTXOWithNFT
;
moria
:
UTXOWithNFT
}
,
params
:
{
annual_interest_bp
:
bigint
;
collateral_amount
:
bigint
;
loan_amount
:
bigint
;
}
,
funding_coins
:
SpendableCoin
[]
,
loan_agent_coin
:
SpendableCoin
<
OutputWithNFT
>
,
output_loan_agent_locking_bytecode
:
Uint8Array
,
payout_rules
:
PayoutRule
[]
,
)
:
TxResult
&
{
batonminter_utxo
:
null
|
UTXOWithNFT
;
borrower_p2nfth_utxo
:
null
|
UTXO
;
bporacle_utxo
:
null
|
UTXOWithNFT
;
delphi_utxo
:
UTXOWithNFT
;
fees
:
{
batonminter_mint_fee
?:
bigint
;
bporacle_use_fee
?:
bigint
;
delphi_use_fee
?:
bigint
;
total
:
bigint
;
}
;
interest_utxo
:
null
|
UTXOWithFT
;
loan_agent_utxo
:
null
|
UTXOWithNFT
;
loan_utxo
:
null
|
UTXOWithNFT
;
moria_utxo
:
UTXOWithNFT
;
}
&
{
loan_agent_utxo
:
UTXOWithNFT
;
loan_utxo
:
UTXOWithNFT
}
Parameters
context
:
MoriaCompilerContext
utxos
:
{
delphi
:
UTXOWithNFT
;
moria
:
UTXOWithNFT
}
params
:
{
annual_interest_bp
:
bigint
;
collateral_amount
:
bigint
;
loan_amount
:
bigint
}
funding_coins
:
SpendableCoin
[]
loan_agent_coin
:
SpendableCoin
<
OutputWithNFT
>
output_loan_agent_locking_bytecode
:
Uint8Array
payout_rules
:
PayoutRule
[]
Returns
TxResult
&
{
batonminter_utxo
:
null
|
UTXOWithNFT
;
borrower_p2nfth_utxo
:
null
|
UTXO
;
bporacle_utxo
:
null
|
UTXOWithNFT
;
delphi_utxo
:
UTXOWithNFT
;
fees
:
{
batonminter_mint_fee
?:
bigint
;
bporacle_use_fee
?:
bigint
;
delphi_use_fee
?:
bigint
;
total
:
bigint
;
}
;
interest_utxo
:
null
|
UTXOWithFT
;
loan_agent_utxo
:
null
|
UTXOWithNFT
;
loan_utxo
:
null
|
UTXOWithNFT
;
moria_utxo
:
UTXOWithNFT
;
}
&
{
loan_agent_utxo
:
UTXOWithNFT
;
loan_utxo
:
UTXOWithNFT
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@cashlab/moria
Loading...