VaultPolicyConfiguration

Documentation for eth_defi.enzyme.deployment.VaultPolicyConfiguration Python class.

class VaultPolicyConfiguration[source]

Enzyme policy configuration.

Passed to the fund deployer when the vault is created.

Attributes summary

policies

Dict of enabled policies and their configs

shares_action_time_lock

What is the minimum time before user can redeem shares after deposit.

Methods summary

__init__(policies[, shares_action_time_lock])

encode()

Serialise for the fund deployer.

policies: Dict[eth_typing.evm.HexAddress, bytes]

Dict of enabled policies and their configs

Policy contract address -> policy config bytes

shares_action_time_lock: int

What is the minimum time before user can redeem shares after deposit.

Prevent arbitrage attacks.

Set to zero by default, because there is a conflict with this setting and using a deposit contract (TermedVaultUSDCPaymentForwarder). Can be set to any value after Enzyme whitelists the deposit contract.

encode()[source]

Serialise for the fund deployer.

See https://github.com/enzymefinance/protocol/blob/v4/tests/utils/core/PolicyUtils.sol

Return type

bytes

__init__(policies, shares_action_time_lock=0)
Parameters
  • policies (Dict[eth_typing.evm.HexAddress, bytes]) –

  • shares_action_time_lock (int) –

Return type

None