Skip to content

Commit bd3848c

Browse files
committed
update docs
1 parent fbf2312 commit bd3848c

File tree

1 file changed

+1
-1
lines changed
  • pages/price-feeds/use-real-time-data

1 file changed

+1
-1
lines changed

pages/price-feeds/use-real-time-data/ton.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async function main() {
8383
await contract.sendUpdatePriceFeeds(
8484
provider.sender(key.secretKey),
8585
updateData,
86-
toNano(updateFee)
86+
156000000n + BigInt(updateFee) // 156000000 = 390000 (estimated gas used for the transaction, this is defined in (contracts/common/gas.fc)[https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/ton/contracts/common/gas.fc] as UPDATE_PRICE_FEEDS_GAS) * 400 (current settings in basechain are as follows: 1 unit of gas costs 400 nanotons)
8787
);
8888
console.log("Price feeds updated successfully.");
8989
}

0 commit comments

Comments
 (0)