Staking Reward Calculations

I’m trying to find a gas efficient way to determine the appropriate amount of fees earned by a user based on their percentage of a pool. Any recommendations?

1 Like

Maybe you can paste your code at here.

1 Like

Hey we’re using the same code (@openzeppelin/contracts/token/ERC20/IERC20.sol) as everyone else for staking rewards, but like I said we’re looking for something more gas efficient.

1 Like

Hi @agunwoke,

Sorry, I haven’t looked at staking rewards so can’t suggest anything.