Skip to content

Commit d1595dd

Browse files
committed
fix pool config for price query
1 parent b7820bb commit d1595dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

x/lending/keeper/msg_server_loan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ func (m msgServer) Approve(goCtx context.Context, msg *types.MsgApprove) (*types
398398

399399
// authorization submitted
400400
if authorizationId == m.GetAuthorizationId(ctx, msg.Vault) {
401-
currentPrice, err := m.GetPrice(ctx, types.GetPricePair(m.GetPool(ctx, loan.VaultAddress).Config))
401+
currentPrice, err := m.GetPrice(ctx, types.GetPricePair(pool.Config))
402402
if err != nil {
403403
return nil, err
404404
}

0 commit comments

Comments
 (0)