LiquitySupply
Action ID: 0x7fe3a181
Supplies collateral to the DSProxy Liquity Trove
const liquitySupplyAction = new dfs.actions.liquity.LiquitySupplyAction(
collAmount,
from,
upperHint,
lowerHint,
);
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)
Last modified 7mo ago