DssCdpManager

To link CoastDAO with the DssCdpManager and listen to its NewCdp and LogNote events, you can create event listeners in your contract.

Listen to the NewCdp Event:

To capture the NewCdp event from the DssCdpManager contract, which provides information about newly created CDPs, set up an event listener like this:

event NewCdp(
    address indexed usr,
    address indexed own,
    uint indexed cdp
);
usr:user address
own:proxy address
cdp:vault id
The ilk type is provided by the following event and needs to be parsed to obtain it:
 event LogNote(
    bytes4   indexed  sig,
    address  indexed  usr,
    bytes32  indexed  arg1,
    bytes32  indexed  arg2,
    bytes             data
 )
    
 open(bytes32 ilk,address usr)
 usr:user address
 arg1:ilk’s bytes32
 arg2:proxy address

Last updated