- public int get_base_msat(RoutingFees this_ptr) {
- int ret = bindings.RoutingFees_get_base_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1);
- this.ptrs_to.add(this_ptr);
+ /**
+ * Flat routing fee in satoshis
+ */
+ public void set_base_msat(int val) {
+ bindings.RoutingFees_set_base_msat(this.ptr, val);
+ }
+
+ /**
+ * Liquidity-based routing fee in millionths of a routed amount.
+ * In other words, 10000 is 1%.
+ */
+ public int get_proportional_millionths() {
+ int ret = bindings.RoutingFees_get_proportional_millionths(this.ptr);