Skip to content

Commit

Permalink
Add coordinator approve free fee model script
Browse files Browse the repository at this point in the history
  • Loading branch information
manumonti committed Jul 5, 2024
1 parent 32e1b55 commit b5131e3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/lynx/coordinator_approve_free_fee_model.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/python3

from ape import project, networks

from deployment.constants import ARTIFACTS_DIR
from deployment.params import Transactor
from deployment.registry import contracts_from_registry

LYNX_REGISTRY_FILEPATH = ARTIFACTS_DIR / "lynx.json"

def main():
"""
Coordinator approves the fee model for Free Fee Model
ape run lynx coordinator_approve_free_fee_model --network polygon:amoy:infura
"""

transactor = Transactor()
deployments = contracts_from_registry(
filepath=LYNX_REGISTRY_FILEPATH, chain_id=networks.active_provider.chain_id
)
coordinator = deployments[project.Coordinator.contract_type.name]
free_fee_model = deployments[project.FreeFeeModel.contract_type.name]

transactor.transact(coordinator.approveFeeModel, free_fee_model.address)

0 comments on commit b5131e3

Please sign in to comment.