alexbosworth / lightning

Lightning client methods
MIT License
127 stars 33 forks source link

Typescript definitions for `inbound_base_discount_mtokens` and `inbound_rate_discount` #165

Closed alexbosworth closed 6 months ago

alexbosworth commented 6 months ago

In version 10.11.0 the upcoming 0.18.0 attributes for routing fee inbound discounts were added:

inbound_base_discount_mtokens: This is a source-based discount that reduces the routing fee of traffic coming from a specific source channel by n mtokens. It is a number of millitokens string

inbound_rate_discount: This is a source-based discount that reduces the routing fee in the same way, but proportionally to the value being forwarded, in millitokens per million. It is a parts per million number

getChannel, getNetworkGraph, getNode all were modified to include this, in the channel policies object

Need typescript support for these methods

ping @bkiac