The Hypervisor contract allows for LPs to deposit tokens using the deposit function. The function allows for both single and double-asset deposits to be made from any account, choosing amounts of token0, token1, and a recipient of the LP ownership shares that represent ownership of the deposit. At most only one of the two assets can have a value deposited amount of zero.
When a Hypervisor receives a deposit, it mints a fungible LP ERC20 token which represents fractional ownership in the pool, therefore maintaining self-custody of funds while taking advantage of high-return LP strategies. These shares are minted in proportion to the units of token1 that is provided into the pool, with the token0 amount (if any) converted using the current pool price. These tokens are transferred to the LP token account specified by the depositor. For example, a Gnosis Safe can call the deposit function, supplying 40 WETH, 100k USDT and provide its own account address as the LP token recipient. Upon deposit, the Gnosis Safe will be in custody of the LP tokens.