serai/processor/ethereum
Luke Parker 8ea5acbacb Update the Router smart contract to pay fees to the caller
The caller is paid a fixed fee per unit of gas spent. That arguably
incentivizes the publisher to raise the gas used by internal calls, yet this
doesn't effect the user UX as they'll have flatly paid the worst-case fee
already. It does pose a risk where callers are arguably incentivized to cause
transaction failures which consume all the gas, not just increased gas, yet:

1) Modern smart contracts don't error by consuming all the gas
2) This is presumably infeasible
3) Even if it was feasible, the gas fees gained presumably exceed the gas fees
   spent causing the failure

The benefit to only paying the callers for the gas used, not the gas alotted,
is it allows Serai to build up a buffer. While this should be minor, a few
cents on every transaction at best, if we ever do have any costs slip through
the cracks, it ideally is sufficient to handle those.
2024-09-19 23:36:32 -07:00
..
deployer Don't have the Deployer store the deployment block 2024-09-19 23:36:32 -07:00
erc20 Add note on the returned top-level transfers being unordered 2024-09-19 23:36:32 -07:00
primitives Break Ethereum Deployer into crate 2024-09-19 23:36:32 -07:00
router Update the Router smart contract to pay fees to the caller 2024-09-19 23:36:32 -07:00
src Remove unused code in the Ethereum processor 2024-09-19 23:36:32 -07:00
TODO Mark files in TODO/ with "TODO" to ensure it pops up on search 2024-09-19 23:36:32 -07:00
Cargo.toml Add hooks to the main loop 2024-09-19 23:36:32 -07:00
LICENSE Split processor into bitcoin-processor, ethereum-processor, monero-processor 2024-09-19 23:36:32 -07:00
README.md Split processor into bitcoin-processor, ethereum-processor, monero-processor 2024-09-19 23:36:32 -07:00

Serai Ethereum Processor