Investor Stake Calculation

- Fixed possible bug in investor stake kernel calculation