Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ImmutableConfig

Constants expected to be defined at the contract level which configure virtual assets and shares.

UNDERLYING_DECIMALS should match the underlying asset’s decimals. The default value is 18.

DECIMALS_OFFSET corresponds to the representational offset between UNDERLYING_DECIMALS and the vault decimals. The greater the offset, the more expensive it is for attackers to execute an inflation attack.

Requirements:

  • UNDERLYING_DECIMALS + DECIMALS_OFFSET cannot exceed 255 (max u8).

Fully qualified path: openzeppelin_token::erc20::extensions::erc4626::erc4626::ERC4626Component::ImmutableConfig

pub trait ImmutableConfig

Trait constants

UNDERLYING_DECIMALS

Fully qualified path: openzeppelin_token::erc20::extensions::erc4626::erc4626::ERC4626Component::ImmutableConfig::UNDERLYING_DECIMALS

const UNDERLYING_DECIMALS: u8;

DECIMALS_OFFSET

Fully qualified path: openzeppelin_token::erc20::extensions::erc4626::erc4626::ERC4626Component::ImmutableConfig::DECIMALS_OFFSET

const DECIMALS_OFFSET: u8;

Trait functions

validate

Fully qualified path: openzeppelin_token::erc20::extensions::erc4626::erc4626::ERC4626Component::ImmutableConfig::validate

fn validate()