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;
}