This is a staking pool implementation. Yield is calculated with a daycount convention.
Try running some of the following tasks:
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat ignition deploy ./ignition/modules/StakingPool.ts