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

Contract size mitigation #1004

Closed EdNoepel closed 11 months ago

EdNoepel commented 11 months ago

Description

Moved some things around to get ERC721Pool to fit within contract size boundaries.

Since a max amount is passed as a parameter, withdrawBonds now returns the actual amount withdrawn, consistent with other methods.

Purpose

Impact

Additional gas consumption:

Considered reverting the debtInfo change, but we're still quite close to the size limit.

Tasks