Deposit
Single-side token deposit
/// @param amount The amount of tokens to deposit
/// @param receiver The address that will receive the shares of the deposit
/// @param checkSlippage When providing liquidity to Ambient Pool, Tempest's Vault checks the slippage of the pool price vs oracle price to prevent attacker from manipulating pool price and arbitrage provided liquidity.
/// However, in some cases, user is too bullish in the vault and want to deposit regardless of the price. Checking slippage may cause the deposting failed, especially if the price moves rapidly.
/// So that checkSlippage indicates that the vault should check slippage when providing liquidity or not.
/// Be careful when deposit with checkSlippage = false because of the chance to be arbitraged.
/// @return shares The amount of shares minted for the deposited amount
function deposit(
uint256 amount,
address receiver,
bool checkSlippage
) external payable returns (uint256 shares)Dual-side token deposit
Last updated