Skip to content

Commit

Permalink
use cached function
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy04 committed Oct 10, 2023
1 parent ddf327b commit ae78a3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (k Keeper) AreSubaccountsLiquidatable(

results := make([]types.AreSubaccountsLiquidatableResponse_Result, len(req.SubaccountIds))
for i, subaccountId := range req.SubaccountIds {
isLiquidatable, err := k.IsLiquidatable(ctx, subaccountId)
isLiquidatable, err := k.IsLiquidatableCached(ctx, subaccountId)

if err != nil {
return nil, status.Error(codes.Internal, err.Error())
Expand Down

0 comments on commit ae78a3b

Please sign in to comment.