•
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
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:
- the
calculateUpdatePriceFeedsFeeis correctly works? - Can I update more than 6 feeds per one
sendUpdatePriceFeeds?