Name | Arguments | Accounts |
---|---|---|
initMarket | owner:`publicKey` quoteCurrency:`string` quoteTokenMint:`publicKey` | market isMut |
initReserve | bump:`InitReserveBumpSeeds` config:`ReserveConfig` | market isMut marketAuthority reserve isMut vault isMut feeNoteVault isMut dexSwapTokens isMut dexOpenOrders isMut dexMarket tokenMint tokenProgram dexProgram oraclePrice oracleProduct depositNoteMint isMut loanNoteMint isMut quoteTokenMint owner isSigner systemProgram rent |
updateReserveConfig | newConfig:`ReserveConfig` | market reserve isMut owner isSigner |
initDepositAccount | bump:`u8` | market marketAuthority reserve depositNoteMint depositor isSignerisMut depositAccount isMut tokenProgram systemProgram rent |
initCollateralAccount | bump:`u8` | market marketAuthority obligation isMut reserve depositNoteMint owner isSignerisMut collateralAccount isMut tokenProgram systemProgram rent |
initLoanAccount | bump:`u8` | market marketAuthority obligation isMut reserve loanNoteMint owner isSignerisMut loanAccount isMut tokenProgram systemProgram rent |
initObligation | bump:`u8` | market marketAuthority borrower isSignerisMut obligation isMut tokenProgram systemProgram |
setMarketOwner | newOwner:`publicKey` | market isMut owner isSigner |
setMarketFlags | flags:`u64` | market isMut owner isSigner |
closeDepositAccount | bump:`u8` | market marketAuthority reserve isMut vault isMut depositNoteMint isMut depositor isSignerisMut depositAccount isMut receiverAccount isMut tokenProgram |
closeCollateralAccount | bump:`u8` | market marketAuthority obligation isMut owner isSignerisMut collateralAccount isMut depositAccount isMut tokenProgram |
closeLoanAccount | bump:`u8` | market marketAuthority obligation isMut owner isSignerisMut loanAccount isMut tokenProgram |
closeObligation | bump:`u8` | market marketAuthority owner isSignerisMut obligation isMut |
deposit | bump:`u8` amount:`Amount` | market marketAuthority reserve isMut vault isMut depositNoteMint isMut depositor isSigner depositAccount isMut depositSource isMut tokenProgram |
depositTokens | amount:`Amount` | market marketAuthority reserve isMut vault isMut depositNoteMint isMut depositor isSigner depositNoteAccount isMut depositSource isMut tokenProgram |
withdraw | bump:`u8` amount:`Amount` | market marketAuthority reserve isMut vault isMut depositNoteMint isMut depositor isSigner depositAccount isMut withdrawAccount isMut tokenProgram |
withdrawTokens | amount:`Amount` | market marketAuthority reserve isMut vault isMut depositNoteMint isMut depositor isSigner depositNoteAccount isMut withdrawAccount isMut tokenProgram |
depositCollateral | bump:`DepositCollateralBumpSeeds` amount:`Amount` | market marketAuthority reserve obligation isMut owner isSigner depositAccount isMut collateralAccount isMut tokenProgram |
withdrawCollateral | bump:`WithdrawCollateralBumpSeeds` amount:`Amount` | market marketAuthority reserve obligation isMut owner isSigner depositAccount isMut collateralAccount isMut tokenProgram |
borrow | bump:`u8` amount:`Amount` | market marketAuthority obligation isMut reserve isMut vault isMut loanNoteMint isMut borrower isSigner loanAccount isMut receiverAccount isMut tokenProgram |
repay | amount:`Amount` | market marketAuthority obligation isMut reserve isMut vault isMut loanNoteMint isMut loanAccount isMut payerAccount isMut payer isSigner tokenProgram |
liquidate | amount:`Amount` minCollateral:`u64` | market marketAuthority obligation isMut reserve isMut collateralReserve vault isMut loanNoteMint isMut loanAccount isMut collateralAccount isMut payerAccount isMut receiverAccount isMut payer isSigner tokenProgram |
mockLiquidateDex | sourceMarket targetMarket toLiquidate | |
refreshReserve | market isMut marketAuthority reserve isMut feeNoteVault isMut depositNoteMint isMut pythOraclePrice tokenProgram |