Closed EdNoepel closed 11 months ago
Moved some things around to get ERC721Pool to fit within contract size boundaries.
ERC721Pool
debtInfo
PoolCommons
withdrawBonds
KickerActions
Since a max amount is passed as a parameter, withdrawBonds now returns the actual amount withdrawn, consistent with other methods.
Additional gas consumption:
Considered reverting the debtInfo change, but we're still quite close to the size limit.
Description
Moved some things around to get
ERC721Pool
to fit within contract size boundaries.debtInfo
logic intoPoolCommons
, saving 10 bytes.withdrawBonds
intoKickerActions
library, saving 46 bytes (h/t @MikeHathaway)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:
debtInfo
cost went from 5784 to 7756withdrawBonds
cost went from 10045 to 10784Considered reverting the
debtInfo
change, but we're still quite close to the size limit.Tasks