DeFi Saver
Search
K

LiquitySPDeposit

Description

Action ID: 0x78b3246a
Network mainnet: (Deployed address | Code)
Deposit LUSD into Stability Pool

SDK Action

const liquitySPDepositAction = new dfs.actions.liquity.LiquitySPDepositAction(
LUSDAmount,
from,
wethTo,
lqtyTo,
);

Contract

This is a DFS STANDARD_ACTION.
The address from which we are pulling LUSD must approve proxy to pull tokens
If lusdAmount is max.uint deposit whole balance
Input:
/// @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:
emit ActionEvent("LiquitySPDeposit", logData);
logger.logActionDirectEvent("LiquitySPDeposit", logData);
bytes memory logData = abi.encode(_params, ethGain, lqtyGain)