@owney/sdk 0.7.25-beta.8 → 0.7.25-beta.9

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.
package/dist/index.cjs CHANGED
@@ -4110,8 +4110,9 @@ var YieldseekerAgent = class {
4110
4110
  return {
4111
4111
  version,
4112
4112
  read: this.cachedRead(key2, this.portfolioCacheMs(contextKey), () => (
4113
- // Only event-driven reconciliation forces refreshes. Routine reads
4114
- // remain non-forced; the cache and shared cooldown still bound calls.
4113
+ // Force only during the bounded post-transaction window. Keep unknown
4114
+ // or unreconciled movements for verification, but do not let them turn
4115
+ // routine polling into forced refreshes indefinitely.
4115
4116
  this.requestPortfolioSnapshot(
4116
4117
  state,
4117
4118
  chainId,
@@ -4119,7 +4120,7 @@ var YieldseekerAgent = class {
4119
4120
  contextKey,
4120
4121
  version,
4121
4122
  generation,
4122
- this.snapshotMovements.has(contextKey)
4123
+ this.snapshotMovements.has(contextKey) && (this.reconcileUntil.get(contextKey) ?? 0) > Date.now()
4123
4124
  )
4124
4125
  ))
4125
4126
  };
package/dist/index.js CHANGED
@@ -4092,8 +4092,9 @@ var YieldseekerAgent = class {
4092
4092
  return {
4093
4093
  version,
4094
4094
  read: this.cachedRead(key2, this.portfolioCacheMs(contextKey), () => (
4095
- // Only event-driven reconciliation forces refreshes. Routine reads
4096
- // remain non-forced; the cache and shared cooldown still bound calls.
4095
+ // Force only during the bounded post-transaction window. Keep unknown
4096
+ // or unreconciled movements for verification, but do not let them turn
4097
+ // routine polling into forced refreshes indefinitely.
4097
4098
  this.requestPortfolioSnapshot(
4098
4099
  state,
4099
4100
  chainId,
@@ -4101,7 +4102,7 @@ var YieldseekerAgent = class {
4101
4102
  contextKey,
4102
4103
  version,
4103
4104
  generation,
4104
- this.snapshotMovements.has(contextKey)
4105
+ this.snapshotMovements.has(contextKey) && (this.reconcileUntil.get(contextKey) ?? 0) > Date.now()
4105
4106
  )
4106
4107
  ))
4107
4108
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owney/sdk",
3
- "version": "0.7.25-beta.8",
3
+ "version": "0.7.25-beta.9",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",