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

_nextId as uint256 to save masking cost #932

Closed brianmcmichael closed 1 year ago

brianmcmichael commented 1 year ago

Description of change

High level

Description of bug or vulnerability and solution

Contract size

Pre Change

src/PositionManager.sol:PositionManager contract
Deployment Cost Deployment Size
3852018 19835

Post Change

src/PositionManager.sol:PositionManager contract
Deployment Cost Deployment Size
3835163 19737

Gas usage

Pre Change

src/PositionManager.sol:PositionManager contract
mint 10462 81694 79384 100184 105

Post Change

src/PositionManager.sol:PositionManager contract
Function Name min avg median max # calls
mint 10462 81451 79139 99939 105