The best way to earn yields on stablecoin to stablecoin pegs is to use a platform like yearn.finance. Yearn.finance provides a suite of automated yield optimization and borrowing services that allow users to maximize their returns on their investments. Yearn.finance uses a variety of strategies to maximize returns, such as providing liquidity to different protocols, deploying capital into various lending protocols, and arbitraging between exchanges. The APY (Annual Percentage Yield) for each strategy is calculated and displayed on the platform, so users can easily compare different strategies and choose the one that best suits their needs. Additionally, yearn.finance also offers a variety of other services, such as portfolio management, insurance, and staking, to help users maximize their yields.