VenusProtocol / venus-protocol

BNB Smart Chain Venus Protocol
BSD 3-Clause "New" or "Revised" License
255 stars 169 forks source link

[VEN-2599]: allow specifying amounts during batch repayments #482

Closed kkirka closed 5 months ago

kkirka commented 5 months ago

This change allows to specify the exact repayment amounts during batch repayments for both VAI and vTokens. Although technically this is a breaking change, it is located in a governance utility contract, which is unlikely to be used by integrations, so it's marked as feat:.

github-actions[bot] commented 5 months ago

Code Coverage

Package Line Rate Branch Rate Health
contracts 100% 100%
contracts.Admin 88% 41%
contracts.Comptroller 100% 90%
contracts.Comptroller.Diamond 95% 59%
contracts.Comptroller.Diamond.facets 75% 65%
contracts.Comptroller.Diamond.interfaces 100% 100%
contracts.DelegateBorrowers 100% 89%
contracts.Governance 68% 45%
contracts.InterestRateModels 47% 67%
contracts.Lens 45% 37%
contracts.Liquidator 83% 60%
contracts.Oracle 100% 100%
contracts.PegStability 88% 84%
contracts.Swap 90% 58%
contracts.Swap.interfaces 100% 100%
contracts.Swap.lib 81% 55%
contracts.Tokens 100% 100%
contracts.Tokens.Prime 96% 72%
contracts.Tokens.Prime.Interfaces 100% 100%
contracts.Tokens.Prime.libs 90% 76%
contracts.Tokens.VAI 81% 53%
contracts.Tokens.VRT 20% 9%
contracts.Tokens.VTokens 64% 47%
contracts.Tokens.XVS 19% 8%
contracts.Utils 50% 30%
contracts.VAIVault 50% 45%
contracts.VRTVault 49% 36%
contracts.XVSVault 64% 50%
contracts.lib 89% 71%
Summary 70% (3281 / 4699) 50% (1218 / 2436)