IApproveAndCall
Functions
getApprovalType
Lens to be called off-chain to determine which (if any) of the relevant approval functions should be called
Parameters
Name | Type | Description |
---|---|---|
|
| The token to approve |
|
| The amount to approve |
Returns
Name | Type | Description |
---|---|---|
|
| The required approval type |
approveMax
Approves a token for the maximum possible amount
Parameters
Name | Type | Description |
---|---|---|
|
| The token to approve |
approveMaxMinusOne
Approves a token for the maximum possible amount minus one
Parameters
Name | Type | Description |
---|---|---|
|
| The token to approve |
approveZeroThenMax
Approves a token for zero, then the maximum possible amount
Parameters
Name | Type | Description |
---|---|---|
|
| The token to approve |
approveZeroThenMaxMinusOne
Approves a token for zero, then the maximum possible amount minus one
Parameters
Name | Type | Description |
---|---|---|
|
| The token to approve |
callPositionManager
Calls the position manager with arbitrary calldata
Parameters
Name | Type | Description |
---|---|---|
|
| Calldata to pass along to the position manager |
Returns
Name | Type | Description |
---|---|---|
|
| The result from the call |
mint
Calls the position manager's mint function
Parameters
Name | Type | Description |
---|---|---|
|
| Calldata to pass along to the position manager |
Returns
Name | Type | Description |
---|---|---|
|
| The result from the call |
increaseLiquidity
Calls the position manager's increaseLiquidity function
Parameters
Name | Type | Description |
---|---|---|
|
| Calldata to pass along to the position manager |
Returns
Name | Type | Description |
---|---|---|
|
| The result from the call |
Structs
MintParams
IncreaseLiquidityParams
Enums
ApprovalType
Last updated