Staking Paymaster

Pay gas with your staking rewards

Staking Paymaster

Created At

ETHIndia 2022

Project Description

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),

How it's Made

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.

background image mobile

Join the mailing list

Get the latest news and updates