Skip to content

DDOperatorPlan

senamakel edited this page Sep 2, 2024 · 3 revisions

Solidity API

DDOperatorPlan

An operator sets the desired target assets for a simple vault

enabled

uint256 enabled

targetAssets

uint256 targetAssets

OPERATOR_ROLE

bytes32 OPERATOR_ROLE

constructor

constructor(uint48 _initialDelay, address _governance, uint256 _targetAssets) public

setTargetAssets

function setTargetAssets(uint256 value) external

getTargetAssets

function getTargetAssets(uint256) external view returns (uint256)

Determines what the position should be based on current assets and the custom plan rules.

The currentAssets arguement is not used in this plan.

Parameters

Name Type Description
uint256

Return Values

Name Type Description
[0] uint256 uint256 target assets the Hub should wind or unwind to in Dai

active

function active() public view returns (bool)

Reports whether the plan is active

disable

function disable() external

Disables the plan so that it would instruct the Hub to unwind its entire position.

Implementation should be permissioned.

Clone this wiki locally