💲McdGive

Description

Action ID: 0xb2b1cae3

Network mainnet: (Deployed address | Code)

Give a vault to a different address

SDK Action

    const mcdGiveAction = new dfs.actions.maker.MakerGiveAction(
        vaultId, newOwner.address, createProxy, MCD_MANAGER_ADDR,
    );

Contract

This is a DFS STANDARD_ACTION.

If createProxy is true, the Vault will always be sent to a proxy. If the newOwner does not have a proxy, one will be created. If createProxy is false, the Vault will be sent directly to that address.

Input:

    /// @param vaultId The id of the vault
    /// @param newOwner The address of the new owner
    /// @param createProxy If true, it will create a proxy if the _newOwner does not have one
    /// @param mcdManager The manager address we are using [mcd, b.protocol]
    struct Params {
            uint256 vaultId;
            address newOwner;
            bool createProxy;
            address mcdManager;
        }

Return value:

return bytes32(bytes20(newOwner));

Events:

emit ActionEvent("McdGive", logData);

logger.logActionDirectEvent("McdGive", logData);

Last updated