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

Sherlock-85: Limit index isn't checked in repayDebt, so user control is void #914

Closed grandizzy closed 1 year ago

grandizzy commented 1 year ago

Description of change

High level

Contract size

Pre Change

BorrowerActions          -  12,390B  (50.41%)

Post Change

BorrowerActions          -  12,390B  (50.41%)

Gas usage

Pre Change

| repayDebt                            | 576899          | 609055 | 598947 | 757317  | 16002   |

Post Change

| repayDebt                            | 587020          | 619176 | 609068 | 767438  | 16002   |