DeFi Saver
Search
⌃K

LiquitySupply

Description

Action ID: 0x7fe3a181
Network mainnet: (Deployed address | Code)
Supplies collateral to the DSProxy Liquity Trove

SDK Action

const liquitySupplyAction = new dfs.actions.liquity.LiquitySupplyAction(
collAmount,
from,
upperHint,
lowerHint,
);

Contract

This is a DFS STANDARD_ACTION.
The address from which we are pulling WETH must approve proxy to pull tokens
if collAmount is uint.max supply whole balance of WETH
Input:
/// @param collAmount Amount of WETH tokens to supply
/// @param from Address where to pull the tokens from
/// @param upperHint
/// @param lowerHint
struct Params {
uint256 collAmount;
address from;
address upperHint;
address lowerHint;
}
Return value:
return bytes32(suppliedAmount);
Events:
emit ActionEvent("LiquitySupply", logData);
logger.logActionDirectEvent("LiquitySupply", logData);
bytes memory logData = abi.encode(_params.collAmount, _params.from)