UNPKG

@algofi/js-sdk

Version:

The official Algofi JavaScript SDK

21 lines (20 loc) 675 B
import { UserRewardsProgramState } from "./rewardsProgramState"; import Staking from "./staking"; export default class UserStakingState { totalStaked: number; scaledTotalStaked: number; boostMultiplier: number; rewardsBoost: number; userRewardsProgramStates: { [key: number]: UserRewardsProgramState; }; totalUserAPR: number; totalBankPerYear: number; /** * Constructor for the user staking state object. * * @param userLocalState - user's local state with one staking contract * @param staking - staking contract of interest */ constructor(userLocalState: {}, staking: Staking); }