Skip to content

Commit

Permalink
policy: show premium rate when reloadpolicy
Browse files Browse the repository at this point in the history
When the reload policy was done,
the configuration values were updated, but they were not displayed.

Definitions are being added so that they are displayed.
  • Loading branch information
YusukeShimizu committed Jan 6, 2025
1 parent 5f03eb1 commit abc40d9
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 104 deletions.
14 changes: 8 additions & 6 deletions peerswaprpc/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import (

func GetPolicyMessage(p policy.Policy) *Policy {
return &Policy{
ReserveOnchainMsat: p.ReserveOnchainMsat,
MinSwapAmountMsat: p.MinSwapAmountMsat,
AcceptAllPeers: p.AcceptAllPeers,
AllowNewSwaps: p.AllowNewSwaps,
AllowlistedPeers: p.PeerAllowlist,
SuspiciousPeerList: p.SuspiciousPeerList,
ReserveOnchainMsat: p.ReserveOnchainMsat,
MinSwapAmountMsat: p.MinSwapAmountMsat,
AcceptAllPeers: p.AcceptAllPeers,
AllowNewSwaps: p.AllowNewSwaps,
AllowlistedPeers: p.PeerAllowlist,
SuspiciousPeerList: p.SuspiciousPeerList,
SwapInPremiumRatePpm: p.SwapInPremiumRatePPM,
SwapOutPremiumRatePpm: p.SwapOutPremiumRatePPM,
}
}

Expand Down
Loading

0 comments on commit abc40d9

Please sign in to comment.