ERC-8161 · Final · ERC · 2025-02-12
ERC-8161: Transferable Tokenized Vault Requests
An optional extension to ERC-7540 asynchronous vaults that lets a controller hand a pending deposit or redeem request to another address without cancelling and resubmitting it.
What problem does it solve?
ERC-7540 vaults handle deposits and redemptions asynchronously: you submit a Request, it sits Pending until the vault processes it, then it becomes Claimable. The pending phase can last a long time (for example in real-world-asset vaults with periodic settlement). During that time, the position is stuck to the controller's address: there is no way to move it to a new wallet, restructure accounts or let another protocol take it over.
This extension adds a standard way to transfer a pending Request, which also opens the door to secondary markets for queued positions.
How it works
Two independent interfaces; a vault may implement either, both, or neither:
| Interface | Function | Event | ERC-165 ID |
|---|---|---|---|
IERC7540DepositTransferable |
transferDepositRequest(requestId, oldController, newController) |
TransferDepositRequest |
0x53b3bb0a |
IERC7540RedeemTransferable |
transferRedeemRequest(requestId, oldController, newController) |
TransferRedeemRequest |
0x7846f5bd |
Rules:
- Only the Pending balance moves, and always the entire pending balance for that
requestId. Claimable balances are untouched. - After the call,
pending…Request(requestId, oldController)drops andnewController's rises by the same amount (less any fees). - The caller must be
oldControlleror an operator it approved under ERC-7540. - Each event logs
requestId,from,to(all indexed) andsender.
Sample code
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
interface IERC7540DepositTransferable {
event TransferDepositRequest(
uint256 indexed requestId, address indexed from, address indexed to, address sender
);
function transferDepositRequest(uint256 requestId, address oldController, address newController) external;
}
interface IERC7540RedeemTransferable {
event TransferRedeemRequest(
uint256 indexed requestId, address indexed from, address indexed to, address sender
);
function transferRedeemRequest(uint256 requestId, address oldController, address newController) external;
}
Detecting support and migrating a pending deposit (ethers v6):
import { Contract } from "ethers";
const vault = new Contract(vaultAddress, [
"function supportsInterface(bytes4) view returns (bool)",
"function transferDepositRequest(uint256,address,address)",
], signer);
if (await vault.supportsInterface("0x53b3bb0a")) {
await (await vault.transferDepositRequest(0n, oldWallet, newWallet)).wait();
}
Things to know
- Status is Final.
- Granting an ERC-7540 operator now also lets it move your pending Requests to any address. Only approve operators you fully trust.
- Pending Requests have no on-chain price: the exchange rate is unknown until fulfilment. Anyone building a market for them must handle pricing themselves.
- Vaults may choose to allow only one direction, for example transferable deposits but not redeems, depending on their accounting.