File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import Big from 'big.js';
5
5
import BaseApi from './base' ;
6
6
import GrpcClient from './grpc' ;
7
7
8
+ const LOOP_INITIATOR = 'lit-ui' ;
9
+
8
10
/** the names and argument types for the subscription events */
9
11
interface LoopEvents {
10
12
monitor : LOOP . SwapStatus . AsObject ;
@@ -89,6 +91,7 @@ class LoopApi extends BaseApi<LoopEvents> {
89
91
req . setAmt ( + amount ) ;
90
92
req . setMaxSwapFee ( + quote . swapFee ) ;
91
93
req . setMaxMinerFee ( + quote . minerFee ) ;
94
+ req . setInitiator ( LOOP_INITIATOR ) ;
92
95
if ( lastHop ) req . setLastHop ( Buffer . from ( lastHop , 'hex' ) . toString ( 'base64' ) ) ;
93
96
if ( confTarget ) req . setHtlcConfTarget ( confTarget ) ;
94
97
const res = await this . _grpc . request ( SwapClient . LoopIn , req , this . _meta ) ;
@@ -115,6 +118,7 @@ class LoopApi extends BaseApi<LoopEvents> {
115
118
req . setMaxPrepayRoutingFee ( this . _calcRoutingFee ( + quote . prepayAmount ) ) ;
116
119
req . setOutgoingChanSetList ( chanIds ) ;
117
120
req . setSwapPublicationDeadline ( deadline ) ;
121
+ req . setInitiator ( LOOP_INITIATOR ) ;
118
122
if ( confTarget ) req . setSweepConfTarget ( confTarget ) ;
119
123
if ( destAddress ) req . setDest ( destAddress ) ;
120
124
You can’t perform that action at this time.
0 commit comments