setup_ostium_simulation
Documentation for eth_defi.erc_4626.vault_protocol.gains.testing.setup_ostium_simulation function.
- setup_ostium_simulation(json_rpc_url, vault_address='0x20d419a8e12c45f88fda7c5760bb6923cee27f98', fund_amount=Decimal('100'))
Set up an Anvil fork environment for Ostium V1.5 simulation.
Creates an Anvil fork of Arbitrum, a funded test wallet, and an Ostium vault instance.
- Parameters
json_rpc_url (str) – Arbitrum RPC URL to fork from.
vault_address (str) – Ostium vault address.
fund_amount (decimal.Decimal) – USDC amount to fund the test wallet with.
- Returns
Tuple of (web3, hot_wallet, anvil_launch, vault).
- Return type
tuple[web3.main.Web3, ‘HotWallet’, ‘AnvilLaunch’, ‘OstiumVault’]