You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: looprpc/client.swagger.json
+27-4Lines changed: 27 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -731,20 +731,28 @@
731
731
"format": "byte",
732
732
"description": "The Prepay RFQ ID to use to pay for the prepay invoice."
733
733
},
734
-
"prepay_asset_amt": {
734
+
"max_prepay_asset_amt": {
735
735
"type": "string",
736
736
"format": "uint64",
737
-
"description": "The actual asset amt to prepay for the swap invoice."
737
+
"description": "The maximum asset amt we'll pay for the prepay payment. This includes the\nmax limit multiplier that was set in the request."
738
+
},
739
+
"prepay_asset_rate": {
740
+
"$ref": "#/definitions/looprpcFixedPoint",
741
+
"description": "The asset to BTC conversion rate for the prepay invoice."
738
742
},
739
743
"swap_rfq_id": {
740
744
"type": "string",
741
745
"format": "byte",
742
746
"description": "The Swap RFQ ID to use to pay for the swap invoice."
743
747
},
744
-
"swap_asset_amt": {
748
+
"max_swap_asset_amt": {
745
749
"type": "string",
746
750
"format": "uint64",
747
-
"description": "The actual asset amt to swap for the swap invoice."
751
+
"description": "The maximum asset amt we'll pay for the swap payment. This includes the\nmax limit multiplier that was set in the request."
752
+
},
753
+
"swap_asset_rate": {
754
+
"$ref": "#/definitions/looprpcFixedPoint",
755
+
"description": "The asset to BTC conversion rate for the swap invoice."
748
756
},
749
757
"asset_name": {
750
758
"type": "string",
@@ -896,6 +904,21 @@
896
904
"looprpcFetchL402TokenResponse": {
897
905
"type": "object"
898
906
},
907
+
"looprpcFixedPoint": {
908
+
"type": "object",
909
+
"properties": {
910
+
"coefficient": {
911
+
"type": "string",
912
+
"description": "The coefficient is the fractional value scaled-up as an integer. This\ninteger is represented as a string as it may be too large to fit in a\nuint64."
913
+
},
914
+
"scale": {
915
+
"type": "integer",
916
+
"format": "int64",
917
+
"description": "The scale is the component that determines how many decimal places\nthe coefficient should be divided by to obtain the fractional value."
918
+
}
919
+
},
920
+
"description": "FixedPoint is a scaled integer representation of a fractional number.\n\nThis type consists of two integer fields: a coefficient and a scale.\nUsing this format enables precise and consistent representation of fractional\nnumbers while avoiding floating-point data types, which are prone to\nprecision errors.\n\nThe relationship between the fractional representation and its fixed-point\nrepresentation is expressed as:\n```\nV = F_c / (10^F_s)\n```\nwhere:\n\n* `V` is the fractional value.\n\n* `F_c` is the coefficient component of the fixed-point representation. It is\n the scaled-up fractional value represented as an integer.\n\n* `F_s` is the scale component. It is an integer specifying how\n many decimal places `F_c` should be divided by to obtain the fractional\n representation."
0 commit comments