The stakeForOther is used in CoFiXRouter::addLiquidityAndStake which provides a shortcut for users to provide liquidity and stake to staking rewards pool directly.
10. Use of function addReward
The addReward func is used to add reward from trading pool or anyone else in the future. Rewards are distributed to totalSupply and added to rewardPerTokenStored.
stakeForOther
is used inCoFiXRouter::addLiquidityAndStake
which provides a shortcut for users to provide liquidity and stake to staking rewards pool directly.addReward
func is used to add reward from trading pool or anyone else in the future. Rewards are distributed tototalSupply
and added torewardPerTokenStored
.