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
* use saturating sub
* use saturating sub for ema price
* validate data sources length
* use the right error type
* fix magic number
* add impure to functions that throw
* dont redefine global vars
* use global var directly
* remove unused variables
* remove debugging code
* remove unused variable num_data_sources
* remove unused variable data_sources
@@ -202,7 +197,7 @@ int parse_pyth_payload_in_wormhole_vm(slice payload) impure {
202
197
int root_digest = parse_pyth_payload_in_wormhole_vm(payload);
203
198
204
199
repeat(num_updates) {
205
-
(int price_id, int price, int conf, int expo, int publish_time, int prev_publish_time, int ema_price, int ema_conf, slice new_cs) = read_and_verify_message(cs, root_digest);
200
+
(int price_id, int price, int conf, int expo, int publish_time, _, int ema_price, int ema_conf, slice new_cs) = read_and_verify_message(cs, root_digest);
206
201
cs = new_cs;
207
202
208
203
(slice latest_price_info, int found?) = latest_price_feeds.udict_get?(256, price_id);
@@ -240,7 +235,7 @@ int parse_pyth_payload_in_wormhole_vm(slice payload) impure {
@@ -232,10 +219,8 @@ int governance_action_is_consumed(int hash) method_id {
232
219
(int version, int vm_guardian_set_index, int timestamp, int nonce, int emitter_chain_id, int emitter_address, int sequence, int consistency_level, slice payload, int hash) = parse_and_verify_wormhole_vm(in_msg_body);
233
220
234
221
;; Verify the emitter chain and address
235
-
int governance_chain_id = get_governance_chain_id();
0 commit comments