Skip to content

Commit a8ef144

Browse files
committed
chore(lazer/evm) exponent parsing fix
1 parent c0fc931 commit a8ef144

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

lazer/contracts/evm/src/PythLazerLib.sol

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -294,16 +294,10 @@ library PythLazerLib {
294294
property == PythLazerStructs.PriceFeedProperty.Exponent
295295
) {
296296
(feed._exponent, pos) = parseFeedValueInt16(payload, pos);
297-
if (feed._exponent != 0)
298-
_setPresent(
299-
feed,
300-
uint8(PythLazerStructs.PriceFeedProperty.Exponent)
301-
);
302-
else
303-
_setApplicableButMissing(
304-
feed,
305-
uint8(PythLazerStructs.PriceFeedProperty.Exponent)
306-
);
297+
_setPresent(
298+
feed,
299+
uint8(PythLazerStructs.PriceFeedProperty.Exponent)
300+
);
307301

308302
// Confidence Property
309303
} else if (

0 commit comments

Comments
 (0)