webb-tools / tangle

Modular restaking infrastructure for developers, restakers, and operators.

Home Page:https://www.tangle.tools/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[SPEC] resolve pallet-services and EVM fees

shekohex opened this issue · comments

Overview

We did find a way to call into EVM from pallets by using EVM pallet with a trait. However, to call in EVM there are checks for gas/fees and balances, currently we have a Runtime EVM Account Address (address(0xf1)). but to call the hooks and verifications, this account needs some balance to execute transactions, the question is who pays for this and is there a way around it?

  1. There is a pallet_evm::OnChargeEVMTransaction which allows us to control who pays what. We can filter for the runtime account and make it free? Of course not.
  2. Instead of making it free, we should do make the caller pay to the Runtime account, and that gets used for the transactions.