@uniswap/client-trading 0.12.16 → 0.12.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7949,10 +7949,15 @@ export type MarginPositionRow = Message<"trading.v1.MarginPositionRow"> & {
7949
7949
  */
7950
7950
  oraclePrice?: string | undefined;
7951
7951
  /**
7952
- * ACTIVE only. The market price the position is marked at, which can differ
7953
- * from `oracle_price`. Counter per exposure, 1e18-scaled, in the same trader
7954
- * terms as `oracle_price`. Unlike the risk fields it can be served from a
7955
- * short-lived cache. Absent when none was read.
7952
+ * ACTIVE only. The pair's market price, which can differ from
7953
+ * `oracle_price`: the midpoint of a small fixed sale of the collateral for
7954
+ * the debt and a buy of about the same amount of collateral, each on its
7955
+ * cheapest single route, so the pool fee largely cancels out of it. Shared
7956
+ * by every position on the pair and up to 30 seconds old, so unlike the risk
7957
+ * fields it can be served from a cache. It leaves out the position's own
7958
+ * size and the pool fee, so a close realizes less than this values it at,
7959
+ * by that close's fee and price impact. Counter per exposure, 1e18-scaled,
7960
+ * in the same trader terms as `oracle_price`. Absent when none was read.
7956
7961
  *
7957
7962
  * @generated from field: optional string current_price = 38;
7958
7963
  */
@@ -8015,12 +8020,13 @@ export type MarginPositionRow = Message<"trading.v1.MarginPositionRow"> & {
8015
8020
  /**
8016
8021
  * TERMINAL only, and likewise cost-basis derived. `realized_pnl` is raw
8017
8022
  * collateral-token units: collateral returned minus collateral deposited.
8018
- * On a terminal LONG `size` is the collateral it held when it closed. The
8019
- * store keeps no debt at the close, so on a terminal SHORT it is the debt
8020
- * drawn over the position's life, before interest: 0 when the store saw no
8021
- * draw. It overstates the debt held at the close after any leverage
8022
- * decrease or partial liquidation, and an increase after one adds its draw
8023
- * on top.
8023
+ * On a terminal LONG `size` is the collateral it held when it closed. On a
8024
+ * terminal SHORT it is the debt it owed when it closed, interest included,
8025
+ * or, when its debt was repaid before its collateral left, the debt that
8026
+ * repay cleared. Without that debt on record, as for a SHORT closed before
8027
+ * it was kept, it is the debt drawn over the position's life, before
8028
+ * interest: 0 when none was seen drawn, and more than it closed with after
8029
+ * a leverage decrease or partial liquidation.
8024
8030
  *
8025
8031
  * @generated from field: optional int64 closed_at = 20;
8026
8032
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.12.16",
3
+ "version": "0.12.18",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },