From ce0825e8be0b45b24c823dfcb4efdb88861f581a Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 11 Jul 2022 20:09:38 +0200 Subject: [PATCH] Fix typo --- controllers/home.ctrl.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/home.ctrl.go b/controllers/home.ctrl.go index f87b841..c68bac4 100644 --- a/controllers/home.ctrl.go +++ b/controllers/home.ctrl.go @@ -85,14 +85,14 @@ func (controller *HomeController) Home(c echo.Context) error { return err } // See original code: https://github.com/BlueWallet/LndHub/blob/master/controllers/website.js#L32 - maxChanCapicity := -1 + maxChanCapacity := -1 for _, ch := range channels.Channels { - maxChanCapicity = Max(maxChanCapicity, int(ch.Capacity)) + maxChanCapacity = Max(maxChanCapacity, int(ch.Capacity)) } channelSlice := []Channel{} for _, ch := range channels.Channels { - magic := maxChanCapicity / 100 + magic := maxChanCapacity / 100 channelSlice = append(channelSlice, Channel{ Name: pubkeyToName[ch.RemotePubkey], RemotePubkey: ch.RemotePubkey,