> For the complete documentation index, see [llms.txt](https://liqui.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://liqui.gitbook.io/docs/hedgehog-strategy/procedures.md).

# Procedures

The smart contract logic has the 3 main procedures:

1. [Deposit](/docs/hedgehog-strategy/procedures/deposit.md)\
   The function takes users' tokens (ETH, USDC, and oSQTH) in a certain proportion required by the algorithm and returns ownership claims for a certain fraction of the assets held in the strategy.<br>
2. [Withdraw](/docs/hedgehog-strategy/procedures/withdraw.md)\
   The function that burns ownership claims and returns tokens to the user. The tokens are returned in a proportion that the strategy has during the function call. <br>
3. [Rebalance](/docs/hedgehog-strategy/procedures/rebalance.md)\
   To keep desired linear ETH exposure, the strategy periodically executes so-called rebalance auctions, a procedure during which the strategy sells excess and buys missing tokens in order to achieve the necessary token proportion, which will provide target ETH price exposure.<br>
