ERC-4626 function
redeem(uint256,address,address)
Redeems an exact number of ERC-4626 vault shares for underlying assets.
- Selector
- 0xba087652
- Mutability
- nonpayable
Generate redeem calldata
Edit the example inputs to rebuild the bytes instantly in your browser. Nothing is sent and no transaction is submitted.
uint256
address
address
calldata100 bytes
sel0xba087652
redeem(uint256,address,address)
0x0000000000000000000000000000000000000000000000000000000000000f4240
shares · uint256 =1000000
0x200000000000000000000000002222222222222222222222222222222222222222
receiver · address =0x22222222…222222
0x400000000000000000000000001111111111111111111111111111111111111111
owner · address =0x11111111…111111
How redeem works
The vault burns exactly shares from owner and determines how many assets are sent to receiver.
Parameters
| Name | Solidity type | Meaning |
|---|---|---|
| shares | uint256 | Exact vault share amount to redeem. |
| receiver | address | Address that should receive the underlying assets. |
| owner | address | Account whose vault shares should be burned. |
Return value
The amount of underlying assets withdrawn.
uint256 assetsReturn data comes back after execution and is not included in the calldata above.