@alphafi/alphalend-sdk - v1.1.27
    Preparing search index...

    Interface ClaimSwapAndSupplyOrRepayOrTransferParams

    Parameters for claiming rewards, swapping, and repaying borrowed assets (or supplying if no debt) Used with the claimSwapAndSupplyOrRepay method

    Note: This method handles both repay and supply scenarios. If there's no debt, the entire amount will be supplied to the market.

    interface ClaimSwapAndSupplyOrRepayOrTransferParams {
        address: string;
        claimSmallRewardsToWallet?: boolean;
        isTargetBorrowed?: boolean;
        positionCapId: string;
        priceUpdateCoinTypes: string[];
        rewardAmounts?: Map<string, string>;
        slippage: number;
        targetCoinType: string;
        targetMarketId?: string;
        transferTargetCoin?: boolean;
    }
    Index

    Properties

    address: string

    Address of the user claiming rewards

    claimSmallRewardsToWallet?: boolean

    If true, claims rewards < $0.01 directly to wallet (only swap checkbox case)

    isTargetBorrowed?: boolean

    Whether the target coin is borrowed

    positionCapId: string

    Object ID of the position capability object

    priceUpdateCoinTypes: string[]

    Coin types of user's supplied assets (for price updates)

    rewardAmounts?: Map<string, string>

    Optional map of reward coin types to their amounts in base units (for accurate quotes and USD calculations)

    slippage: number

    Slippage tolerance

    targetCoinType: string

    Target coin type to swap all rewards into and repay

    targetMarketId?: string

    Market ID to repay the debt (or supply if no debt)

    transferTargetCoin?: boolean

    Whether to transfer the target coin to the wallet