Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

Properties

_contract: Web3Contract<LoopholeMethods, any>
_erc20: ERC20
_ethUtils: ETHUtils
_ownable: Ownable
abi: AbiItem[]
contractAddress?: string
ethUtilsAddress?: string
lpTokenAddress?: string
swapRouterAddress?: string

Accessors

  • get account(): Account
  • Returns the Account associated with this connection

    Returns Account

  • get web3(): default
  • Returns the Web3 class assigned to this connection

    Returns default

Methods

  • LPtokensPerShareMultiplier(): Promise<number>
  • add(token: string, allocPoint: number): Promise<number>
  • callTx<ReturnData>(method: ContractCallMethod<ReturnData>, value?: any): Promise<ReturnData>
  • collectRewards(pid: number): Promise<number>
  • connect(): Promise<boolean>
  • currentStake(pid: number, user: string): Promise<number>
  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt>
  • Deploy the loaded abi contract

    Parameters

    • deployOptions: DeployOptions
    • Optional account: Account

    Returns Promise<TransactionReceipt>

  • deployJsonAbi(_swapRouter: string, _lpToken: string, _lpTokensPerBlock: number, _startBlock: number, _exitPenalty: number, _exitPenaltyLP: number): Promise<TransactionReceipt>
  • Parameters

    • _swapRouter: string
    • _lpToken: string
    • _lpTokensPerBlock: number
    • _startBlock: number
    • _exitPenalty: number
    • _exitPenaltyLP: number

    Returns Promise<TransactionReceipt>

  • earnings(pid: number, user: string): Promise<number>
  • exit(amount: number, pid?: number, amountOutMinimum?: number): Promise<number>
  • Parameters

    • amount: number
    • Optional pid: number
    • Optional amountOutMinimum: number

    Returns Promise<number>

  • exitPenalty(): Promise<number>
  • exitPenaltyLP(): Promise<number>
  • getBlockNumber(): Promise<number>
  • getBlockTimestamp(): Promise<number>
  • getBlocksFromRange(from: number, to: number): Promise<number>
  • getEntryStakeAdjusted(pid: number, user: string): Promise<number>
  • getPoolReward(pid: number): Promise<number>
  • getTotalEntryStakeUser(pid: number, user: string): Promise<number>
  • getTotalUnstakeUser(pid: number, user: string): Promise<number>
  • getUserReward(pid: number, userAddress: string): Promise<number>
  • loadAbi(): void
  • loadContract(): Promise<void>
  • lpToken(): Promise<string>
  • lpTokensPerBlock(): Promise<number>
  • massUpdatePools(): Promise<TransactionReceipt>
  • owner(): Promise<string>
  • poolExists(v1: string): Promise<boolean>
  • poolsCount(): Promise<number>
  • sendTx(method: ContractSendMethod, value?: any, debug?: undefined | boolean): Promise<TransactionReceipt>
  • Interact with, or change a value of, a property on the contract

    Parameters

    • method: ContractSendMethod
    • Optional value: any
    • debug: undefined | boolean = ...

    Returns Promise<TransactionReceipt>

  • sendUnsignedTx(method: ContractSendMethod, value?: any, debug?: boolean): Promise<TransactionReceipt>
  • Send unsigned transaction

    Parameters

    • method: ContractSendMethod
    • Optional value: any
    • Optional debug: boolean

    Returns Promise<TransactionReceipt>

  • set(pid: number, allocPoint: number, withUpdate: boolean): Promise<TransactionReceipt>
  • Parameters

    • pid: number
    • allocPoint: number
    • withUpdate: boolean

    Returns Promise<TransactionReceipt>

  • stake(pid: number, amount: number): Promise<TransactionReceipt>
  • start(): Promise<void>
  • startBlock(): Promise<number>
  • swapRouter(): Promise<string>
  • totalAllocPoint(): Promise<number>
  • uniswapPoolFee(): Promise<undefined>

Generated using TypeDoc