Gas fee for price update on TON

:link: Chain: TON testnet

:stopwatch: 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

5 feeds: TON Explorer: Transaction · bbbd…414c

Gas prediction calculates on contract methods:

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

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

6 feeds: TON Explorer: Transaction · f0de…880f

7 feeds: TON Explorer: Transaction · 9541…cede

So, my question:

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

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). Would appreciate it if you could contribute to us by fixing it.

Hi @ali,

Thanks you for reply! What about the date of upgrade on mainnet? It is a critical update for EVAA Main pool. Can you deploy upgraded smartcontract separate of actual smartcontract? It is will be useful for testing.

hi there, do you have any updates?