Skip to content

Commit fb5aeaf

Browse files
committed
fix authorization index
1 parent 2ed946e commit fb5aeaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/lending/module/abci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func handlePendingLoans(ctx sdk.Context, k keeper.Keeper) {
9999

100100
// set the authorization status
101101
loan := k.GetLoan(ctx, loan.VaultAddress)
102-
loan.Authorizations[authorizationId].Status = types.AuthorizationStatus_AUTHORIZATION_STATUS_AUTHORIZED
102+
loan.Authorizations[authorizationId-1].Status = types.AuthorizationStatus_AUTHORIZATION_STATUS_AUTHORIZED
103103
k.SetLoan(ctx, loan)
104104
}
105105
}

0 commit comments

Comments
 (0)