fundSplitter
class of the K2 SDK. This sub-class contains all the important functions from the Fund Splitter contract of the K2 Lending protocol.
distributeNewRewards function
Distribute the new rewards to the PNOs and redelegators.Input Parameters
rewardToken: The address of the reward tokenrewardAmount: The reward amount in string
PNOs: Array of ETH addresses of the PNOs
Using distributeNewRewards function
Return Parameters
Transaction details if the transaction was successful.claimFromRedelegationBucket function
Claim rewards from the redelegation bucket after it has been distributed.Input Parameters
user: The ETH address of the userdistributionIndex: The distribution index in string
PNOs: Array of ETH addresses of the PNOs
Using claimFromRedelegationBucket function
Return Parameters
Transaction details if the transaction was successful.claimFromPNOBucket function
Claim PNO earnings from the PNO bucket after it has been distributed.Input Parameters
pno: The ETH address of the PNOrewardTokens: Array of reward token addresses
Using claimFromPNOBucket function
Return Parameters
Transaction details if the transaction was successful.onPNOEnabled function
Hook function to track PNOs enabled status.Input Parameters
pno: The ETH address of the PNOenabled: Boolean value, true if enabled
Using onPNOEnabled function
Return Parameters
Transaction details if the transaction was successful.pnoHistoricalEarnings function
Get the historical earnings for the given PNO, for the default reward token.Input Parameters
pno: The ETH address of the PNOUsing pnoHistoricalEarnings function
Return Parameters
Returns the historical PNO earnings in bigint.pnoHistoricalEarningsForRewardToken functions
Get the historical earnings for the given PNO and the given reward token.Input Parameters
pno: The ETH address of the PNOrewardToken: Address of the reward token
Using pnoHistoricalEarningsForRewardToken function
Return Parameters
Returns the historical PNO earnings in bigint.isPNOEnabledAt function
Checks if the PNO was enabled at the given snapshot.Input Parameters
pno: The ETH address of the PNOsnapshotId: The snapshot id in string