The following are 3 working examples, with comments that explain the functionality of each functions. Each example shows an aspect of writing a SY. We encourage reading all 3 examples.

PendleERC4626UpgSYV2

(Rebasing) PendleAaveV3SY

(Reward) PendleStakingUSDSSY