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 / BaseStrategy / BaseStrategy

Class: BaseStrategy

BaseStrategy.BaseStrategy

Hierarchy

  • BaseContract

BaseStrategy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BaseStrategy(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>
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>
isActive (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/BaseStrategy.d.ts:578


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>
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>
isActive (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/BaseStrategy.d.ts:776


filters

filters: Object

Type declaration

Name Type
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/BaseStrategy.d.ts:676


functions

functions: Object

Type declaration

Name Type
apiVersion (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?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
harvestTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<[boolean]>
isActive (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/BaseStrategy.d.ts:348


interface

interface: BaseStrategyInterface

Overrides

BaseContract.interface

Defined in

typechain/BaseStrategy.d.ts:346


populateTransaction

populateTransaction: Object

Type declaration

Name Type
apiVersion (overrides?: CallOverrides) => 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>
isActive (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/BaseStrategy.d.ts:892


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/BaseStrategy.d.ts:464


attach

attach(addressOrName): BaseStrategy

Parameters

Name Type
addressOrName string

Returns

BaseStrategy

Overrides

BaseContract.attach

Defined in

typechain/BaseStrategy.d.ts:307


connect

connect(signerOrProvider): BaseStrategy

Parameters

Name Type
signerOrProvider string | Provider | Signer

Returns

BaseStrategy

Overrides

BaseContract.connect

Defined in

typechain/BaseStrategy.d.ts:306


debtThreshold

debtThreshold(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/BaseStrategy.d.ts:466


delegatedAssets

delegatedAssets(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/BaseStrategy.d.ts:468


deployed

deployed(): Promise<BaseStrategy>

Returns

Promise<BaseStrategy>

Overrides

BaseContract.deployed

Defined in

typechain/BaseStrategy.d.ts:308


emergencyExit

emergencyExit(overrides?): Promise<boolean>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/BaseStrategy.d.ts:470


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/BaseStrategy.d.ts:472


ethToWant

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

Parameters

Name Type
_amtInWei BigNumberish
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/BaseStrategy.d.ts:474


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/BaseStrategy.d.ts:479


harvestTrigger

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

Parameters

Name Type
callCostInWei BigNumberish
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/BaseStrategy.d.ts:483


isActive

isActive(overrides?): Promise<boolean>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/BaseStrategy.d.ts:488


keeper

keeper(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategy.d.ts:490


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/BaseStrategy.d.ts:310

listeners(eventName?): Listener[]

Parameters

Name Type
eventName? string

Returns

Listener[]

Overrides

BaseContract.listeners

Defined in

typechain/BaseStrategy.d.ts:333


maxReportDelay

maxReportDelay(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/BaseStrategy.d.ts:492


metadataURI

metadataURI(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategy.d.ts:494


migrate

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

Parameters

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

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategy.d.ts:496


minReportDelay

minReportDelay(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/BaseStrategy.d.ts:501


name

name(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategy.d.ts:503


off

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

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

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

Returns

BaseStrategy

Overrides

BaseContract.off

Defined in

typechain/BaseStrategy.d.ts:313

off(eventName, listener): BaseStrategy

Parameters

Name Type
eventName string
listener Listener

Returns

BaseStrategy

Overrides

BaseContract.off

Defined in

typechain/BaseStrategy.d.ts:334


on

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

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

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

Returns

BaseStrategy

Overrides

BaseContract.on

Defined in

typechain/BaseStrategy.d.ts:317

on(eventName, listener): BaseStrategy

Parameters

Name Type
eventName string
listener Listener

Returns

BaseStrategy

Overrides

BaseContract.on

Defined in

typechain/BaseStrategy.d.ts:335


once

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

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

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

Returns

BaseStrategy

Overrides

BaseContract.once

Defined in

typechain/BaseStrategy.d.ts:321

once(eventName, listener): BaseStrategy

Parameters

Name Type
eventName string
listener Listener

Returns

BaseStrategy

Overrides

BaseContract.once

Defined in

typechain/BaseStrategy.d.ts:336


profitFactor

profitFactor(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/BaseStrategy.d.ts:505


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/BaseStrategy.d.ts:340


removeAllListeners

removeAllListeners<EventArgsArray, EventArgsObject>(eventFilter): BaseStrategy

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
eventFilter TypedEventFilter<EventArgsArray, EventArgsObject>

Returns

BaseStrategy

Overrides

BaseContract.removeAllListeners

Defined in

typechain/BaseStrategy.d.ts:329

removeAllListeners(eventName?): BaseStrategy

Parameters

Name Type
eventName? string

Returns

BaseStrategy

Overrides

BaseContract.removeAllListeners

Defined in

typechain/BaseStrategy.d.ts:338


removeListener

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

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

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

Returns

BaseStrategy

Overrides

BaseContract.removeListener

Defined in

typechain/BaseStrategy.d.ts:325

removeListener(eventName, listener): BaseStrategy

Parameters

Name Type
eventName string
listener Listener

Returns

BaseStrategy

Overrides

BaseContract.removeListener

Defined in

typechain/BaseStrategy.d.ts:337


rewards

rewards(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategy.d.ts:507


setDebtThreshold

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

Parameters

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

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategy.d.ts:509


setEmergencyExit

setEmergencyExit(overrides?): Promise<ContractTransaction>

Parameters

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

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategy.d.ts:514


setKeeper

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

Parameters

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

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategy.d.ts:518


setMaxReportDelay

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

Parameters

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

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategy.d.ts:523


setMetadataURI

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

Parameters

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

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategy.d.ts:528


setMinReportDelay

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

Parameters

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

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategy.d.ts:533


setProfitFactor

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

Parameters

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

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategy.d.ts:538


setRewards

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

Parameters

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

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategy.d.ts:543


setStrategist

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

Parameters

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

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategy.d.ts:548


strategist

strategist(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategy.d.ts:553


sweep

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

Parameters

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

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategy.d.ts:555


tend

tend(overrides?): Promise<ContractTransaction>

Parameters

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

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategy.d.ts:560


tendTrigger

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

Parameters

Name Type
callCostInWei BigNumberish
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/BaseStrategy.d.ts:564


vault

vault(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategy.d.ts:569


want

want(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/BaseStrategy.d.ts:571


withdraw

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

Parameters

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

Returns

Promise<ContractTransaction>

Defined in

typechain/BaseStrategy.d.ts:573


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