MidnightSupplyCollateral
Last updated
/// @param marketId Market id.
/// @param onBehalf Address to supply tokens on behalf of. Defaults to the user's wallet if not provided.
/// @param from Address from which to pull collateral asset.
/// @param amount Amount of tokens to supply.
/// @param collateralIndex Collateral index (0-based).
struct Params {
bytes32 marketId;
address onBehalf;
address from;
uint256 amount;
uint256 collateralIndex;
}return bytes32(amount);emit ActionEvent("MidnightSupplyCollateral", logData);
logger.logActionDirectEvent("MidnightSupplyCollateral", logData);
bytes memory logData = abi.encode(params);