ApproveAndCall
Allows callers to approve the DragonswapV2 position manager from this contract, for any token, and then make calls into the position manager
Functions
tryApprove
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 |
balanceOf
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 |
Last updated