➰CurveGaugeDeposit
Description
Action that deposits LP tokens into a Liquidity Gauge.
Notes
if _params.receiver != address(this) the receiver must call set_approve_deposit on gauge
Action ID
0x728abd4c
SDK Action
const curveGaugeDepositAction = new dfs.actions.curve.CurveGaugeDepositAction(
gaugeAddr,
lpToken,
sender,
onBehalfOf,
amount
);
Action Type
STANDARD_ACTION
Input Parameters
/// @param gaugeAddr Address of the gauge to deposit into
/// @param lpToken Address of the LP token to deposit
/// @param sender Address where the LP tokens are pulled from
/// @param onBehalfOf Address of the deposit beneficiary
/// @param amount Amount of LP tokens to deposit
struct Params {
address gaugeAddr;
address lpToken;
address sender;
address onBehalfOf;
uint256 amount;
}
Return Value
return bytes32(deposited);
Events and Logs
emit ActionEvent("CurveGaugeDeposit", logData);
logger.logActionDirectEvent("CurveGaugeDeposit", logData);
bytes memory logData = abi.encode(params);
Last updated
Was this helpful?