A combination of simple implementations of different existing protocols ...
Walkthrough - Solana Staker Program