pub fn add_reward(&mut self, amount: &Balance) -> Option<Balance> {
        match self {
            Farm::SimpleFarm(farm) => farm.add_reward(amount),
        }
    }
/// return None if the farm can not accept reward anymore
/// else return amount of undistributed reward 
return None if the farm can not accept reward anymore
else return amount of undistributed reward
return None if the farm can not accept reward anymore else return amount of undistributed reward
pub fn add_reward(&mut self, amount: &Balance) -> Option<Balance> {
        match self {
            Farm::SimpleFarm(farm) => farm.add_reward(amount),
        }
    }
pub fn add_reward ( & mut self , amount : & Balance ) -> Option < Balance > { match self { Farm :: SimpleFarm ( farm ) => farm . add_reward ( amount ) , } }
return None if the farm can not accept reward anymore
else return amount of undistributed reward
return None if the farm can not accept reward anymore else return amount of undistributed reward
&mut self
amount
&Balance
&mut self
amount
&Balance