remove unnecessary pointer variable

This commit is contained in:
Michael Zhu
2019-09-09 17:41:18 -07:00
parent 6f1f226ed0
commit faa0d83013

View File

@@ -96,8 +96,7 @@ contract StakingPoolRewardVault is
)
{
// update balance of pool
Pool storage pool = poolById[poolId];
(operatorPortion, membersPortion) = _incrementPoolBalances(pool, amount, operatorOnly);
(operatorPortion, membersPortion) = _incrementPoolBalances(poolById[poolId], amount, operatorOnly);
return (operatorPortion, membersPortion);
}