onomyprotocol / reserve

Onomy Reserve Stablecoin Issuance Protocol
3 stars 1 forks source link

x/vaults: Update vaults debt by compound interest. #38

Open hieuvubk opened 3 weeks ago

hieuvubk commented 3 weeks ago

Example: have 5% annual and charge every day. Formula: newDebt = debt + debt * (5%/365)