ERC-7425 · Draft · ERC · 2023-06-30
ERC-7425: Tokenized Reserve
A draft ERC-4626 extension for an on-chain reserve fund, where every withdrawal must go through a recorded proposal and stakeholders deposit into proposals for shares, so the fund's activity is auditable.
What problem does it solve?
Organisations often keep a reserve fund for contingencies: money that is only spent when agreed conditions are met. On-chain, such a reserve is usually just a multisig or a contract balance, and outsiders have no standard way to see what was put in, what was taken out, and why.
ERC-7425 proposes a "tokenized reserve": a vault built on ERC-4626 where deposits, withdrawals and the reasons for them are recorded in a common format. Stakeholders can take part by depositing into specific proposals and receiving vault shares, and anyone can read the history.
How it works
The spec defines a few roles: the owner who creates the reserve, users (stakeholders) who join proposals, and the reserve itself, meaning ERC-20 tokens held by the contract other than the vault's underlying asset.
- Proposals gate spending. The owner calls
openProposal(token, amount, receiver)to take tokens out of the reserve. The spec says a proposal must be open before any tokens leave, and this must be the only way to withdraw reserve tokens. It returns a proposal number. - Stakeholders back proposals.
proposalDeposit(assets, receiver, proposal)wraps ERC-4626depositso shares are minted against a specific open proposal.proposalWithdraw(...)burns shares and returns the underlying asset, tied to the same proposal. - Owner bookkeeping.
depositReserve(token, sender, amount)records owner funding without minting shares.closeProposal(token, proposal, amount, close)can top up and/or close a proposal. - Read functions such as
ownerDeposit,ownerWithdrawals,tokenDeposit,tokenWithdrawal,userDepositanduserWithdrawalsexpose the record per deposit count, proposal and user. EventspoliciesanddepositRlog activity.
The constructor takes an ERC-20 name and ticker for the share token, the underlying asset, an owner rOwner and an optional authorised party rAuth to limit owner withdrawals.
Sample code
Reading a reserve's record with ethers v6. The ABI fragments follow the draft interface.
import { Contract, JsonRpcProvider, formatUnits } from "ethers";
const abi = [
"function ownerWithdrawals(uint256 proposal) view returns (uint256)",
"function tokenWithdrawal(uint256 proposal) view returns (address)",
"function userDeposit(address user, uint256 proposal) view returns (uint256)",
"function proposalDeposit(uint256 assets, address receiver, uint256 proposal) returns (uint256)",
];
const provider = new JsonRpcProvider(process.env.RPC_URL);
const reserve = new Contract(process.env.RESERVE!, abi, provider);
const proposal = 1n;
const [token, out] = await Promise.all([
reserve.tokenWithdrawal(proposal),
reserve.ownerWithdrawals(proposal),
]);
console.log(`proposal ${proposal}: ${formatUnits(out, 18)} of ${token} withdrawn`);
console.log("my backing:", await reserve.userDeposit(process.env.ME!, proposal));
Things to know
- Status: Draft. The interface is rough (some names and parameters may change), and it does not define how stakeholder support is counted or turned into a decision; that is left to implementers.
- The security section warns that, depending on implementation, the owner may still be able to withdraw the underlying asset without restriction. Check how
openProposalandrAuthare enforced before trusting a reserve. - Depositing through plain ERC-4626
deposit()bypasses proposal accounting; the spec saysproposalDepositshould be the only deposit path. - All ERC-20 and ERC-4626 security considerations (rounding, share inflation, etc.) still apply.