StrategOperatorDataAggregator
This contract serves as a data provider for operator to aggregate data about a StrategVault to operator it.
Methods
emulateEnterStrategy
Parameters
_oracleState
DataTypes.OracleState
undefined
_strategyBlocks
address[]
undefined
_strategyBlocksParameters
bytes[]
undefined
Returns
_0
DataTypes.StrategVaultExecutionInfo
undefined
emulateExitStrategy
Parameters
_oracleState
DataTypes.OracleState
undefined
_strategyBlocks
address[]
undefined
_strategyBlocksParameters
bytes[]
undefined
_isFinalBlock
bool[]
undefined
_percent
uint256
undefined
Returns
_0
DataTypes.StrategVaultExecutionInfo
undefined
getPartialVaultStrategyEnterExecutionInfo
Parameters
_vault
address
undefined
_from
uint256[]
undefined
_to
uint256[]
undefined
_oracleState
DataTypes.OracleState
undefined
Returns
info
DataTypes.StrategVaultExecutionInfo
undefined
getPartialVaultStrategyExitExecutionInfo
Return strategy exit execution information for a specific vault
Parameters
_vault
address
vault address
_from
uint256[]
array of indexes to start from
_to
uint256[]
array of indexes to end at
Returns
info
DataTypes.StrategVaultExecutionInfo
A DataTypes.StrategVaultExecutionInfo
struct containing the updated oracle state and execution details for each block.
getVaultHarvestExecutionInfo
Return strategy harvest execution information for a specific vault
Parameters
_vault
address
vault address
Returns
info
IStrategOperatorDataAggregator.StrategVaultHarvestExecutionInfo
A DataTypes.StrategVaultHarvestExecutionInfo
struct containing the updated oracle state and execution details for each block.
getVaultStrategyEnterExecutionInfo
Return strategy enter execution information for a specific vault
Parameters
_vault
address
vault address
Returns
info
DataTypes.StrategVaultExecutionInfo
A DataTypes.StrategVaultExecutionInfo
struct containing the updated oracle state and execution details for each block.
getVaultStrategyExitExecutionInfo
Return strategy exit execution information for a specific vault
Parameters
_vault
address
vault address
_percent
uint256
percentage to exit
Returns
info
DataTypes.StrategVaultExecutionInfo
A DataTypes.StrategVaultExecutionInfo
struct containing the updated oracle state and execution details for each block.
getVaultWithdrawalRebalanceExecutionInfo
Return strategy exit execution information for a specific vault
Parameters
_vault
address
vault address
_shares
uint256
number of shares yo withdraw
Returns
info
DataTypes.StrategVaultExecutionInfo
A DataTypes.StrategVaultExecutionInfo
struct containing the updated oracle state and execution details for each block.
initialize
Initializes the contract.
Parameters
_paymentToken
address
address of the payment token
paymentToken
The payment token used for strategy operations
Returns
_0
contract IStrategOperatingPaymentToken
undefined
vaultInfo
Return vault's strategy configuration and informations
Parameters
_vault
address
vault address
Returns
status
IStrategOperatorDataAggregator.StrategVaultInfo
Information about a vault
Events
Initialized
Triggered when the contract has been initialized or reinitialized.
Parameters
version
uint64
undefined
Errors
BufferIsOverLimit
Error for when the buffer is over its limit.
BufferIsUnderLimit
Error for when the buffer is under its limit.
InputError
Error for when there is an input error.
InvalidInitialization
The contract is already initialized.
NotInitializing
The contract is not initializing.
PositionManagerOperationReverted
Error for when position manager operation is reverted.
Parameters
data
bytes
Additional data about the reverted call.
VaultRebalanceReverted
Error for when vault rebalance operation is reverted.
Parameters
data
bytes
Additional data about the reverted call.
Last updated