Skip to content

Commit 4cc13db

Browse files
committed
removed extra get fee function
1 parent c6df39e commit 4cc13db

File tree

1 file changed

+5
-9
lines changed
  • target_chains/stylus/contracts/pyth-receiver/src

1 file changed

+5
-9
lines changed

target_chains/stylus/contracts/pyth-receiver/src/lib.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -260,22 +260,18 @@ impl PythReceiver {
260260
U256::from(num_updates).saturating_mul(self.single_update_fee_in_wei.get())
261261
}
262262

263-
pub fn get_update_fee(&self, _update_data: Vec<Vec<u8>>) -> U256 {
264-
U256::from(0u8)
265-
}
266-
267263
pub fn get_twap_update_fee(&self, _update_data: Vec<Vec<u8>>) -> U256 {
268264
U256::from(0u8)
269265
}
270266

271267
pub fn parse_price_feed_updates(
272268
&mut self,
273-
_update_data: Vec<Vec<u8>>,
274-
_price_ids: Vec<[u8; 32]>,
275-
_min_publish_time: u64,
276-
_max_publish_time: u64,
269+
update_data: Vec<Vec<u8>>,
270+
price_ids: Vec<[u8; 32]>,
271+
min_publish_time: u64,
272+
max_publish_time: u64,
277273
) -> Vec<PriceInfoReturn> {
278-
Vec::new()
274+
parse_price_feed_updates_with_config(update_data, price_ids, min_publish_time, max_publish_time, false, false, false)
279275
}
280276

281277
pub fn parse_price_feed_updates_with_config(

0 commit comments

Comments
 (0)