虛擬通貨流動吧 Superfluid Virtual Currency Community
const totalYearlyComp =
((4000 / usdcTotalSupply) * usdcDailyComp +
(6000 / usdtTotalSupply) * usdtDailyComp +
(6000 / usdtTotalBorrows) * usdtDailyComp) *
365 * compPriceNumber;
const yearlyInterest =
usdtSupplyRate * 6000 - usdtBorrowRate * 6000 + usdcSupplyRate * 4000;
const APR = (totalYearlyComp + interest) / 10000;
usdtSupplyRate 他們是給 apy 但我懶得換算了差不多 所以直接乘下去