Skip to content

LLv2 admin settable#150

Open
romanagureev wants to merge 22 commits intomasterfrom
feat/settable-owner
Open

LLv2 admin settable#150
romanagureev wants to merge 22 commits intomasterfrom
feat/settable-owner

Conversation

@romanagureev
Copy link
Contributor

@romanagureev romanagureev commented Feb 12, 2026

  • Unfortunately have to return owner() for factory ownership since it is unintuitive on how to distinguish default admin(admin(empty(address))) and factory admin(better be admin(factory.address)).
  • Moved admin and fee_receiver functionality into separate modules

@github-actions
Copy link

github-actions bot commented Feb 12, 2026

Note: This analysis is qualitative; immutables aren't accounted for (static analysis on predeployment bytecode).

Runtime bytespace changes

curve_stablecoin/lending/LendController.vy

  • Base runtime size: 39475 bytes
  • Head runtime size: 39941 bytes
  • Delta: +466 bytes
Function Base (bytes) Head (bytes) Delta (bytes)
_available_balance 582 0 -582
on_borrowed_token_transfer_out 0 408 +408
_on_debt_increased 562 280 -282
on_borrowed_token_transfer_in 0 142 +142
available_balance 12 0 -12

curve_stablecoin/lending/LendFactory.vy

  • Base runtime size: 14017 bytes
  • Head runtime size: 15673 bytes
  • Delta: +1656 bytes
Function Base (bytes) Head (bytes) Delta (bytes)
set_custom_fee_receiver 502 0 -502
set_default_fee_receiver 392 0 -392
_set_default_fee_receiver 340 0 -340
set_fee_receiver_group 0 70 +70
set_fee_receiver_group_assignee 0 70 +70
set_admin_group 0 68 +68
set_admin_group_assignee 0 68 +68
add_fee_receiver_group 0 58 +58
add_admin_group 0 56 +56
admin 2 42 +40
fee_receiver 72 44 -28

curve_stablecoin/lending/Vault.vy

  • Base runtime size: 16289 bytes
  • Head runtime size: 16625 bytes
  • Delta: +336 bytes
Function Base (bytes) Head (bytes) Delta (bytes)
_total_assets 316 546 +230
deposit 1366 1406 +40
mint 1368 1408 +40
redeem 1138 1178 +40
withdraw 1130 1170 +40
_convert_to_assets 472 500 +28
_convert_to_shares 480 502 +22
lend_apr 644 666 +22
pricePerShare 452 464 +12
maxDeposit 164 174 +10
convertToAssets 112 116 +4
convertToShares 112 116 +4
maxMint 278 282 +4
maxRedeem 282 286 +4
maxWithdraw 284 288 +4
previewDeposit 112 116 +4
previewMint 110 114 +4
previewRedeem 112 116 +4
previewWithdraw 110 114 +4
totalAssets 12 16 +4

curve_stablecoin/zaps/PartialRepayZap.vy

  • Base runtime size: 7695 bytes
  • Head runtime size: 0 bytes
  • Delta: -7695 bytes
Function Base (bytes) Head (bytes) Delta (bytes)
liquidate_partial 3674 0 -3674
users_to_liquidate 3022 0 -3022
_x_down 252 0 -252

curve_stablecoin/zaps/PartialRepayZapCallback.vy

  • Base runtime size: 10405 bytes
  • Head runtime size: 0 bytes
  • Delta: -10405 bytes
Function Base (bytes) Head (bytes) Delta (bytes)
liquidate_partial 3670 0 -3670
users_to_liquidate 3022 0 -3022
callback_liquidate 1836 0 -1836
execute_callback 360 0 -360
_x_down 252 0 -252

curve_stablecoin/zaps/PartialRepayZapLending.vy

  • Base runtime size: 0 bytes
  • Head runtime size: 11289 bytes
  • Delta: +11289 bytes
Function Base (bytes) Head (bytes) Delta (bytes)
liquidate_partial 0 5022 +5022
_liquidate_partial 0 4802 +4802
users_to_liquidate 0 3230 +3230
_users_to_liquidate 0 3040 +3040
callback_liquidate 0 1220 +1220
_check_controller 0 754 +754
_get_controller 0 428 +428
_x_down 0 252 +252
FACTORY 0 8 +8

curve_stablecoin/zaps/PartialRepayZapMint.vy

  • Base runtime size: 0 bytes
  • Head runtime size: 10613 bytes
  • Delta: +10613 bytes
Function Base (bytes) Head (bytes) Delta (bytes)
liquidate_partial 0 5022 +5022
users_to_liquidate 0 3230 +3230
callback_liquidate 0 798 +798
_check_controller 0 332 +332
_get_controller 0 188 +188
FACTORY 0 8 +8

@romanagureev romanagureev changed the title WIP: LLv2 admin settable LLv2 admin settable Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant