Resolving 2300 Gas Reverts for Smart Contract Wallets in ENS Controller
A developer is requesting a retroactive grant from the ENS Foundation or DAO for a fix to ENS smart contracts that replaces .transfer() with .call() to support smart contract wallets like Gnosis Safe and ERC-4337 accounts. The work includes updating ETHRegistrarController.sol, BulkRenewal.sol, and StaticBulkRenewal.sol, along with a Foundry test suite. Applicants should review and merge GitHub PR #577 and consider funding the engineering and testing effort.
Eligibility: ENS core development team and community reviewers; grant request directed at ENS Foundation / DAO
Pipeline
Funder track record Β· does ENS DAO actually pay grants?
π‘ Some payout evidence Β· 5 grantees found Β· last payout 2025-07-01 Β· checked 2026-10-24 Β· 0 forum reports, 7 web pages read, 22 unverifiable claims dropped
Proven payer: at least 3 named grantees and one payout in the last 90 days. Every grantee below is quoted word for word from its source. When a source does not date a grant, the date is when that page or post was published.
| Grantee | Amount | Date | Evidence |
|---|---|---|---|
| evmone | $14,588 | 2025-07-01 | βThis grant funds the work of one engineer to continue maintaining evmone.β source |
| Clave | β | 2024-07-18 page date | βWe've proudly announced that Clave become one of the Public Goods 2023 granteesβ source |
| GasHawk | β | 2024-07-18 page date | βGashawk used part of its grant to subsidize user fees and developed webhooks, a browser extension, and multi-chain support.β source |
| Revoke.cash | β | 2024-07-18 page date | βRevoke.cash used its grant to develop NFT pricing data and integrate "Value at Risk" alerts for risky approvals.β source |
| 10kclub | $10k | 2022-06-01 | βENS DAO provided $10k of funding to the 10kclubβ source |
| Revoke.cash | β | undated | β1 Revoke.cash Public Goods 6 rounds ~56.6% avg share of round 3.7M voting powerβ source |
Trust breakdown (3/4 checkable facts verified)
| Signal | Weight | Result | Note |
|---|---|---|---|
| deadline | 0.35 | 0% | rolling claimed but not stated |
| amount | 0.25 | 100% | figure appears in source |
| apply link | 0.075 | 100% | link in source |
| funder | 0.075 | 100% | named in source |
| source quality | 0.15 | 60% | forum post |
| model confidence | 0.1 | 60% | model self-report |
Fit breakdown (against the ORG_* profile)
| Signal | Weight | Result | Note |
|---|---|---|---|
| model fit | 0.5 | 70% | model rated 70% |
| ecosystem overlap | 0.25 | 0% | ethereum vs aleo |
| category overlap | 0.15 | 33% | infra, dev_tooling vs zk, privacy, infra, dev_tooling, security, interoperability |
| tech overlap | 0.1 | 0% | solidity, foundry vs rust, leo, zk |
Sources (1)
| Role | Document | From | Fetched |
|---|---|---|---|
| primary | Proposal & Core Contribution] Resolving 2300 Gas Reverts for Smart Contract Wallets (ERC-4337 & Safe) in ENS Controller β PR #577 | ENS forum | 2026-10-03 |
History (1)
| v | Changed | Fields |
|---|---|---|
| 1 | 2026-10-23 | created |
Extracted text
**Category:** Ecosystem / Development
**Author:** Boreal-Proof ([@aeosproof](https://github.com/aeosproof))
**GitHub Pull Request:** [ensdomains/ens-contracts#577](https://github.com/ensdomains/ens-contracts/pull/577)
**Status:** Open / Ready for Review
```
---
## Executive Summary
We have submitted:**Pull Request [#577](https://github.com/ensdomains/ens-contracts/pull/577)** to `ensdomains/ens-contracts` to address a compatibility limitation affecting Smart Contract Wallets (e.g., Gnosis Safe, Argent,ERC-4337 Smart Accounts) during .eth name registrations and renewals.
```
```
Currently, `ETHRegistrarController.sol` and `BulkRenewal.sol` rely on Solidity's built-in `.transfer()` to return excess ETH refunds. Because `.transfer()` forwards a fixed stipend of only **2,300 gas**, transactions initiatedby smart contract accounts that perform event logging or state updates in their receive() functions consistently revert with Out of Gas (OOG).
```
````
PR #577 replaces `.transfer()` with modern `.call{value: ...}("")` across the affected contracts, accompanied by reproducible Foundry unit tests. We are submitting this proposal to:
1. Solicit feedback and review from the ENS core development team.
2. Request ecosystem grant / retroactive public goods consideration from the ENS Foundation for this core infrastructure improvement.
---
## Background & Motivation
When users register or renew names via `ETHRegistrarController`, they frequently provide extra ETH (`msg.value > totalPrice`) to account for oracle price fluctuations or slippage during commitment-reveal intervals.
When surplus ETH is refunded:
```solidity
if (msg.value > totalPrice)
payable(msg.sender).transfer(msg.value - totalPrice);
````
### [](#p-62499-the-problem-1)The Problem:
β’ .transfer() forwards a hardcoded 2,300 gas stipend.
β’ Following EIP-1884 (gas repricing) and the standard adoption of Smart Contract Wallets (Gnosis Safe multi-sigs, DAOs, ERC-4337 bundler targets), almost all smart accounts execute logic (e.g., emit ExecutionSuccess, state
bookkeeping, or module delegation) in their receive() or fallback() hooks that consumes significantly more than 2,300 gas.
β’ As a result, DAOs and institutional multi-sig vaults attempting to register names with a buffer revert, creating a broken user experience for Ethereumβs most security-conscious participants.
β’ Furthermore, in ETHRegistrarController.sol, the owner withdrawal function withdraw() uses .transfer(address(this).balance). If the contract owner is a timelock or multisig requiring >2,300 gas, withdrawals can be permanently
locked out.
ββββββ
## [](#p-62499-technical-specification-pull-request-577-2)Technical Specification & Pull Request #577
PR #577 introduces a drop-in update to replace .transfer() with low-level .call and boolean verification:
### [](#p-62499-affected-files-3)Affected Files:
1. contracts/ethregistrar/ETHRegistrarController.sol (lines 344, 371, 376):
β’ register(): Surplus refund updated to .call.
β’ renew(): Surplus refund updated to .call.
β’ withdraw(): Owner balance withdrawal updated to .call.
2. contracts/ethregistrar/BulkRenewal.sol (line 73):
β’ renewAll(): Excess refund updated to .call.
3. contracts/ethregistrar/StaticBulkRenewal.sol (line 54):
β’ renewAll(): Excess refund updated to .call.
### [](#p-62499-security-reentrancy-analysis-checks-effects-interactions-4)Security & Reentrancy Analysis (Checks-Effects-Interactions):
In all instances, the external .call is executed strictly after:
β’ All state mutations are finalized (resolver configuration, reverse record bitwise checks, expiry updates).
β’ All canonical events are emitted (emit NameRegistered, emit NameRenewed).
β’ Execution follows the strict Checks-Effects-Interactions pattern, mitigating reentrancy attack vectors.
ββββββ
## [](#p-62499-verification-unit-testing-5)Verification & Unit Testing
To ensure 100% test reproducibility, PR #577 includes a dedicated Foundry test suite in test/SmartWalletRefundTest.t.sol:
```
contract SmartWalletRefundTest is Test {
// Validates that legacy .transfer reverts on Smart Accounts with active receive() hooks
function test_legacyTransferRevertsForSmartWallet() public;
// Validates that modern .call successfully delivers 100% of the surplus refund
function test_modernCallSucceedsForSmartWallet() public;
}
```
### [](#p-62499-test-results-6)Test Results:
```
forge test --match-contract SmartWalletRefundTest
[PASS] test_legacyTransferRevertsForSmartWallet() (gas: 50297)
[PASS] test_modernCallSucceedsForSmartWallet() (gas: 71964)
Suite result: ok. 2 passed; 0 failed; 0 skipped
```
ββββββ
## [](#p-62499-funding-request-community-value-7)Funding Request & Community Value
Account Abstraction and institutional multi-sig adoption are core pillars of Ethereumβs roadmap. Ensuring that ENS registration controllers natively support smart contract accounts without artificial 2,300 gas reverts is essential
public infrastructure.
We respectfully request:
1. Core Review: Review and merge of PR #577 [fix(ethregistrar): replace .transfer() with .call() to support smart contract wallets by aeosproof Β· Pull Request #577 Β· ensdomains/ens-contracts Β· GitHub](https://github.com/ensdomains/ens-contracts/pull/577) into staging.
2. Retroactive Grant / Public Goods Funding: Consideration from the ENS Foundation / DAO for a developer grant ($3,000 β $7,500 USDC) to cover the research, engineering, formalization, and test suite implementation of this
compatibility patch.
We look forward to collaborating with the ENS team and community on this implementation!