Skip to content

Commit

Permalink
add repayment secret
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyluis committed Dec 30, 2024
1 parent 20f2f7a commit b3e0f4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x/lending/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,11 @@ func (m msgServer) Close(goCtx context.Context, msg *types.MsgClose) (*types.Msg
loan.Status = types.LoanStatus_Close
m.SetLoan(ctx, loan)

m.EmitEvent(ctx, msg.Relayer,
sdk.NewAttribute("loan_id", loan.VaultAddress),
sdk.NewAttribute("payment_secret", secret),
)

return &types.MsgCloseResponse{}, nil
}

Expand Down

0 comments on commit b3e0f4a

Please sign in to comment.