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: apps/app/src/test/scala/org/lfdecentralizedtrust/splice/integration/tests/FollowAmuletConversionRateFeedTimeBasedIntegrationTest.scala
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -173,12 +173,12 @@ class FollowAmuletConversionRateFeedTimeBasedIntegrationTest
173
173
loggerFactory.assertLogs(
174
174
runTrigger,
175
175
_.warningMessage should include(
176
-
"200.0000000000 which is outside of the configured accepted range"
176
+
"200.0000000000 which is outside of the configured accepted range RangeConfig(0.01,100.0), clamping to 100.0"
Copy file name to clipboardExpand all lines: apps/sv/src/main/scala/org/lfdecentralizedtrust/splice/sv/automation/singlesv/FollowAmuletConversionRateFeedTrigger.scala
+46-38Lines changed: 46 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -51,44 +51,49 @@ class FollowAmuletConversionRateFeedTrigger(
51
51
logger.warn(s"No AmuletConversionRateFeed for publisher ${config.publisher}")
s"Rate from publisher ${config.publisher} is ${followedFeedRate} which is outside of the configured accepted range ${config.acceptedRange}, clamping to ${rate}"
63
+
)
64
+
rate
65
+
} else followedFeedRate
66
+
for {
67
+
existingVote <- store
68
+
.lookupAmuletPriceVoteByThisSv()
69
+
.map(
70
+
_.getOrElse(
71
+
// This can happen after a hard migration or when reingesting from
72
+
// ledger begin for other reasons so we don't make this INTERNAL.
73
+
throwStatus.NOT_FOUND
74
+
.withDescription("No price vote for this SV found")
Copy file name to clipboardExpand all lines: docs/src/release_notes.rst
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,11 @@ Upcoming
21
21
22
22
- Changed the behavior of automation around rewards and coupons to run for the first time in the interval of ``round open time`` -> ``round open time + tick duration``. This might increase the observed duration between rewards and coupons being issued and until they are collected. Once the first tick elapses retries will happen more aggressively.
23
23
24
+
- SV app
25
+
26
+
- Published conversion rates are now clamped to the configured range and the clamped value is published instead of
27
+
only logging a warning and not publishing an updated value for out of range values.
0 commit comments