IManager

Git Source

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

NameTypeDescription
databytesEncoded parameters that were passed to Borrower.modify
owneraddressThe owner of the Borrower
positionsuint208The Borrower's current Uniswap positions. You can convert them to an array using Positions.extract

Returns

NameTypeDescription
<none>uint208Updated positions, encoded using Positions.zip. Return 0 if you don't wish to make any changes.