DeFi Saver
Search
K

LiquityClose

Description

Action ID: 0xfaf0f6a9
Network mainnet: (Deployed address | Code)
Closes DSProxy Liquity Trove

SDK Action

const LiquityCloseAction = new dfs.actions.liquity.LiquityCloseAction(from, to);

Contract

This is a DFS STANDARD_ACTION.
The address from which we are pulling LUSD must approve proxy to pull tokens
This will try to pull netDebt exact amount (TroveDebt - LUSD gas compensation)
Input:
/// @param from Address where to pull the LUSD tokens from
/// @param to Address that will receive the collateral
struct Params {
address from;
address to;
}
Return value:
return bytes32(coll);
Events:
emit ActionEvent("LiquityClose", logData);
logger.logActionDirectEvent("LiquityClose", logData);