From ad2b37e7097b53c526bdd80608b0460601c1a129 Mon Sep 17 00:00:00 2001 From: carla Date: Wed, 30 Sep 2020 11:15:30 +0200 Subject: [PATCH] loopd: add suggestions endpoints to macaroons --- loopd/macaroons.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/loopd/macaroons.go b/loopd/macaroons.go index 43aacae..cec4f09 100644 --- a/loopd/macaroons.go +++ b/loopd/macaroons.go @@ -80,6 +80,18 @@ var ( Entity: "auth", Action: "read", }}, + "/looprpc.SwapClient/SuggestSwaps": {{ + Entity: "suggestions", + Action: "read", + }}, + "/looprpc.SwapClient/GetLiquidityParams": {{ + Entity: "suggestions", + Action: "read", + }}, + "/looprpc.SwapClient/SetLiquidityParams": {{ + Entity: "suggestions", + Action: "write", + }}, } // allPermissions is the list of all existing permissions that exist @@ -104,6 +116,12 @@ var ( }, { Entity: "auth", Action: "read", + }, { + Entity: "suggestions", + Action: "read", + }, { + Entity: "suggestions", + Action: "write", }} // macDbDefaultPw is the default encryption password used to encrypt the