@@ -186,8 +186,8 @@ type SwapOut struct {
186
186
ShortChannelId string `json:"short_channel_id"`
187
187
SatAmt uint64 `json:"amt_sat"`
188
188
Asset string `json:"asset"`
189
- Force bool `json:"force"`
190
189
PremiumLimit int64 `json:"premium_limit"`
190
+ Force bool `json:"force"`
191
191
cl * ClightningClient `json:"-"`
192
192
}
193
193
@@ -649,7 +649,9 @@ func (l *ListPeers) Call() (jrpc2.Result, error) {
649
649
SatsOut : ReceiverSatsOut ,
650
650
SatsIn : ReceiverSatsIn ,
651
651
},
652
- PaidFee : paidFees ,
652
+ PaidFee : paidFees ,
653
+ SwapInPremiumRatePpm : p .SwapInPremiumRatePPM ,
654
+ SwapOutPremiumRatePpm : p .SwapOutPremiumRatePPM ,
653
655
}
654
656
655
657
peerSwapPeerChannels := []* PeerSwapPeerChannel {}
@@ -1131,13 +1133,15 @@ type SwapStats struct {
1131
1133
}
1132
1134
1133
1135
type PeerSwapPeer struct {
1134
- NodeId string `json:"nodeid"`
1135
- SwapsAllowed bool `json:"swaps_allowed"`
1136
- SupportedAssets []string `json:"supported_assets"`
1137
- Channels []* PeerSwapPeerChannel `json:"channels"`
1138
- AsSender * SwapStats `json:"sent,omitempty"`
1139
- AsReceiver * SwapStats `json:"received,omitempty"`
1140
- PaidFee uint64 `json:"total_fee_paid,omitempty"`
1136
+ NodeId string `json:"nodeid"`
1137
+ SwapsAllowed bool `json:"swaps_allowed"`
1138
+ SupportedAssets []string `json:"supported_assets"`
1139
+ Channels []* PeerSwapPeerChannel `json:"channels"`
1140
+ AsSender * SwapStats `json:"sent,omitempty"`
1141
+ AsReceiver * SwapStats `json:"received,omitempty"`
1142
+ PaidFee uint64 `json:"total_fee_paid,omitempty"`
1143
+ SwapInPremiumRatePpm int64
1144
+ SwapOutPremiumRatePpm int64
1141
1145
}
1142
1146
1143
1147
// checkFeatures checks if a node runs the peerswap Plugin
0 commit comments