You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement a system where a contract on a connected chain A can make an on-chain call (let's say to the Gateway on chain A) to get a fee amount required to make a call to chain B.
Right now, for example, when making a call from chain A to chain B (through ZetaChain, of course), a contract on chain A needs the fee amount to be submitted by a user/end-user app.
On ZetaChain gas fees can be queried from ZRC-20s:
I assume that if we set up a system where this information is transferred to connected chains (either by observer-signer validators, or as a CCTX), it should do the trick.
Uh oh!
There was an error while loading. Please reload this page.
Implement a system where a contract on a connected chain A can make an on-chain call (let's say to the Gateway on chain A) to get a fee amount required to make a call to chain B.
Right now, for example, when making a call from chain A to chain B (through ZetaChain, of course), a contract on chain A needs the fee amount to be submitted by a user/end-user app.
On ZetaChain gas fees can be queried from ZRC-20s:
protocol-contracts/contracts/zevm/ZRC20.sol
Lines 280 to 290 in e724622
I think we need the same functionality to be available on connected chains.
Ideally, the gas fee amount required to make a call to chain B, is reported on chain A in the gas token of chain A.
Gas prices are regularly updated by observer-signer validators and are stored in the
crosschain
module state:https://zetachain.blockpi.network/lcd/v1/public/zeta-chain/crosschain/gasPrice
I assume that if we set up a system where this information is transferred to connected chains (either by observer-signer validators, or as a CCTX), it should do the trick.
How other projects are handling this:
The text was updated successfully, but these errors were encountered: