ERC-7621 Basket Token
A multi-asset basket token with weighted constituents and owner-managed rebalancing.
ERC-165 interface ids
Computed here as the XOR of the selectors each interface defines.
| IERC7621 | 0xc9c80f73 |
Functions this standard introduces (11)
0xa1ee8feb | contribute(uint256[],address,uint256) | |
0x10d79f4d | getConstituents() | view |
0xc9a396e9 | getReserve(address) | view |
0xac6c5251 | getWeight(address) | view |
0x6a76d37b | isConstituent(address) | view |
0xd1602deb | previewContribute(uint256[]) | view |
0x0a28a477 | previewWithdraw(uint256) | view |
0x2be01190 | rebalance(address[],uint256[]) | |
0x28b50621 | totalBasketValue() | view |
0x1f39b64e | totalConstituents() | view |
0xb06c2075 | withdraw(uint256,address,uint256[]) |
Events (3)
Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.
0x65077443500d09fb9327fef77eb702295690f6c4456cb8f0923a095072b35f5a | Contributed(address,address,uint256,uint256[]) | |
0xfad1fb5b176de5b75745458f0d7ce9a4a85b06c7c1c03516650d3fea0e96391c | Withdrawn(address,address,uint256,uint256[]) | |
0xe3f655e86a2d47038eb04f7b87f9dea95da219cebf6126e515c1be343218293d | Rebalanced(address[],uint256[]) |
Custom errors (8)
0xab8b67c6 | LengthMismatch(uint256,uint256) | |
0x7c663b92 | InvalidWeights(uint256) | |
0x1f2a2005 | ZeroAmount() | |
0xd36931a9 | NotConstituent(address) | |
0xcb1d8bba | InsufficientShares(uint256,uint256) | |
0xa3a05223 | InsufficientAmount(uint256,uint256,uint256) | |
0xd7be0547 | DuplicateConstituent(address) | |
0xd92e233d | ZeroAddress() |
Depends on (3)
Proposals this one names in its requires field.
What the specification covers
Compare with
Parsed from the canonical specification · discussion