Skip to content
Monpediaby Unity Nodes
ClosedPull Request

Add MIP-19: reserve balance-compatible SETCODEFROM

by pdobaczCreated Oct 29, 2026monad-crypto/MIPs

ReferencesMIP-18MIP-19

Reserve Balance-Compatible SETCODEFROM Opcode

This MIP makes the SETCODEFROM opcode from EIP-8298 work under Monad's reserve balance rules.

SETCODEFROM follows the EIP-8298 spec, except that a delegated account can adopt regular code only in a transaction it sent or with an active reserve of 0. An account that adopts regular code in a transaction it sent stays under the reserve balance check for the adopting transaction and the rest of a k-block window; in-flight transactions of such an account that execute after the adoption are included, fail, and pay full gas.

I've taken the liberty to self-assign number 19, the next free number after MIP-18.

The design departs significantly from one I've posted for internal review. The material change is in the separate commit Specify in-flight transactions and restrict adoption to the sender or… for reference