Skip to content

Commit

Permalink
Reflect Lagoon parameters and fees in deploy info
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Feb 19, 2025
1 parent 3344ce2 commit e8fbc8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions eth_defi/lagoon/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class LagoonAutomatedDeployment:
multisig_owners: list[HexAddress]
deployer: HexAddress
block_number: BlockNumber
parameters: LagoonDeploymentParameters

def is_asset_manager(self, address: HexAddress) -> bool:
return self.trading_strategy_module.functions.isAllowedSender(address).call()
Expand All @@ -122,6 +123,8 @@ def get_deployment_data(self) -> dict:
"Share token symbol": self.vault.share_token.symbol,
"Multisig owners": ", ".join(self.multisig_owners),
"Block number": f"{self.block_number:,}",
"Performance fee": f"{self.parameters.performanceRate / 100:,} %%",
"Management fee": f"{self.parameters.managementRate / 100:,} %%",
}
return fields

Expand Down Expand Up @@ -578,6 +581,7 @@ def _broadcast(bound_func: ContractFunction):
multisig_owners=safe_owners,
block_number=web3.eth.block_number,
deployer=deployer.address,
parameters=parameters,
)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "web3-ethereum-defi"
version = "0.28"
version = "0.28.1"
description = "Python library for Uniswap, Aave, ChainLink, Enzyme and other protocols on BNB Chain, Polygon, Ethereum and other blockchains"
authors = ["Mikko Ohtamaa <mikko@tradingstrategy.ai>"]
license = "MIT"
Expand Down

0 comments on commit e8fbc8c

Please sign in to comment.