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
token
address
The token to approve
amount
uint256
The amount to approve
Returns
<none>
ApprovalType
The required approval type
approveMax
Approves a token for the maximum possible amount
Parameters
token
address
The token to approve
approveMaxMinusOne
Approves a token for the maximum possible amount minus one
Parameters
token
address
The token to approve
approveZeroThenMax
Approves a token for zero, then the maximum possible amount
Parameters
token
address
The token to approve
approveZeroThenMaxMinusOne
Approves a token for zero, then the maximum possible amount minus one
Parameters
token
address
The token to approve
callPositionManager
Calls the position manager with arbitrary calldata
Parameters
data
bytes
Calldata to pass along to the position manager
Returns
result
bytes
The result from the call
balanceOf
mint
Calls the position manager's mint function
Parameters
params
MintParams
Calldata to pass along to the position manager
Returns
result
bytes
The result from the call
increaseLiquidity
Calls the position manager's increaseLiquidity function
Parameters
params
IncreaseLiquidityParams
Calldata to pass along to the position manager
Returns
result
bytes
The result from the call
Last updated