Blocks
Block Architecture
interface IStrategCommonBlock {
/// @notice The IPFS hash of the block metadata file
function ipfsHash() external view returns (string memory);
/// @notice Return dynamic parameters needed for the block execution
/// @param _exec The type of block execution
/// @param _parameters The parameters of the block execution
/// @param _oracleState The state of the oracle
/// @param _percent The percentage of the block execution
/// @return dynParamsNeeded Whether the strategy block execution needs dynamic parameters
/// @return dynParamsType The type of dynamic parameters needed
/// @return dynParamsInfo The information of the dynamic parameters needed
function dynamicParamsInfo(
DataTypes.BlockExecutionType _exec,
bytes memory _parameters,
DataTypes.OracleState memory _oracleState,
uint256 _percent
) external view returns (bool, DataTypes.DynamicParamsType, bytes memory);
}Block Metadata(s)
Block Types
Strategy Block
Harvest Block
Last updated