From e7a0a4b7b3bb22122c8378f685b8617a982ccb40 Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Wed, 13 Dec 2023 10:15:01 +0100 Subject: [PATCH] chore: update sample config --- config/config.sample.pythnet.toml | 5 +++++ config/config.toml | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/config/config.sample.pythnet.toml b/config/config.sample.pythnet.toml index be54922..00daf83 100644 --- a/config/config.sample.pythnet.toml +++ b/config/config.sample.pythnet.toml @@ -68,6 +68,11 @@ exporter.maximum_slot_gap_for_dynamic_compute_unit_price = 40 # any issues with the ws subscription. oracle.poll_interval_duration = "5s" +# Maximum total compute unit fee paid for a single transaction. Defaults to 0.003 SOL. This +# is a safety measure while using dynamic compute price to prevent the exporter from paying +# too much for a single transaction. +exporter.maximum_total_compute_fee_micro_lamports = 3000000000000 + # Configuration for the JRPC API [pythd_adapter] diff --git a/config/config.toml b/config/config.toml index b7b5dbd..fb027f1 100644 --- a/config/config.toml +++ b/config/config.toml @@ -83,10 +83,10 @@ key_store.mapping_key = "RelevantOracleMappingAddress" # calculated based on the network previous prioritization fees. # exporter.dynamic_compute_unit_pricing_enabled = false -# Maximum total compute unit fee paid for a single transaction. Defaults to 0.001 SOL. This +# Maximum total compute unit fee paid for a single transaction. Defaults to 0.0003 SOL. This # is a safety measure while using dynamic compute price to prevent the exporter from paying -# too much for a single transaction. The default is 10**12 micro lamports (0.001 SOL). -# exporter.maximum_total_compute_fee_micro_lamports = 1000000000000 +# too much for a single transaction. +# exporter.maximum_total_compute_fee_micro_lamports = 300000000000 # Maximum slot gap between the current slot and the oldest slot amongst all the accounts in # the batch. This is used to calculate the dynamic price per compute unit. When the slot gap