IBaseDeposit.sol
Details
Interface for supporting depositing 2 assets via periphery
Methods
deposit(uint256,uint256,uint256,uint256,address)
Solidity
function deposit(uint256 amount0Desired, uint256 amount1Desired, uint256 amount0Min, uint256 amount1Min, address to) external nonpayable returns (uint256 shares, uint256 amount0, uint256 amount1)
Details
Deposits tokens in proportion to the vault's current holdings.These tokens sit in the vault and are not used for liquidity on Uniswap until the next rebalance.
Parameters
Name | Type | Description |
---|---|---|
amount0Desired | uint256 | Max amount of token0 to deposit |
amount1Desired | uint256 | Max amount of token1 to deposit |
amount0Min | uint256 | Revert if resulting amount0 is less than this |
amount1Min | uint256 | Revert if resulting amount1 is less than this |
to | address | Recipient of shares |
Returns
Name | Type | Description |
---|---|---|
shares | uint256 | Number of shares minted |
amount0 | uint256 | Amount of token0 deposited |
amount1 | uint256 | Amount of token1 deposited |