LiquitySPDeposit
Description
Action for depositing LUSD tokens to the stability pool
Action ID
0x78b3246a
SDK Action
const liquitySPDepositAction = new dfs.actions.liquity.LiquitySPDepositAction(
lusdAmount,
from,
wethTo,
lqtyTo
);
Action Type
STANDARD_ACTION
Input Parameters
/// @param lusdAmount Amount of LUSD tokens to deposit
/// @param from Address where to pull the tokens from
/// @param wethTo Address that will receive ETH(wrapped) gains
/// @param lqtyTo Address that will receive LQTY token gains
struct Params {
uint256 lusdAmount;
address from;
address wethTo;
address lqtyTo;
}
Return Value
return bytes32(depositedAmount);
Events and Logs
emit ActionEvent("LiquitySPDeposit", logData);
logger.logActionDirectEvent("LiquitySPDeposit", logData);
bytes memory logData = abi.encode(params);
Last updated
Was this helpful?