Class VePendleMainchain

Hierarchy (view full)

Constructors

Properties

_contract: WrappedContract

The wrapped contract that the entity is holding.

Remarks

This should not be used directly. Instead, the getter contract should be used to have the correct type of the wrapped contract.

address: Address

the inner contract address

chainId: ChainId
multicall?: Multicall

The Multicall instance used by this entity.

networkConnection: NetworkConnection

The networkConnection of this entity.

BROADCAST_FEE_BUFFER: number = 0.02
MAX_LOCK_TIME_s: number = ...
MIN_LOCK_TIME_s: number = VePendle.ONE_WEEK_s
ONE_DAY_s: number = ...
ONE_WEEK_s: number = ...

Accessors

Methods

  • Increase Lock position.

    Type Parameters

    Parameters

    Returns VePendleMainchainMetaMethodReturnType<T, "increaseLockPosition", object>

    When params is not defined, or when params.method is not defined, this method will perform the transaction, and return Promise<ethers.ContractTransaction>.

    Otherwise, params.method's value is used to determine the return type. See MetaMethodReturnType for the detailed explanation of the return type.

    Remarks

    The sender will be the one who has his lock position increased.

    If params.broadcastChainIds are specified and non-empty, the contract function increaseLockPositionAndBroadcast is called, otherwise increaseLockPosition is called instead. Note that this also affects the return type of the function, but the difference is minimal.

  • Increase Lock position.

    Type Parameters

    Parameters

    Returns VePendleMainchainMetaMethodReturnType<T, "increaseLockPositionAndBroadcast", object>

    When params is not defined, or when params.method is not defined, this method will perform the transaction, and return Promise<ethers.ContractTransaction>.

    Otherwise, params.method's value is used to determine the return type. See MetaMethodReturnType for the detailed explanation of the return type.

    Remarks

    The sender will be the one who has his lock position increased.

    If params.broadcastChainIds are specified and non-empty, the contract function increaseLockPositionAndBroadcast is called, otherwise increaseLockPosition is called instead. Note that this also affects the return type of the function, but the difference is minimal.

Generated using TypeDoc