IManager
Functions
callback
Gives the IManager
full control of the Borrower
. Called within Borrower.modify
.
In most cases, you'll want to verify that msg.sender
is, in fact, a Borrower
using
factory.isBorrower(msg.sender)
.
function callback(bytes calldata data, address owner, uint208 positions) external returns (uint208);
Parameters
Name | Type | Description |
---|---|---|
data | bytes | Encoded parameters that were passed to Borrower.modify |
owner | address | The owner of the Borrower |
positions | uint208 | The Borrower 's current Uniswap positions. You can convert them to an array using Positions.extract |
Returns
Name | Type | Description |
---|---|---|
<none> | uint208 | Updated positions, encoded using Positions.zip . Return 0 if you don't wish to make any changes. |