The following readme describes all the functions and their parameters exposed by the fundSplitterFactory class of the K2 SDK. This sub-class contains all the important functions from the Fund Splitter factory contract of the K2 Lending protocol.

deployFundSplitter function

SBP owner will call this function to deploy a fund splitter instance.

Input Parameters

debtor: ETH address of the debtor
kNetworkId: Id of the kNetwork
defaultRewardToken: Address of the reward token for the fund splitter instance

Using deployFundSplitter function

await sdk.fundSplitterFactory.deployFundSplitter(debtor, kNetworkId, defaultRewardToken);

Return Parameters

Returns the address of the deployed fund splitter instance.