onomyprotocol / reserve

Onomy Reserve Stablecoin Issuance Protocol
7 stars 1 forks source link

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

Open hieuvubk opened 1 month ago

hieuvubk commented 1 month ago

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