Skip to content

Commit ca8faf4

Browse files
committed
set creation time for repayment
1 parent 2710a80 commit ca8faf4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

x/lending/keeper/msg_server_loan.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,9 @@ func (m msgServer) Repay(goCtx context.Context, msg *types.MsgRepay) (*types.Msg
599599
m.SetLoan(ctx, loan)
600600

601601
repayment := &types.Repayment{
602-
LoanId: msg.LoanId,
603-
Amount: amount,
602+
LoanId: msg.LoanId,
603+
Amount: amount,
604+
CreateAt: ctx.BlockTime(),
604605
}
605606
m.SetRepayment(ctx, repayment)
606607

0 commit comments

Comments
 (0)