# Gas fee for price update on TON

**URL:** <https://dev-forum.pyth.network/t/gas-fee-for-price-update-on-ton/409>\
**Category:** Price Feeds\
**Created:** [September 18, 2025, 10:47am UTC](https://dev-forum.pyth.network/t/gas-fee-for-price-update-on-ton/409 "2025-09-18T10:47:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![murka](https://yyz2.discourse-cdn.com/flex034/user_avatar/dev-forum.pyth.network/murka/32/130_2.png) [@murka](https://dev-forum.pyth.network/u/murka)\
**Post date:** [September 18, 2025, 10:47am UTC](https://dev-forum.pyth.network/t/gas-fee-for-price-update-on-ton/409/1 "2025-09-18T10:47:56Z")

</div>

• 🔗 **Chain** : TON testnet

• ⏱ **Timestamp** : BlockID: (0,6000000000000000,37318914)

• Contact Telegram: @shaymurzin

Hi there, I cannot update more than 4 feeds, I got gas out error, the impl based on docs

4 feeds: [TON Explorer: Transaction · a7ec…bd4f](https://testnet.tonviewer.com/transaction/a7ece4b627318d12f43852cbac1b49b80810d6bf9c3d7954f93b21cd9b81bd4f)

5 feeds: [TON Explorer: Transaction · bbbd…414c](https://testnet.tonviewer.com/transaction/bbbdbedeb59167e27de69cd5759bc1c11407b5a7feccc0b8846eab41b2d5414c)

Gas prediction calculates on contract methods:

```javascript
const updateFee = await contract.getUpdateFee(updateData);
console.log(“Update fee:”, updateFee);
const totalFee = calculateUpdatePriceFeedsFee(BigInt(updateFee)) + BigInt(updateFee);
console.log(“Total fee:”, totalFee);

```

but if I sent 1 TON all of updates works: [TON Explorer: Transaction · 747d…c82b](https://testnet.tonviewer.com/transaction/747d7b6ab1a9624937e92f0f3c5f5d10cbaf49a2b6072e15285bee8bc46fc82b)

I also cannot update more than 6 feeds with more tons for gas instead of calculateUpdatePriceFeedsFee:

6 feeds: [TON Explorer: Transaction · f0de…880f](https://testnet.tonviewer.com/transaction/f0dee040a52c12b1cf91cbb52ba9342213f204fd5ed93f54ed08c20d69e1880f)

7 feeds: [TON Explorer: Transaction · 9541…cede](https://testnet.tonviewer.com/transaction/9541c16b54d1baba7047ae00d9ba0c9fa3dcfcd2318577920407e069dfd0cede)

So, my question:

1. the `calculateUpdatePriceFeedsFee` is correctly works?
2. Can I update more than 6 feeds per one `sendUpdatePriceFeeds`?

---

<div class="post-metadata">

**Author:** ![ali](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@ali](https://dev-forum.pyth.network/u/ali)\
**Post date:** [September 22, 2025, 12:18pm UTC](https://dev-forum.pyth.network/t/gas-fee-for-price-update-on-ton/409/2 "2025-09-22T12:18:04Z")

</div>

Hi @murka ,

Yeah due to gas limits you cannot update more than 6 feeds at the moment. An upgrade is being rolled out that lets you update 7 feeds at once.

I suspect the estimation on the `calculateUpdatePriceFeedsFee` is inaccurate (see [here](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ton/sdk/js/src/index.ts#L340-L346)). Would appreciate it if you could contribute to us by fixing it.

---

<div class="post-metadata">

**Author:** ![murka](https://yyz2.discourse-cdn.com/flex034/user_avatar/dev-forum.pyth.network/murka/32/130_2.png) [@murka](https://dev-forum.pyth.network/u/murka)\
**Post date:** [September 22, 2025, 4:13pm UTC](https://dev-forum.pyth.network/t/gas-fee-for-price-update-on-ton/409/4 "2025-09-22T16:13:32Z")

</div>

Hi @ali,

Thanks you for reply! What about the date of upgrade on mainnet? It is a critical update for [EVAA Main pool](https://tonviewer.com/EQC8rUZqR_pWV1BylWUlPNBzyiTYVoBEmQkMIQDZXICfnuRr). Can you deploy upgraded smartcontract separate of actual smartcontract? It is will be useful for testing.

---

<div class="post-metadata">

**Author:** ![murka](https://yyz2.discourse-cdn.com/flex034/user_avatar/dev-forum.pyth.network/murka/32/130_2.png) [@murka](https://dev-forum.pyth.network/u/murka)\
**Post date:** [October 1, 2025, 8:19am UTC](https://dev-forum.pyth.network/t/gas-fee-for-price-update-on-ton/409/5 "2025-10-01T08:19:46Z")

</div>

hi there, do you have any updates?
