Skip to content
S

Staking Paymaster

Pay gas with your staking rewards

Created on 3rd December 2022

•

S

Staking Paymaster

Pay gas with your staking rewards

The problem Staking Paymaster solves

Staking Paymaster is a kind of EIP-4337 paymaster that can be connected to a staking contract to use the staking reward of a staker to cover the gas fees. With many DeFi platforms resorting to meta-transactions to cover user gas fees, staking paymaster is an optimal way to make use of staking rewards and at the same time save the captial to be invested on covering gas costs for the DeFi platform (which would otherwise be spent on meta-transactions),

Challenges I ran into

Testing the StakingPaymaster smart contract was the major challenge. It required me to create mocks for EIP-4337 wallets, oracles, a staking contract, an ERC20 token, an EntryPoint, etc., and aggregate UserOps and send an exec call.

Tracks Applied (1)

Ethereum Foundation

Ethereum Foundation

Ethereum Foundation

Technologies used

Discussion

Builders also viewed

See more projects on Devfolio