force_next_gains_epoch
Documentation for eth_defi.erc_4626.vault_protocol.gains.testing.force_next_gains_epoch function.
- force_next_gains_epoch(vault, any_account, padding_seconds=1, gas_limit=3000000)
Advance Gains vault to a next epoch by using Anvil hacks.
- Parameters
any_account (eth_typing.evm.HexAddress) – Account that submits the epoch-advance transaction.
padding_seconds (int) – Seconds added after the scheduled epoch boundary before mining.
gas_limit (int) – Gas limit for
forceNewEpoch().vault (eth_defi.erc_4626.vault_protocol.gains.vault.GainsVault) –
- Returns
Transaction hash of the
forceNewEpoch()call.- Raises
UnsupportedVaultSimulation – If
vaultis not connected to an Anvil provider.- Return type
hexbytes.main.HexBytes