Leveraged Yield Farming (Hatom)

Leveraged Yield Farming (LYF) allows you to borrow assets to multiply your yield farming positions and amplify, maximise your profits.
Tokens supplied to Hatom are activated as collateral, borrowed at the optimal debt level, and resupplied for a 4X loop to maximise the yield (which comes from Hatom's supply yield and USDC incentives yield).
For closing of positions, Jewel makes use of flash-mint mechanism by flash-minting JWLEGLD or JWLUSD for the respective farms, repay the debt, get the position back, swap back to the minted tokens to flash-burn, and then return the balance equity to the user.
*Note that USDC incentives are automatically swapped into the deposit token.