Closed Senna46 closed 6 months ago
Change PT amount when minted
old PT mint amount = deposit * (1-(strategyAmount)/YT Supply)
PT mint amount = deposit * (1-(strategyAmount)/YT Supply)
new PT mint amount = deposit / deposit denom rate
PT mint amount = deposit / deposit denom rate
This makes theAPY when minted match the APY on the Strategy.
ex. 10 stATOM => 10 PT + 10YT
10 PT can be redeemed to 10 * deposit denom rate stATOM after maturity.
10 * deposit denom rate
10 YT can be redeemed to (vault amount - PT supply) * (YT redeem amount / YT supply) after maturity
(vault amount - PT supply) * (YT redeem amount / YT supply)
Use #732, close this.
Change PT amount when minted
old
PT mint amount = deposit * (1-(strategyAmount)/YT Supply)
new
PT mint amount = deposit / deposit denom rate
This makes theAPY when minted match the APY on the Strategy.
ex. 10 stATOM => 10 PT + 10YT
10 PT can be redeemed to
10 * deposit denom rate
stATOM after maturity.10 YT can be redeemed to
(vault amount - PT supply) * (YT redeem amount / YT supply)
after maturity