erc_4626.vault_protocol.lagoon.testing

Documentation for eth_defi.erc_4626.vault_protocol.lagoon.testing Python module.

Lagoon unit test helpers.

Functions

force_lagoon_settle(vault, asset_manager[, ...])

Force settling of the Lagoon vault.

fund_lagoon_vault(web3, vault_address, ...)

Make sure vault has some starting balance in the unit testing.

fund_lagoon_vault(web3, vault_address, asset_manager, test_account_with_balance, trading_strategy_module_address, amount=Decimal('500'), nav=Decimal('0'))

Make sure vault has some starting balance in the unit testing.

  • Used in unit testing to prepare the vault for a test trade to have some capital

Parameters
force_lagoon_settle(vault, asset_manager, raw_nav=None, gas_limit=15000000)

Force settling of the Lagoon vault.

  • Used in the testing to move the vault to the next epoch

Parameters