I am writing a custom pallet for distribution of rewards to different stake holders. The idea is to distribute block production reward in the stakeholders of my system and a portion it will go to the treasury.
I wanted to know the kusama mechanisim/pallet/code for distribution of reward to get an idea? Can any one please point me to the exact pallet in the kusama code base that is responsible for distribution of block reward on kusama network.