Provide liquidity and stake LP
Last updated
Was this helpful?
Was this helpful?
LP_TOKEN=0x3E0B18bD621304Df40485428eCd20765cF692432
INCENTIVIZER=0x3e9E18f5944B2d95571d68b9e74627aa9dAb2cc0
# approve the incentivizer to pull your LP token
cast send $LP_TOKEN "approve(address,uint256)" $INCENTIVIZER <amount> \
--rpc-url https://rpc.hyperliquid.xyz/evm --private-key $PK
# stake it
cast send $INCENTIVIZER "stake(uint256)" <amount> \
--rpc-url https://rpc.hyperliquid.xyz/evm --private-key $PKcast call $INCENTIVIZER "earned(address)(uint256)" $YOU --rpc-url https://rpc.hyperliquid.xyz/evm
cast send $INCENTIVIZER "getReward()" --rpc-url https://rpc.hyperliquid.xyz/evm --private-key $PKearned(you) × current brilaDatScalingFactor / 1e18cast send $INCENTIVIZER "exit()" --rpc-url https://rpc.hyperliquid.xyz/evm --private-key $PK