For the complete documentation index, see llms.txt. This page is also available as Markdown.

MidnightPaybackDirect

Description

Repay debt by repaying debt units at a face value of 1.

Action ID

0x410d1066

SDK Action

const midnightPaybackDirectAction = new dfs.actions.midnight.MidnightPaybackDirectAction(
    marketId,
    onBehalf,
    from,
    amount
);

Action Type

STANDARD_ACTION

Input Parameters

    /// @param marketId Market id.
    /// @param onBehalf Address to payback tokens on behalf of. Defaults to the user's wallet if not provided.
    /// @param from Address from which to pull the payback tokens.
    /// @param amount Amount of tokens to payback. Send type(uint).max to payback whole amount.
    struct Params {
        bytes32 marketId;
        address onBehalf;
        address from;
        uint256 amount;
    }

Return Value

Events and Logs

Last updated