DepositWrapper.sol
Facilitate native HYPE LP deposits into the STEX AMM by handling WHYPE wrapping and approval in a single transaction using the IWETH9
interface
1. depositFromNative()
Purpose: Single-transaction Hype → WETH → LP shares
Parameters:
_minShares
: Minimum LP tokens to receive_deadline
: Transaction validity timestamp_recipient
: LP shares beneficiary
Checks:
recipient
is not zero address
Flow:
Wrap sent HYPE to WHYPE
Approve
STEXAMM
to spend WHYPEExecute STEX deposit\
Last updated
Was this helpful?