Address of the user claiming rewards
OptionalclaimIf true, claims rewards < $0.01 directly to wallet (only swap checkbox case)
OptionalisWhether the target coin is borrowed
Object ID of the position capability object
Coin types of user's supplied assets (for price updates)
OptionalrewardOptional map of reward coin types to their amounts in base units (for accurate quotes and USD calculations)
Slippage tolerance
Target coin type to swap all rewards into and repay
OptionaltargetMarket ID to repay the debt (or supply if no debt)
OptionaltransferWhether to transfer the target coin to the wallet
Parameters for claiming rewards, swapping, and repaying borrowed assets (or supplying if no debt) Used with the
claimSwapAndSupplyOrRepaymethodNote: This method handles both repay and supply scenarios. If there's no debt, the entire amount will be supplied to the market.