Skip to content
You are reading the development version documentation and some displayed features may not be available in the stable release. You can switch to stable version using the version box at screen bottom.
Last update: October 8, 2021

yearn-vaults / Modules / BaseStrategyInitializable / BaseStrategyInitializable

Class: BaseStrategyInitializable

BaseStrategyInitializable.BaseStrategyInitializable

Hierarchy

  • BaseContract

BaseStrategyInitializable

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BaseStrategyInitializable(addressOrName, contractInterface, signerOrProvider?)

Parameters

Name Type
addressOrName string
contractInterface ContractInterface
signerOrProvider? Signer | Provider

Inherited from

BaseContract.constructor

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:103

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

Inherited from

BaseContract._deployedPromise

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:96


_runningEvents

_runningEvents: Object

Index signature

▪ [eventTag: string]: RunningEvent

Inherited from

BaseContract._runningEvents

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:97


_wrappedEmits

_wrappedEmits: Object

Index signature

▪ [eventTag: string]: (…args: any[]) => void

Inherited from

BaseContract._wrappedEmits

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:100


address

Readonly address: string

Inherited from

BaseContract.address

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:75


callStatic

callStatic: Object

Type declaration

Name Type
apiVersion (overrides?: CallOverrides) => Promise<string>
clone(address) (_vault: string, overrides?: CallOverrides) => Promise<string>
clone(address,address,address,address) (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: CallOverrides) => Promise<string>
debtThreshold (overrides?: CallOverrides) => Promise<BigNumber>
delegatedAssets (overrides?: CallOverrides) => Promise<BigNumber>
emergencyExit (overrides?: CallOverrides) => Promise<boolean>
estimatedTotalAssets (overrides?: CallOverrides) => Promise<BigNumber>
ethToWant (_amtInWei: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
harvest (overrides?: CallOverrides) => Promise<void>
harvestTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<boolean>
initialize (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: CallOverrides) => Promise<void>
isActive (overrides?: CallOverrides) => Promise<boolean>
isOriginal (overrides?: CallOverrides) => Promise<boolean>
keeper (overrides?: CallOverrides) => Promise<string>
maxReportDelay (overrides?: CallOverrides) => Promise<BigNumber>
metadataURI (overrides?: CallOverrides) => Promise<string>
migrate (_newStrategy: string, overrides?: CallOverrides) => Promise<void>
minReportDelay (overrides?: CallOverrides) => Promise<BigNumber>
name (overrides?: CallOverrides) => Promise<string>
profitFactor (overrides?: CallOverrides) => Promise<BigNumber>
rewards (overrides?: CallOverrides) => Promise<string>
setDebtThreshold (_debtThreshold: BigNumberish, overrides?: CallOverrides) => Promise<void>
setEmergencyExit (overrides?: CallOverrides) => Promise<void>
setKeeper (_keeper: string, overrides?: CallOverrides) => Promise<void>
setMaxReportDelay (_delay: BigNumberish, overrides?: CallOverrides) => Promise<void>
setMetadataURI (_metadataURI: string, overrides?: CallOverrides) => Promise<void>
setMinReportDelay (_delay: BigNumberish, overrides?: CallOverrides) => Promise<void>
setProfitFactor (_profitFactor: BigNumberish, overrides?: CallOverrides) => Promise<void>
setRewards (_rewards: string, overrides?: CallOverrides) => Promise<void>
setStrategist (_strategist: string, overrides?: CallOverrides) => Promise<void>
strategist (overrides?: CallOverrides) => Promise<string>
sweep (_token: string, overrides?: CallOverrides) => Promise<void>
tend (overrides?: CallOverrides) => Promise<void>
tendTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<boolean>
vault (overrides?: CallOverrides) => Promise<string>
want (overrides?: CallOverrides) => Promise<string>
withdraw (_amountNeeded: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>

Overrides

BaseContract.callStatic

Defined in

typechain/BaseStrategyInitializable.d.ts:643


deployTransaction

Readonly deployTransaction: TransactionResponse

Inherited from

BaseContract.deployTransaction

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:95


estimateGas

estimateGas: Object

Type declaration

Name Type
apiVersion (overrides?: CallOverrides) => Promise<BigNumber>
clone(address) (_vault: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
clone(address,address,address,address) (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
debtThreshold (overrides?: CallOverrides) => Promise<BigNumber>
delegatedAssets (overrides?: CallOverrides) => Promise<BigNumber>
emergencyExit (overrides?: CallOverrides) => Promise<BigNumber>
estimatedTotalAssets (overrides?: CallOverrides) => Promise<BigNumber>
ethToWant (_amtInWei: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
harvest (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
harvestTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
initialize (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
isActive (overrides?: CallOverrides) => Promise<BigNumber>
isOriginal (overrides?: CallOverrides) => Promise<BigNumber>
keeper (overrides?: CallOverrides) => Promise<BigNumber>
maxReportDelay (overrides?: CallOverrides) => Promise<BigNumber>
metadataURI (overrides?: CallOverrides) => Promise<BigNumber>
migrate (_newStrategy: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
minReportDelay (overrides?: CallOverrides) => Promise<BigNumber>
name (overrides?: CallOverrides) => Promise<BigNumber>
profitFactor (overrides?: CallOverrides) => Promise<BigNumber>
rewards (overrides?: CallOverrides) => Promise<BigNumber>
setDebtThreshold (_debtThreshold: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setEmergencyExit (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setKeeper (_keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setMaxReportDelay (_delay: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setMetadataURI (_metadataURI: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setMinReportDelay (_delay: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setProfitFactor (_profitFactor: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setRewards (_rewards: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setStrategist (_strategist: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
strategist (overrides?: CallOverrides) => Promise<BigNumber>
sweep (_token: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
tend (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
tendTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
vault (overrides?: CallOverrides) => Promise<BigNumber>
want (overrides?: CallOverrides) => Promise<BigNumber>
withdraw (_amountNeeded: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>

Overrides

BaseContract.estimateGas

Defined in

typechain/BaseStrategyInitializable.d.ts:872


filters

filters: Object

Type declaration

Name Type
Cloned (clone?: null | string) => TypedEventFilter<[string], Object>
Cloned(address) (clone?: null | string) => TypedEventFilter<[string], Object>
EmergencyExitEnabled () => TypedEventFilter<[], Object>
EmergencyExitEnabled() () => TypedEventFilter<[], Object>
Harvested (profit?: null, loss?: null, debtPayment?: null, debtOutstanding?: null) => TypedEventFilter<[BigNumber, BigNumber, BigNumber, BigNumber], Object>
Harvested(uint256,uint256,uint256,uint256) (profit?: null, loss?: null, debtPayment?: null, debtOutstanding?: null) => TypedEventFilter<[BigNumber, BigNumber, BigNumber, BigNumber], Object>
UpdatedDebtThreshold (debtThreshold?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedDebtThreshold(uint256) (debtThreshold?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedKeeper (newKeeper?: null) => TypedEventFilter<[string], Object>
UpdatedKeeper(address) (newKeeper?: null) => TypedEventFilter<[string], Object>
UpdatedMaxReportDelay (delay?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedMaxReportDelay(uint256) (delay?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedMetadataURI (metadataURI?: null) => TypedEventFilter<[string], Object>
UpdatedMetadataURI(string) (metadataURI?: null) => TypedEventFilter<[string], Object>
UpdatedMinReportDelay (delay?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedMinReportDelay(uint256) (delay?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedProfitFactor (profitFactor?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedProfitFactor(uint256) (profitFactor?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedRewards (rewards?: null) => TypedEventFilter<[string], Object>
UpdatedRewards(address) (rewards?: null) => TypedEventFilter<[string], Object>
UpdatedStrategist (newStrategist?: null) => TypedEventFilter<[string], Object>
UpdatedStrategist(address) (newStrategist?: null) => TypedEventFilter<[string], Object>

Overrides

BaseContract.filters

Defined in

typechain/BaseStrategyInitializable.d.ts:764


functions

functions: Object

Type declaration

Name Type
apiVersion (overrides?: CallOverrides) => Promise<[string]>
clone(address) (_vault: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
clone(address,address,address,address) (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
debtThreshold (overrides?: CallOverrides) => Promise<[BigNumber]>
delegatedAssets (overrides?: CallOverrides) => Promise<[BigNumber]>
emergencyExit (overrides?: CallOverrides) => Promise<[boolean]>
estimatedTotalAssets (overrides?: CallOverrides) => Promise<[BigNumber]>
ethToWant (_amtInWei: BigNumberish, overrides?: CallOverrides) => Promise<[BigNumber]>
harvest (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
harvestTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<[boolean]>
initialize (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
isActive (overrides?: CallOverrides) => Promise<[boolean]>
isOriginal (overrides?: CallOverrides) => Promise<[boolean]>
keeper (overrides?: CallOverrides) => Promise<[string]>
maxReportDelay (overrides?: CallOverrides) => Promise<[BigNumber]>
metadataURI (overrides?: CallOverrides) => Promise<[string]>
migrate (_newStrategy: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
minReportDelay (overrides?: CallOverrides) => Promise<[BigNumber]>
name (overrides?: CallOverrides) => Promise<[string]>
profitFactor (overrides?: CallOverrides) => Promise<[BigNumber]>
rewards (overrides?: CallOverrides) => Promise<[string]>
setDebtThreshold (_debtThreshold: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setEmergencyExit (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setKeeper (_keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setMaxReportDelay (_delay: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setMetadataURI (_metadataURI: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setMinReportDelay (_delay: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setProfitFactor (_profitFactor: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setRewards (_rewards: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setStrategist (_strategist: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
strategist (overrides?: CallOverrides) => Promise<[string]>
sweep (_token: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
tend (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
tendTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<[boolean]>
vault (overrides?: CallOverrides) => Promise<[string]>
want (overrides?: CallOverrides) => Promise<[string]>
withdraw (_amountNeeded: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>

Overrides

BaseContract.functions

Defined in

typechain/BaseStrategyInitializable.d.ts:367


interface

interface: BaseStrategyInitializableInterface

Overrides

BaseContract.interface

Defined in

typechain/BaseStrategyInitializable.d.ts:365


populateTransaction

populateTransaction: Object

Type declaration

Name Type
apiVersion (overrides?: CallOverrides) => Promise<PopulatedTransaction>
clone(address) (_vault: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
clone(address,address,address,address) (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
debtThreshold (overrides?: CallOverrides) => Promise<PopulatedTransaction>
delegatedAssets (overrides?: CallOverrides) => Promise<PopulatedTransaction>
emergencyExit (overrides?: CallOverrides) => Promise<PopulatedTransaction>
estimatedTotalAssets (overrides?: CallOverrides) => Promise<PopulatedTransaction>
ethToWant (_amtInWei: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
harvest (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
harvestTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
initialize (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
isActive (overrides?: CallOverrides) => Promise<PopulatedTransaction>
isOriginal (overrides?: CallOverrides) => Promise<PopulatedTransaction>
keeper (overrides?: CallOverrides) => Promise<PopulatedTransaction>
maxReportDelay (overrides?: CallOverrides) => Promise<PopulatedTransaction>
metadataURI (overrides?: CallOverrides) => Promise<PopulatedTransaction>
migrate (_newStrategy: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
minReportDelay (overrides?: CallOverrides) => Promise<PopulatedTransaction>
name (overrides?: CallOverrides) => Promise<PopulatedTransaction>
profitFactor (overrides?: CallOverrides) => Promise<PopulatedTransaction>
rewards (overrides?: CallOverrides) => Promise<PopulatedTransaction>
setDebtThreshold (_debtThreshold: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setEmergencyExit (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setKeeper (_keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setMaxReportDelay (_delay: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setMetadataURI (_metadataURI: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setMinReportDelay (_delay: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setProfitFactor (_profitFactor: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setRewards (_rewards: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setStrategist (_strategist: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
strategist (overrides?: CallOverrides) => Promise<PopulatedTransaction>
sweep (_token: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
tend (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
tendTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
vault (overrides?: CallOverrides) => Promise<PopulatedTransaction>
want (overrides?: CallOverrides) => Promise<PopulatedTransaction>
withdraw (_amountNeeded: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>

Overrides

BaseContract.populateTransaction

Defined in

typechain/BaseStrategyInitializable.d.ts:1011


provider

Readonly provider: Provider

Inherited from

BaseContract.provider

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:78


resolvedAddress

Readonly resolvedAddress: Promise<string>

Inherited from

BaseContract.resolvedAddress

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:94


signer

Readonly signer: Signer

Inherited from

BaseContract.signer

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:77

Methods

_checkRunningEvents

_checkRunningEvents(runningEvent): void

Parameters

Name Type
runningEvent RunningEvent

Returns

void

Inherited from

BaseContract._checkRunningEvents

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:117


_deployed

_deployed(blockTag?): Promise<Contract>

Parameters

Name Type
blockTag? BlockTag

Returns

Promise<Contract>

Inherited from

BaseContract._deployed

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:110


_wrapEvent

_wrapEvent(runningEvent, log, listener): Event

Parameters

Name Type
runningEvent RunningEvent
log Log
listener Listener

Returns

Event

Inherited from

BaseContract._wrapEvent

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:118


apiVersion

apiVersion(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategyInitializable.d.ts:506


attach

attach(addressOrName): BaseStrategyInitializable

Parameters

Name Type
addressOrName string

Returns

BaseStrategyInitializable

Overrides

BaseContract.attach

Defined in

typechain/BaseStrategyInitializable.d.ts:326


clone(address)

clone(address)(_vault, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_vault string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:508


clone(address,address,address,address)

clone(address,address,address,address)(_vault, _strategist, _rewards, _keeper, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_vault string
_strategist string
_rewards string
_keeper string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:513


connect

connect(signerOrProvider): BaseStrategyInitializable

Parameters

Name Type
signerOrProvider string | Provider | Signer

Returns

BaseStrategyInitializable

Overrides

BaseContract.connect

Defined in

typechain/BaseStrategyInitializable.d.ts:325


debtThreshold

debtThreshold(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/BaseStrategyInitializable.d.ts:521


delegatedAssets

delegatedAssets(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/BaseStrategyInitializable.d.ts:523


deployed

deployed(): Promise<BaseStrategyInitializable>

Returns

Promise<BaseStrategyInitializable>

Overrides

BaseContract.deployed

Defined in

typechain/BaseStrategyInitializable.d.ts:327


emergencyExit

emergencyExit(overrides?): Promise<boolean>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/BaseStrategyInitializable.d.ts:525


emit

emit(eventName, …args): boolean

Parameters

Name Type
eventName string | EventFilter
...args any[]

Returns

boolean

Inherited from

BaseContract.emit

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:123


estimatedTotalAssets

estimatedTotalAssets(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/BaseStrategyInitializable.d.ts:527


ethToWant

ethToWant(_amtInWei, overrides?): Promise<BigNumber>

Parameters

Name Type
_amtInWei BigNumberish
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/BaseStrategyInitializable.d.ts:529


fallback

fallback(overrides?): Promise<TransactionResponse>

Parameters

Name Type
overrides? TransactionRequest

Returns

Promise<TransactionResponse>

Inherited from

BaseContract.fallback

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:111


harvest

harvest(overrides?): Promise<ContractTransaction>

Parameters

Name Type
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:534


harvestTrigger

harvestTrigger(callCostInWei, overrides?): Promise<boolean>

Parameters

Name Type
callCostInWei BigNumberish
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/BaseStrategyInitializable.d.ts:538


initialize

initialize(_vault, _strategist, _rewards, _keeper, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_vault string
_strategist string
_rewards string
_keeper string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:543


isActive

isActive(overrides?): Promise<boolean>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/BaseStrategyInitializable.d.ts:551


isOriginal

isOriginal(overrides?): Promise<boolean>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/BaseStrategyInitializable.d.ts:553


keeper

keeper(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategyInitializable.d.ts:555


listenerCount

listenerCount(eventName?): number

Parameters

Name Type
eventName? string | EventFilter

Returns

number

Inherited from

BaseContract.listenerCount

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:124


listeners

listeners<EventArgsArray, EventArgsObject>(eventFilter?): TypedListener<EventArgsArray, EventArgsObject>[]

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
eventFilter? TypedEventFilter<EventArgsArray, EventArgsObject>

Returns

TypedListener<EventArgsArray, EventArgsObject>[]

Overrides

BaseContract.listeners

Defined in

typechain/BaseStrategyInitializable.d.ts:329

listeners(eventName?): Listener[]

Parameters

Name Type
eventName? string

Returns

Listener[]

Overrides

BaseContract.listeners

Defined in

typechain/BaseStrategyInitializable.d.ts:352


maxReportDelay

maxReportDelay(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/BaseStrategyInitializable.d.ts:557


metadataURI

metadataURI(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategyInitializable.d.ts:559


migrate

migrate(_newStrategy, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_newStrategy string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:561


minReportDelay

minReportDelay(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/BaseStrategyInitializable.d.ts:566


name

name(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategyInitializable.d.ts:568


off

off<EventArgsArray, EventArgsObject>(eventFilter, listener): BaseStrategyInitializable

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
eventFilter TypedEventFilter<EventArgsArray, EventArgsObject>
listener TypedListener<EventArgsArray, EventArgsObject>

Returns

BaseStrategyInitializable

Overrides

BaseContract.off

Defined in

typechain/BaseStrategyInitializable.d.ts:332

off(eventName, listener): BaseStrategyInitializable

Parameters

Name Type
eventName string
listener Listener

Returns

BaseStrategyInitializable

Overrides

BaseContract.off

Defined in

typechain/BaseStrategyInitializable.d.ts:353


on

on<EventArgsArray, EventArgsObject>(eventFilter, listener): BaseStrategyInitializable

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
eventFilter TypedEventFilter<EventArgsArray, EventArgsObject>
listener TypedListener<EventArgsArray, EventArgsObject>

Returns

BaseStrategyInitializable

Overrides

BaseContract.on

Defined in

typechain/BaseStrategyInitializable.d.ts:336

on(eventName, listener): BaseStrategyInitializable

Parameters

Name Type
eventName string
listener Listener

Returns

BaseStrategyInitializable

Overrides

BaseContract.on

Defined in

typechain/BaseStrategyInitializable.d.ts:354


once

once<EventArgsArray, EventArgsObject>(eventFilter, listener): BaseStrategyInitializable

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
eventFilter TypedEventFilter<EventArgsArray, EventArgsObject>
listener TypedListener<EventArgsArray, EventArgsObject>

Returns

BaseStrategyInitializable

Overrides

BaseContract.once

Defined in

typechain/BaseStrategyInitializable.d.ts:340

once(eventName, listener): BaseStrategyInitializable

Parameters

Name Type
eventName string
listener Listener

Returns

BaseStrategyInitializable

Overrides

BaseContract.once

Defined in

typechain/BaseStrategyInitializable.d.ts:355


profitFactor

profitFactor(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/BaseStrategyInitializable.d.ts:570


queryFilter

queryFilter<EventArgsArray, EventArgsObject>(event, fromBlockOrBlockhash?, toBlock?): Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
event TypedEventFilter<EventArgsArray, EventArgsObject>
fromBlockOrBlockhash? string | number
toBlock? string | number

Returns

Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>

Overrides

BaseContract.queryFilter

Defined in

typechain/BaseStrategyInitializable.d.ts:359


removeAllListeners

removeAllListeners<EventArgsArray, EventArgsObject>(eventFilter): BaseStrategyInitializable

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
eventFilter TypedEventFilter<EventArgsArray, EventArgsObject>

Returns

BaseStrategyInitializable

Overrides

BaseContract.removeAllListeners

Defined in

typechain/BaseStrategyInitializable.d.ts:348

removeAllListeners(eventName?): BaseStrategyInitializable

Parameters

Name Type
eventName? string

Returns

BaseStrategyInitializable

Overrides

BaseContract.removeAllListeners

Defined in

typechain/BaseStrategyInitializable.d.ts:357


removeListener

removeListener<EventArgsArray, EventArgsObject>(eventFilter, listener): BaseStrategyInitializable

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
eventFilter TypedEventFilter<EventArgsArray, EventArgsObject>
listener TypedListener<EventArgsArray, EventArgsObject>

Returns

BaseStrategyInitializable

Overrides

BaseContract.removeListener

Defined in

typechain/BaseStrategyInitializable.d.ts:344

removeListener(eventName, listener): BaseStrategyInitializable

Parameters

Name Type
eventName string
listener Listener

Returns

BaseStrategyInitializable

Overrides

BaseContract.removeListener

Defined in

typechain/BaseStrategyInitializable.d.ts:356


rewards

rewards(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategyInitializable.d.ts:572


setDebtThreshold

setDebtThreshold(_debtThreshold, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_debtThreshold BigNumberish
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:574


setEmergencyExit

setEmergencyExit(overrides?): Promise<ContractTransaction>

Parameters

Name Type
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:579


setKeeper

setKeeper(_keeper, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_keeper string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:583


setMaxReportDelay

setMaxReportDelay(_delay, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_delay BigNumberish
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:588


setMetadataURI

setMetadataURI(_metadataURI, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_metadataURI string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:593


setMinReportDelay

setMinReportDelay(_delay, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_delay BigNumberish
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:598


setProfitFactor

setProfitFactor(_profitFactor, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_profitFactor BigNumberish
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:603


setRewards

setRewards(_rewards, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_rewards string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:608


setStrategist

setStrategist(_strategist, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_strategist string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:613


strategist

strategist(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategyInitializable.d.ts:618


sweep

sweep(_token, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_token string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:620


tend

tend(overrides?): Promise<ContractTransaction>

Parameters

Name Type
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:625


tendTrigger

tendTrigger(callCostInWei, overrides?): Promise<boolean>

Parameters

Name Type
callCostInWei BigNumberish
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/BaseStrategyInitializable.d.ts:629


vault

vault(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategyInitializable.d.ts:634


want

want(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategyInitializable.d.ts:636


withdraw

withdraw(_amountNeeded, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_amountNeeded BigNumberish
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategyInitializable.d.ts:638


getContractAddress

Static getContractAddress(transaction): string

Parameters

Name Type
transaction Object
transaction.from string
transaction.nonce BigNumberish

Returns

string

Inherited from

BaseContract.getContractAddress

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:104


getInterface

Static getInterface(contractInterface): Interface

Parameters

Name Type
contractInterface ContractInterface

Returns

Interface

Inherited from

BaseContract.getInterface

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:108


isIndexed

Static isIndexed(value): value is Indexed

Parameters

Name Type
value any

Returns

value is Indexed

Inherited from

BaseContract.isIndexed

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:114

Questions or feedback? You can discuss issues and obtain free support on Yearn Vaults chat channel.
For SushiSwap community support, join the Discord Server None