Deposits
Only
liquidityProvider
can deposit intoHOT
, which then calls thedepositLiquidity
function inpool
No deposits can happen if
HOT
contract is paused.The
depositLiquidity
function offers some degree of protection against spot price manipulation attacks:liquidityProvider
can pass the expected lower and upper bounds of sqrt spot price. If sqrt spot price is beyond these, the transaction reverts.HOT
contract also checks that sqrt spot price is within allowed bounds relatively to sqrt oracle price. If sqrt spot price is beyond these, the transaction reverts.
WARNING: It assumes that
liquidityProvider
is a contract that takes sufficient precautions to correctly tokenise liquidity shares (if applicable), prevent sandwich attacks and/or protections against AMM spot price manipulation, or other applicable protections such as timelocks.
Last updated