💿CompGetDebt

Description

Action ID: 0xd7a3d3f6

Claims Comp reward for the specified user

SDK Action

const claimCompAction = new dfs.actions.compound.CompoundClaimAction(
        cSupplyAddresses, cBorrowAddresses, from, to,
    );

Contract

This is a DFS STANDARD_ACTION.

if _from != proxy, the receiver will always be the _from and not the _to addr

Input:

    /// @param cTokensSupply Array of cTokens which the user has supplied and has earned rewards
    /// @param _cTokensBorrow Array of cTokens which the user has borrowed and has earned rewards
    /// @param _from For which user we are claiming the tokens
    /// @param _to Where we are sending the Comp to (if _from is proxy)
    struct Params {
        address[] cTokensSupply;
        address[] cTokensBorrow;
        address from;
        address to;
    }

Return value:

return bytes32(compClaimed);

Events:

emit ActionEvent("CompClaim", logData);

logger.logActionDirectEvent("CompClaim", logData);

Last updated