ERC-4626 function
maxDeposit(address)
Returns the maximum underlying asset amount currently accepted for a receiver.
- Selector
- 0x402d267d
- Mutability
- view
Generate maxDeposit calldata
Edit the example inputs to rebuild the bytes instantly in your browser. Nothing is sent and no transaction is submitted.
address
calldata36 bytes
sel0x402d267d
maxDeposit(address)
0x000000000000000000000000001111111111111111111111111111111111111111
receiver · address =0x11111111…111111
How maxDeposit works
This view accounts for current global and receiver-specific deposit limits. A return value of zero means the operation is currently disabled for that account.
Parameters
| Name | Solidity type | Meaning |
|---|---|---|
| receiver | address | Account whose deposit limit should be checked. |
Return value
The maximum assets amount that should not cause deposit to revert because of a limit.
uint256 resultReturn data comes back after execution and is not included in the calldata above.