We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ed946e commit fb5aeafCopy full SHA for fb5aeaf
x/lending/module/abci.go
@@ -99,7 +99,7 @@ func handlePendingLoans(ctx sdk.Context, k keeper.Keeper) {
99
100
// set the authorization status
101
loan := k.GetLoan(ctx, loan.VaultAddress)
102
- loan.Authorizations[authorizationId].Status = types.AuthorizationStatus_AUTHORIZATION_STATUS_AUTHORIZED
+ loan.Authorizations[authorizationId-1].Status = types.AuthorizationStatus_AUTHORIZATION_STATUS_AUTHORIZED
103
k.SetLoan(ctx, loan)
104
}
105
0 commit comments