File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,12 @@ export function shouldUpdate(
96
96
) : UpdateCondition {
97
97
const priceId = priceConfig . id ;
98
98
99
- // There is no price to update the target with.
99
+ // There is no price to update the target with. So we should not update it.
100
100
if ( sourceLatestPrice === undefined ) {
101
- return UpdateCondition . YES ;
101
+ logger . info (
102
+ `${ priceConfig . alias } (${ priceId } ) is not available on the source network. Ignoring it.` ,
103
+ ) ;
104
+ return UpdateCondition . NO ;
102
105
}
103
106
104
107
// It means that price never existed there. So we should push the latest price feed.
@@ -140,7 +143,7 @@ export function shouldUpdate(
140
143
} %? / early: < ${ priceConfig . earlyUpdatePriceDeviation } %?) OR ` +
141
144
`Confidence ratio: ${ confidenceRatioPct . toFixed ( 5 ) } % (< ${
142
145
priceConfig . confidenceRatio
143
- } %? / early: < ${ priceConfig . earlyUpdatePriceDeviation } %?)`,
146
+ } %? / early: < ${ priceConfig . earlyUpdateConfidenceRatio } %?)`,
144
147
) ;
145
148
146
149
if (
You can’t perform that action at this time.
0 commit comments