UNPKG

@algofi/js-sdk

Version:

The official Algofi JavaScript SDK

23 lines (22 loc) 786 B
import VotingEscrow from "./votingEscrow"; export default class UserVotingEscrowState { votingEscrow: VotingEscrow; amountLocked: number; lockStartTime: number; lockDuration: number; lockEndTime: number; lockDurationRemaining: number; lockDurationRemainingYears: number; amountVeBank: number; boostMultiplier: number; projAmountVeBank: number; projBoostMultiplier: number; /** * Constructor for the user voting escrow class. * * @param userLocalState - a dictionary representing a user's local state with * the voting escrow contract. */ constructor(userLocalState: {}, votingEscrow: VotingEscrow); getProjValues(amountLocked: number, durationRemaining: number): [number, number]; }