πŸ’²McdMerge

Description

Action ID: 0xd2c234d0

Network mainnet: (Deployed address | Code)

Merge two vaults that are of the same type

SDK Action

    const mcdMergeAction = new dfs.actions.maker.MakerMergeAction(
        srcVaultId, destVaultId, MCD_MANAGER_ADDR,
    );

Contract

This is a DFS STANDARD_ACTION.

Will not work if not the exact same ilk

Input:

    /// @param srcVaultId Vault we are merging
    /// @param destVaultId Destination vault
    /// @param mcdManager The manager address we are using [mcd, b.protocol]
    struct Params {
        uint256 srcVaultId;
        uint256 destVaultId;
        address mcdManager;
    }

Return value:

return bytes32(inputData.destVaultId);

Events:

bytes memory logData = _mcdMerge(inputData.srcVaultId, inputData.destVaultId, inputData.mcdManager)

emit ActionEvent("McdMerge", logData);

bytes memory logData = _mcdMerge(inputData.srcVaultId, inputData.destVaultId, inputData.mcdManager)

logger.logActionDirectEvent("McdMerge", logData);

Last updated