Skip to main content

getUserRewards

Description:

Daily rewards for the user who has made a deposit in the vault.

Arguments:

NameTypeRequiredDescription
dateFromnumberYesTime to start in milliseconds
dateTonumberYesTime to end in milliseconds
userAddressstringYesThe user address
vaultAddressstringYesThe address of the vault

Returns:

type Output = {
date: number
dailyRewards: number
dailyRewardsUsd: number
dailyRewardsEur: number
dailyRewardsGbp: number
dailyRewardsCny: number
dailyRewardsJpy: number
dailyRewardsKrw: number
dailyRewardsAud: number
}
NameDescription
dateСurrent rate date
dailyRewardsDaily reward asset in ETH
dailyRewardsUsdDaily reward asset in USD
dailyRewardsEurDaily reward asset in EUR
dailyRewardsGbpDaily reward asset in GBP
dailyRewardsCnyDaily reward asset in CNY
dailyRewardsJpyDaily reward asset in JPY
dailyRewardsKrwDaily reward asset in KRW
dailyRewardsAudDaily reward asset in AUD

Example:

await sdk.vault.getUserRewards({
userAddress: '0x...',
vaultAddress: '0x...',
dateTo: 1727827200000,
dateFrom: 1721606400000,
})