{"eip":7246,"title":"Encumber - Splitting Ownership \u0026 Guarantees","description":"A token interface to allow pledging tokens without transferring ownership.","authors":["Coburn Berry (@coburncoburn)","Mykel Pereira (@mykelp)","Scott Silver (@scott-silver)"],"status":"Review","type":"Standards Track","category":"ERC","created":"2023-06-27","requires":[20],"discussionsTo":"https://ethereum-magicians.org/t/encumber-extending-the-erc-20-token-standard-to-allow-pledging-tokens-without-giving-up-ownership/14849","repo":"ERCs","label":"ERC-7246","officialUrl":"https://eips.ethereum.org/EIPS/eip-7246","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7246.md","url":"https://eips.huatuo.xyz/eip-7246/","tldr":{"en":"An ERC-20 extension that lets a holder lock part of their balance in favour of another account without transferring it, giving a stronger guarantee than an allowance while the owner keeps the tokens.","ja":"保有者が残高の一部を、転送せずに別のアカウントのためにロックできる ERC-20 拡張。所有者がトークンを手元に置いたまま、allowance より強い保証を与えられる。","ko":"보유자가 잔액 일부를 전송하지 않고 다른 계정을 위해 잠글 수 있게 하는 ERC-20 확장. 소유자가 토큰을 그대로 가지고 있으면서도 allowance보다 강한 보장을 줄 수 있다.","zh":"一个 ERC-20 扩展，允许持有者在不转移代币的情况下，把部分余额为另一个账户锁定，在所有者保留代币的同时，提供比 allowance 更强的保证。"},"tags":["token","erc20","collateral","locking","extension"],"explainers":{"en":{"lang":"en","tldr":"An ERC-20 extension that lets a holder lock part of their balance in favour of another account without transferring it, giving a stronger guarantee than an allowance while the owner keeps the tokens.","tags":["token","erc20","collateral","locking","extension"],"related":[20,721,2612],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7246/","markdown":"## What problem does it solve?\n\nMany protocols need to be sure that tokens will be there when they need them: collateral for a loan, a bond for a service, a stake behind a promise. An [ERC-20](/eip-20/) allowance is not enough, because the owner can still spend the tokens after approving. So today users usually transfer tokens into the protocol's contract.\n\nThat has costs. The owner loses visible ownership, airdrops and other perks of holding go to the contract instead, and a single contract holding everyone's tokens is a honeypot that can be drained in one transfer. ERC-7246 (\"Encumber\") lets the tokens stay in the owner's wallet while guaranteeing another account the exclusive right to take them.\n\n## How it works\n\nAn encumbrance is like an allowance that the owner cannot undercut:\n\n- `encumber(taker, amount)` reserves `amount` of the caller's balance for `taker`. It reverts if the caller does not have that much unencumbered balance.\n- `encumberFrom(owner, taker, amount)` does the same on behalf of an owner who has authorised the caller through some mechanism (the reference implementation reuses the ERC-20 allowance).\n- `release(owner, amount)` is called by the taker to give up some or all of its claim.\n- `encumbrances(owner, taker)` and `encumberedBalanceOf(owner)` expose the per-taker and total locked amounts; `availableBalanceOf(owner)` is `balanceOf - encumberedBalanceOf`.\n- `Encumber` and `Release` events let indexers track changes.\n\nThe one hard rule: any function that would push `balanceOf(owner)` below `encumberedBalanceOf(owner)` must revert. So `transfer` only spends the available portion, and the taker collects by calling the ordinary `transferFrom`, which consumes its encumbrance first.\n\n## Sample code\n\nUsing an encumberable token as loan collateral (sketch):\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IERC7246 {\n    event Encumber(address indexed owner, address indexed taker, uint amount);\n    event Release(address indexed owner, address indexed taker, uint amount);\n    function encumberedBalanceOf(address owner) external returns (uint);\n    function encumbrances(address owner, address taker) external returns (uint);\n    function encumber(address taker, uint amount) external;\n    function encumberFrom(address owner, address taker, uint amount) external;\n    function release(address owner, uint amount) external;\n    function availableBalanceOf(address owner) external view returns (uint);\n}\n\ninterface IERC20 {\n    function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n\ncontract SimpleLender {\n    address public immutable token; // ERC-20 + ERC-7246\n\n    constructor(address t) { token = t; }\n\n    // Borrower first calls token.encumber(address(this), amount) themselves.\n    function repaid(address borrower, uint amount) external /* onlyAuthorized */ {\n        IERC7246(token).release(borrower, amount);          // unlock collateral\n    }\n\n    function liquidate(address borrower, uint amount) external /* onlyAuthorized */ {\n        IERC20(token).transferFrom(borrower, address(this), amount); // seize it\n    }\n}\n```\n\n## Things to know\n\n- Status: **Review**. The interface may still change before it is finalised.\n- Integrators that read `balanceOf` to decide what a user can spend should use `availableBalanceOf` (or `balanceOf - encumberedBalanceOf`) instead.\n- Rebasing tokens, admin burns or any other path that changes balances must add their own guards so balances never fall below the encumbered amount.\n- How `encumberFrom` is authorised is left to the implementer; the reference code reuses `approve`, but a separate `approveEncumber` is also allowed.\n- The authors note the same idea can be adapted to [ERC-721](/eip-721/) by treating `amount` as a `tokenId`, but the interface is written for ERC-20.\n"},"ja":{"lang":"ja","tldr":"保有者が残高の一部を、転送せずに別のアカウントのためにロックできる ERC-20 拡張。所有者がトークンを手元に置いたまま、allowance より強い保証を与えられる。","tags":["token","erc20","collateral","locking","extension"],"related":[20,721,2612],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7246/","markdown":"## 何を解決するのか\n\n多くのプロトコルは、必要なときにトークンが確実に存在していることを求めます。ローンの担保、サービスの保証金、約束の裏付けとなるステークなどです。[ERC-20](/eip-20/) の allowance では不十分です。承認したあとでも、所有者はトークンを使えてしまうからです。そのため現状では、ユーザーは通常、プロトコルのコントラクトにトークンを転送します。\n\nこれにはコストがあります。所有者は目に見える所有権を失い、エアドロップなど保有に伴う特典はコントラクト側に渡り、全員のトークンを 1 つのコントラクトが持つことは、1 回の転送で抜き取られかねないハニーポットになります。ERC-7246（「Encumber」）は、トークンを所有者のウォレットに置いたまま、別のアカウントにそれを取得する排他的な権利を保証します。\n\n## 仕組み\n\nencumbrance は、所有者が骨抜きにできない allowance のようなものです。\n\n- `encumber(taker, amount)` は、呼び出し元の残高のうち `amount` を `taker` のために確保します。呼び出し元に、それだけの encumber されていない残高がなければ revert します。\n- `encumberFrom(owner, taker, amount)` は、何らかの仕組みで呼び出し元に権限を与えた所有者に代わって同じことを行います（リファレンス実装は ERC-20 の allowance を流用します）。\n- `release(owner, amount)` は taker が呼び出し、請求権の一部または全部を手放します。\n- `encumbrances(owner, taker)` と `encumberedBalanceOf(owner)` は、taker ごとのロック量と合計のロック量を公開します。`availableBalanceOf(owner)` は `balanceOf - encumberedBalanceOf` です。\n- `Encumber` と `Release` イベントにより、インデクサーが変更を追跡できます。\n\n唯一の厳格なルールは、`balanceOf(owner)` を `encumberedBalanceOf(owner)` より下に押し下げる関数はすべて revert しなければならないことです。そのため `transfer` は利用可能な分しか使えず、taker は通常の `transferFrom` を呼んで回収します。このとき、まず自身の encumbrance が消費されます。\n\n## サンプルコード\n\nencumber 可能なトークンをローンの担保として使う例（スケッチ）:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IERC7246 {\n    event Encumber(address indexed owner, address indexed taker, uint amount);\n    event Release(address indexed owner, address indexed taker, uint amount);\n    function encumberedBalanceOf(address owner) external returns (uint);\n    function encumbrances(address owner, address taker) external returns (uint);\n    function encumber(address taker, uint amount) external;\n    function encumberFrom(address owner, address taker, uint amount) external;\n    function release(address owner, uint amount) external;\n    function availableBalanceOf(address owner) external view returns (uint);\n}\n\ninterface IERC20 {\n    function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n\ncontract SimpleLender {\n    address public immutable token; // ERC-20 + ERC-7246\n\n    constructor(address t) { token = t; }\n\n    // Borrower first calls token.encumber(address(this), amount) themselves.\n    function repaid(address borrower, uint amount) external /* onlyAuthorized */ {\n        IERC7246(token).release(borrower, amount);          // unlock collateral\n    }\n\n    function liquidate(address borrower, uint amount) external /* onlyAuthorized */ {\n        IERC20(token).transferFrom(borrower, address(this), amount); // seize it\n    }\n}\n```\n\n## 知っておくべきこと\n\n- ステータス: **Review**。確定するまでにインターフェースが変わる可能性があります。\n- ユーザーが使える額を `balanceOf` で判断しているインテグレーターは、代わりに `availableBalanceOf`（または `balanceOf - encumberedBalanceOf`）を使うべきです。\n- リベーストークン、管理者によるバーン、そのほか残高を変えるあらゆる経路は、残高が encumber された額を下回らないよう、独自のガードを追加する必要があります。\n- `encumberFrom` をどう認可するかは実装者に委ねられています。リファレンスコードは `approve` を流用しますが、別の `approveEncumber` を用意してもかまいません。\n- 作者らは、`amount` を `tokenId` とみなせば同じ考え方を [ERC-721](/eip-721/) にも応用できると述べていますが、インターフェースは ERC-20 向けに書かれています。\n"},"ko":{"lang":"ko","tldr":"보유자가 잔액 일부를 전송하지 않고 다른 계정을 위해 잠글 수 있게 하는 ERC-20 확장. 소유자가 토큰을 그대로 가지고 있으면서도 allowance보다 강한 보장을 줄 수 있다.","tags":["token","erc20","collateral","locking","extension"],"related":[20,721,2612],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7246/","markdown":"## 어떤 문제를 해결하나요?\n\n많은 프로토콜은 필요할 때 토큰이 확실히 있어야 합니다. 대출 담보, 서비스 보증금, 약속을 뒷받침하는 스테이크 같은 경우입니다. [ERC-20](/eip-20/) allowance로는 부족합니다. 승인한 뒤에도 소유자가 토큰을 쓸 수 있기 때문입니다. 그래서 현재는 사용자가 보통 프로토콜의 컨트랙트로 토큰을 전송합니다.\n\n여기에는 비용이 따릅니다. 소유자는 눈에 보이는 소유권을 잃고, 에어드롭 같은 보유 혜택은 컨트랙트로 가 버리며, 한 컨트랙트가 모두의 토큰을 들고 있으면 한 번의 전송으로 털릴 수 있는 허니팟이 됩니다. ERC-7246(\"Encumber\")은 토큰이 소유자의 지갑에 남아 있게 하면서, 다른 계정에 그 토큰을 가져갈 배타적 권리를 보장합니다.\n\n## 어떻게 동작하나요?\n\nencumbrance는 소유자가 무력화할 수 없는 allowance와 같습니다.\n\n- `encumber(taker, amount)`는 호출자 잔액 중 `amount`를 `taker`를 위해 확보합니다. 호출자에게 encumber되지 않은 잔액이 그만큼 없으면 revert합니다.\n- `encumberFrom(owner, taker, amount)`는 어떤 방식으로든 호출자에게 권한을 준 소유자를 대신해 같은 일을 합니다(레퍼런스 구현은 ERC-20 allowance를 재사용합니다).\n- `release(owner, amount)`는 taker가 호출해 자신의 권리 일부 또는 전부를 포기합니다.\n- `encumbrances(owner, taker)`와 `encumberedBalanceOf(owner)`는 taker별 잠금량과 전체 잠금량을 보여 주며, `availableBalanceOf(owner)`는 `balanceOf - encumberedBalanceOf`입니다.\n- `Encumber`와 `Release` 이벤트로 인덱서가 변경 사항을 추적할 수 있습니다.\n\n유일한 절대 규칙은, `balanceOf(owner)`를 `encumberedBalanceOf(owner)` 아래로 떨어뜨리는 함수는 모두 revert해야 한다는 것입니다. 따라서 `transfer`는 사용 가능한 부분만 쓸 수 있고, taker는 일반 `transferFrom`을 호출해 가져가며 이때 자신의 encumbrance가 먼저 소모됩니다.\n\n## 샘플 코드\n\nencumber 가능한 토큰을 대출 담보로 사용하는 예(스케치):\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IERC7246 {\n    event Encumber(address indexed owner, address indexed taker, uint amount);\n    event Release(address indexed owner, address indexed taker, uint amount);\n    function encumberedBalanceOf(address owner) external returns (uint);\n    function encumbrances(address owner, address taker) external returns (uint);\n    function encumber(address taker, uint amount) external;\n    function encumberFrom(address owner, address taker, uint amount) external;\n    function release(address owner, uint amount) external;\n    function availableBalanceOf(address owner) external view returns (uint);\n}\n\ninterface IERC20 {\n    function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n\ncontract SimpleLender {\n    address public immutable token; // ERC-20 + ERC-7246\n\n    constructor(address t) { token = t; }\n\n    // Borrower first calls token.encumber(address(this), amount) themselves.\n    function repaid(address borrower, uint amount) external /* onlyAuthorized */ {\n        IERC7246(token).release(borrower, amount);          // unlock collateral\n    }\n\n    function liquidate(address borrower, uint amount) external /* onlyAuthorized */ {\n        IERC20(token).transferFrom(borrower, address(this), amount); // seize it\n    }\n}\n```\n\n## 알아둘 점\n\n- 상태: **Review**. 확정되기 전에 인터페이스가 바뀔 수 있습니다.\n- 사용자가 쓸 수 있는 양을 `balanceOf`로 판단하는 통합 측은 대신 `availableBalanceOf`(또는 `balanceOf - encumberedBalanceOf`)를 써야 합니다.\n- 리베이스 토큰, 관리자 소각, 그 밖에 잔액을 바꾸는 모든 경로는 잔액이 encumber된 양 아래로 내려가지 않도록 자체 보호 장치를 추가해야 합니다.\n- `encumberFrom`을 어떻게 승인할지는 구현자에게 맡겨져 있습니다. 레퍼런스 코드는 `approve`를 재사용하지만 별도의 `approveEncumber`도 허용됩니다.\n- 저자들은 `amount`를 `tokenId`로 보면 같은 아이디어를 [ERC-721](/eip-721/)에도 적용할 수 있다고 하지만, 인터페이스는 ERC-20용으로 작성되어 있습니다.\n"},"zh":{"lang":"zh","tldr":"一个 ERC-20 扩展，允许持有者在不转移代币的情况下，把部分余额为另一个账户锁定，在所有者保留代币的同时，提供比 allowance 更强的保证。","tags":["token","erc20","collateral","locking","extension"],"related":[20,721,2612],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7246/","markdown":"## 它解决什么问题？\n\n许多协议需要确保代币在需要时一定在：贷款的抵押品、服务的保证金、对某项承诺的质押。[ERC-20](/eip-20/) 的 allowance 并不够，因为所有者在授权之后仍然可以花掉这些代币。所以如今用户通常要把代币转入协议的合约。\n\n这有代价。所有者失去了可见的所有权，空投等持有带来的福利会归合约所有，而由一个合约持有所有人的代币，就成了一个一次转账就能被掏空的蜜罐。ERC-7246（\"Encumber\"）让代币留在所有者的钱包里，同时保证另一个账户拥有取走它们的独占权利。\n\n## 它如何运作\n\nencumbrance 就像一个所有者无法架空的 allowance：\n\n- `encumber(taker, amount)` 为 `taker` 预留调用者余额中的 `amount`。如果调用者没有那么多未被占用的余额，则回滚。\n- `encumberFrom(owner, taker, amount)` 代表一个已通过某种机制授权调用者的所有者执行同样的操作（参考实现复用了 ERC-20 的 allowance）。\n- `release(owner, amount)` 由 taker 调用，用来放弃其部分或全部权利。\n- `encumbrances(owner, taker)` 和 `encumberedBalanceOf(owner)` 公开每个 taker 的锁定数量和总锁定数量；`availableBalanceOf(owner)` 等于 `balanceOf - encumberedBalanceOf`。\n- `Encumber` 和 `Release` 事件让索引器可以跟踪变化。\n\n唯一的硬性规则：任何会使 `balanceOf(owner)` 低于 `encumberedBalanceOf(owner)` 的函数都必须回滚。因此 `transfer` 只能花费可用部分，而 taker 通过调用普通的 `transferFrom` 来领取，它会先消耗自己的 encumbrance。\n\n## 示例代码\n\n把可 encumber 的代币用作贷款抵押品（示意）：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IERC7246 {\n    event Encumber(address indexed owner, address indexed taker, uint amount);\n    event Release(address indexed owner, address indexed taker, uint amount);\n    function encumberedBalanceOf(address owner) external returns (uint);\n    function encumbrances(address owner, address taker) external returns (uint);\n    function encumber(address taker, uint amount) external;\n    function encumberFrom(address owner, address taker, uint amount) external;\n    function release(address owner, uint amount) external;\n    function availableBalanceOf(address owner) external view returns (uint);\n}\n\ninterface IERC20 {\n    function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n\ncontract SimpleLender {\n    address public immutable token; // ERC-20 + ERC-7246\n\n    constructor(address t) { token = t; }\n\n    // Borrower first calls token.encumber(address(this), amount) themselves.\n    function repaid(address borrower, uint amount) external /* onlyAuthorized */ {\n        IERC7246(token).release(borrower, amount);          // unlock collateral\n    }\n\n    function liquidate(address borrower, uint amount) external /* onlyAuthorized */ {\n        IERC20(token).transferFrom(borrower, address(this), amount); // seize it\n    }\n}\n```\n\n## 需要注意\n\n- 状态：**Review**。在最终确定之前，接口仍可能变化。\n- 通过读取 `balanceOf` 来判断用户可花费额度的集成方，应改用 `availableBalanceOf`（或 `balanceOf - encumberedBalanceOf`）。\n- Rebase 代币、管理员销毁或任何其他会改变余额的路径，都必须自行添加保护，确保余额绝不会低于被 encumber 的数量。\n- `encumberFrom` 如何授权由实现者决定；参考代码复用了 `approve`，但也允许另设一个 `approveEncumber`。\n- 作者指出，把 `amount` 当作 `tokenId`，同样的思路可以适配到 [ERC-721](/eip-721/)，但接口是针对 ERC-20 编写的。\n"}}}
