SDaiUnwrap
Description
Action that redeems sDai for dai.
Action ID
0xeafe8383
SDK Action
const sDaiUnwrapAction = new dfs.actions.basic.SDaiUnwrapAction(
amount,
from,
to
);
Action Type
STANDARD_ACTION
Input Parameters
/// @param amount - Amount of sDai to redeem
/// @param from - Address from which the tokens will be pulled
/// @param to - Address that will receive the dai
struct Params {
uint256 amount;
address from;
address to;
}
Return Value
return bytes32(daiAmount);
Events and Logs
emit ActionEvent("SDaiUnwrap", logData);
logger.logActionDirectEvent("SDaiUnwrap", logData);
bytes memory logData = abi.encode(params);
Last updated
Was this helpful?