UnUniFi / chain

GNU General Public License v3.0
33 stars 14 forks source link

fix: pt amount calc #731

Closed Senna46 closed 6 months ago

Senna46 commented 7 months ago

Change PT amount when minted

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

Senna46 commented 6 months ago

Use #732, close this.