Guide to Build Transaction Create Fixed Loan
Purpose
Steps to Build Transaction Create Loan
Step 1: Get Required Parameters
Step 2: Understand Redeemer Structure:
Fixed LendingAction Redeemer Structure
pub type LendingAction {
indexers: RedeemerIndexer,
pool_in_idx: Int, // Required
loan_in_idx: Int, // Optional
protocol_script_idx: Int, // Required
protocol_config_idx: Int, // Required
fee_ou_idx: Int, // Required if fee > 0
}
pub type RedeemerIndexer {
CreatePool{..}
RedeemPool{..}
CreateLoan { pool_ou_idx: Int, loan_ou_idx: Int }
...
}Leverage LendingAction Redeemer Structure
Staking Contract StakingContractAction Redeemer Structure
OraclePriceCalcRdmr Redeemer Structure
Step 3: Create Transaction:
Last updated