StrategOperatorProxy
This contract serves as a proxy for executing operations on strategy vaults. It requires the OPERATOR_ROLE to perform the operations.
Methods
addressProvider
Mapping of vault addresses to their locked status.
Returns
_0
contract IStrategAddressesProvider
undefined
authority
Returns the current authority.
Returns
_0
address
undefined
initialize
Initializes the contract by granting the DEFAULT_ADMIN_ROLE to the treasury address.
Parameters
_authority
address
The address of the access manager.
_addressProvider
address
undefined
isConsumingScheduledOp
Returns true only in the context of a delayed restricted call, at the moment that the scheduled operation is being consumed. Prevents denial of service for delayed restricted calls in the case that the contract performs attacker controlled calls.
Returns
_0
bytes4
undefined
lockVaults
Locks the specified vaults, preventing any operations on them.
Parameters
_vaults
address[]
Array of vault addresses to be locked.
lockedVault
Mapping of vault addresses to their locked status.
Parameters
_0
address
undefined
Returns
_0
bool
undefined
oracleUpdateOperation
Executes price updates on portal oracle.
Parameters
_addresses
address[]
Addresses of tokens.
_prices
uint256[]
related prices
positionManagerOperation
Executes the rebalance function on the position manager.
Parameters
_positionManager
address
Address of the position manager.
_payer
address
payer for operation cost
_gasCost
uint256
gas cost to pay for operation
_payload
bytes
Array of dynamic parameter indexes for exiting positions.
setAuthority
Transfers control to a new authority. The caller must be the current authority.
Parameters
newAuthority
address
undefined
unlockVaults
Unlocks the specified vaults, allowing operations on them.
Parameters
_vaults
address[]
Array of vault addresses to be unlocked.
userWithdrawalRebalancedNonce
Mapping of addresses to their respective withdrawal rebalance nonce.
Parameters
_0
address
undefined
Returns
_0
uint256
undefined
vaultHarvest
Executes the harvest function on the strategy vault.
Parameters
_vault
address
Address of the strategy vault.
_payer
address
payer for operation cost
_gasCost
uint256
gas cost to pay for operation
_dynParamsIndex
uint256[]
Array of dynamic parameter indexes.
_dynParams
bytes[]
Array of dynamic parameters.
_portalPayload
bytes
undefined
vaultRebalance
Executes the rebalance function on the strategy vault.
Parameters
_vault
address
Address of the strategy vault.
_payer
address
payer for operation cost
_gasCost
uint256
gas cost to pay for operation
_dynParamsIndexEnter
uint256[]
Array of dynamic parameter indexes for entering positions.
_dynParamsEnter
bytes[]
Array of dynamic parameters for entering positions.
_dynParamsIndexExit
uint256[]
Array of dynamic parameter indexes for exiting positions.
_dynParamsExit
bytes[]
Array of dynamic parameters for exiting positions.
vaultStopStrategy
Executes the harvest function on the strategy vault.
Parameters
_vault
address
Address of the strategy vault.
_payer
address
payer for operation cost
_gasCost
uint256
gas cost to pay for operation
_dynParamsIndex
uint256[]
Array of dynamic parameter indexes.
_dynParams
bytes[]
Array of dynamic parameters.
vaultWithdrawalRebalance
Executes the withdrawalRebalance function on the strategy vault.
Parameters
_user
address
undefined
_vault
address
Address of the strategy vault.
_deadline
uint256
undefined
_amount
uint256
Amount to be withdrawn.
_signature
bytes
Needed if vault need
_portalPayload
bytes
Parameters for executing a swap with returned assets.
_permitParams
bytes
Parameters for executing a permit (optional).
_dynParamsIndexExit
uint256[]
Array of dynamic parameter indexes for exiting positions.
_dynParamsExit
bytes[]
Array of dynamic parameters for exiting positions.
Returns
returnedAssets
uint256
undefined
withdraw
Withdraws fees from the contract and transfers them to the caller.
Parameters
_tokens
address[]
Array of token addresses to withdraw fees from.
Events
AuthorityUpdated
Authority that manages this contract was updated.
Parameters
authority
address
undefined
Initialized
Triggered when the contract has been initialized or reinitialized.
Parameters
version
uint64
undefined
PositionManagerRebalanced
Emitted when a position manager is rebalanced.
Parameters
positionManager indexed
address
Address of the position manager that was rebalanced.
payer
address
Address of the payer for the operation cost.
gasCost
uint256
Amount of gas cost paid for the operation.
VaultLocked
Emitted when a vault is locked.
Parameters
vault indexed
address
Address of the vault that was locked.
VaultStrategyHarvested
Emitted when a strategy on a vault is harvested.
Parameters
vault indexed
address
Address of the vault where the strategy was harvested.
payer
address
Address of the payer for the operation cost.
gasCost
uint256
Amount of gas cost paid for the operation.
VaultStrategyRebalanced
Emitted when a strategy on a vault is rebalanced.
Parameters
vault indexed
address
Address of the vault where the strategy was rebalanced.
payer
address
Address of the payer for the operation cost.
gasCost
uint256
Amount of gas cost paid for the operation.
VaultStrategyStopped
Emitted when a strategy on a vault is stopped.
Parameters
vault indexed
address
Address of the vault where the strategy was stopped.
payer
address
Address of the payer for the operation cost.
gasCost
uint256
Amount of gas cost paid for the operation.
VaultStrategyWithdrawalRebalanced
Emitted when a withdrawal rebalance is performed on a vault.
Parameters
vault indexed
address
Address of the vault where the withdrawal rebalance was performed.
VaultUnlocked
Emitted when a vault is unlocked.
Parameters
vault indexed
address
Address of the vault that was unlocked.
Errors
AccessManagedInvalidAuthority
Parameters
authority
address
undefined
AccessManagedRequiredDelay
Parameters
caller
address
undefined
delay
uint32
undefined
AccessManagedUnauthorized
Parameters
caller
address
undefined
AddressEmptyCode
There's no code at target
(it is not a contract).
Parameters
target
address
undefined
AddressInsufficientBalance
The ETH balance of the account is not enough to perform the operation.
Parameters
account
address
undefined
DeadlineExceeded
Error for when an operation exceeds the specified deadline.
ECDSAInvalidSignature
The signature derives the address(0)
.
ECDSAInvalidSignatureLength
The signature has an invalid length.
Parameters
length
uint256
undefined
ECDSAInvalidSignatureS
The signature has an S value that is in the upper half order.
Parameters
s
bytes32
undefined
FailedInnerCall
A call to an address target failed. The target may have reverted.
InvalidInitialization
The contract is already initialized.
NotInitializing
The contract is not initializing.
OnlyUserInteraction
Error for when an operation is restricted to user interactions only.
PortalExecutionFailed
Error for when portal execution fails.
Parameters
data
bytes
Additional data about the failed execution.
PositionManagerOperationReverted
Error for when a position manager operation is reverted.
Parameters
data
bytes
Additional data about the reverted call.
SOPTAllowanceNotSufficient
Error for when the SOPT allowance is not sufficient for an operation.
SafeERC20FailedOperation
An operation with an ERC20 token failed.
Parameters
token
address
undefined
VaultIsLocked
Error for when an operation is attempted on a locked vault.
VaultRebalanceReverted
Error for when a vault rebalance operation is reverted.
Parameters
data
bytes
Additional data about the reverted call.
Last updated