Deposit
We only allow deposits from the liquidityProvider
address. Any logic for handling user deposits needs to be implemented by the liquidityProvider
itself. On each deposit, liquidityProvider
should approve to HOT contract the amounts of token0 and/or token1 which should be deposited into the Sovereign Pool.
A common error while depositing is
HOT__depositLiquidity_spotPriceAndOracleDeviation
It means that the oracle price is too far away from the current AMM spot price (abovemaxOracleDeviationBips
, in relative distance). To deposit more liquidity a user needs to wait for the oracle price to update, or correct the spot price by making an AMM swap. In the absence of Oracle failure, we can expect the spot and Oracle prices to stay within the set bounds by relying on HOT spot price updates or AMM swap arbitrageurs. (IMP)
Last updated