ajna-finance / ajna-core

The Ajna protocol is a non-custodial, peer-to-peer, permissionless lending, borrowing and trading system that requires no governance or external price feeds to function.
https://www.ajna.finance/
Other
31 stars 11 forks source link

Fix HTP calculation in invariant logic #1042

Closed grandizzy closed 11 months ago

grandizzy commented 11 months ago

Description

Invariant invariant_fenwick was failing because invariant logic for interest accrual was using the pending inflator to calculate HTP instead current pool inflator.

Purpose

Impact

Tasks