YieldSource examples
Stargate LP farming
yieldSource = address(
new StargateLPYieldSource(
STG_PID, // LP farming pool id
STG_LPTOKEN, // LP token of stargate
STG_STAKING, // Farming contrat
SUSHISWAP_ROUTER // Router for swap
)
);Staked GLP from GMX
yieldSource = address(
new StakedGLPYieldSource(
StakedGLP_TOKEN, // sGLP token
WETH, // wrapped eth
GMX_REWARD_ROUTER, // reward router v2 of gmx
SUSHISWAP_ROUTER // swap router for swap
)
);Last updated